encore.concurrent Package¶
threadtools
Module¶
Module of useful routines for working with concurrency.
-
encore.concurrent.threadtools.
synchronized
(func)¶ Decorator that prevents simultaneous execution of a function
This decorator that ensures that only one thread at a time can be executing the decorated function at the same time by using a dedicated anonymous lock.