An event loop implementation used for sys.thread.Thread
Constructor
Methods
Execute all pending events.
Wait and execute as many events as many times promiseEvent()
was called.
Runs until all repeating events are cancelled and no more events is expected.
Depending on a target platform this method may be non-reentrant. It must
not be called from event callbacks.