The idea would be to extract such synchronisation mechanism inside the library. We started to explored a path in the example.