PyDocs

Nav

Networking and Interprocess Communication

Event

asyncio

class (source) not WASI
Asynchronous equivalent to threading.Event.

Class implementing event objects.  An event manages 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.10
  • 3.10: Removed the loop parameter.
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 asyncio/Event.
See Also
No see-alsos for asyncio/Event
0 Notes
No notes for Event