EventLoop
sys.thread.EventLoop (Class)
An event loop implementation used for sys.thread.Thread
Instance Members
Executes all pending events.
The returned time stamps can be used with Sys.time() for calculations.
Depending on a target platform this method may be non-reentrant. It must not be called from event callbacks.
| Returns |
|---|
| Anonymous |
loop(): VoidExecute all pending events.
Wait and execute as many events as the number of times promise() was called.
Runs until all repeating events are cancelled and no more events are expected.
Depending on a target platform this method may be non-reentrant. It must not be called from event callbacks.
new(): VoidPrivate Members
CREATED: Boolmutex: MutexoneTimeEventsIdx: IntwaitLock: LockpromisedEventsCount: IntregularEvents: Null<sys.thread._EventLoop.RegularEvent>isMainThread: BoolMetadata
| Name | Parameters |
|---|---|
:hxGen |
- |