This is one of the simplest mechanisms for communication between threads: one thread signals an event and other threads wait for it.
An event object manages an internal flag that can be set to true with the set() method and reset to false with the clear() method. The wait() method blocks until the flag is true.
When the timeout argument is present and not None
, it should be a
floating point number specifying a timeout for the operation in
seconds (or fractions thereof).
See About this document... for information on suggesting changes.