MultiEvent#
- class wattson.util.events.multi_event.MultiEvent(*wrapped_events: Event)#
Bases:
Event
Methods
Reset the internal flag to false.
Return true if and only if the internal flag is true.
Return true if and only if the internal flag is true.
monitor
Set the internal flag to true.
Block until the internal flag is true.
- __init__(*wrapped_events: Event)#
- clear() None #
Reset the internal flag to false.
Subsequently, threads calling wait() will block until set() is called to set the internal flag to true again.
- isSet() bool #
Return true if and only if the internal flag is true.
This method is deprecated, use is_set() instead.
- is_set() bool #
Return true if and only if the internal flag is true.
- set() None #
Set the internal flag to true.
All threads waiting for it to become true are awakened. Threads that call wait() once the flag is true will not block at all.
- wait(timeout: float | None = None)#
Block until the internal flag is true.
If the internal flag is true on entry, return immediately. Otherwise, block until another thread calls set() to set the flag to true, or until the optional timeout occurs.
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).
This method returns the internal flag on exit, so it will always return True except if a timeout is given and the operation times out.