June 2017
Beginner to intermediate
274 pages
6h 49m
English
Event objects allow a process to proceed immediately if a flag is true or wait until the flag becomes true.
The flag is set to false by calling the event.clear method or true by calling its event.set method, as shown in this code example:

When we call the event.wait method, it will return immediately if the flag is true else it will pause execution until another process calls set and then return.
Event objects are useful for making a process pause until some specific thing happens.
Read now
Unlock full access