PyDocs

Nav

Concurrent Execution

Event

threading

class (source) not WASI
Class implementing event objects.

Events manage a 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.  The flag is initially false.
Changed in 3.3
  • 3.3: changed from a factory function to a class.
Members of Event

c

clear
Reset the internal flag to false.

i

is_set
Return true if and only if the internal flag is true.

s

set
Set the internal flag to true.

w

wait
Block until the internal flag is true.
0 Examples
No examples for threading/Event.
See Also
No see-alsos for threading/Event
0 Notes
No notes for Event