Event

Event

A very simple object for indicating when some event has been triggered.

Constructor

new Event()

Source:
See:

Classes

Event

Methods

clear()

Source:
Opposite of set. Clear the Event state so future calls to wait will block.

isSet() → {boolean}

Source:
Returns:
true if set was called.
Type
boolean

set()

Source:
Wake ALL awaiters of wait

(async) wait() → {boolean}

Source:
Wait until this event object is triggered with set.
Returns:
true
Type
boolean