Package-level declarations

Types

Link copied to clipboard
class Synchronizer(lock: Any = Any())

The Synchronizer class provides a mechanism to synchronize the execution of code blocks. All blocks of code executed via the same Synchronizer instance will never be running in simultaneously. It uses a lock object to ensure that only one thread can execute the synchronized block at a time. It also tracks the total and maximum time spent in synchronized blocks.