Class ITaskManager
Exposes primitives to run tasks
class ITaskManager
;
Constructors
Name | Description |
---|---|
this
()
|
Fields
Name | Type | Description |
---|---|---|
log
|
Logger | Logger used by this class |
tasks_started
|
ulong |
Methods
Name | Description |
---|---|
createTimer
(dg)
|
Creates a new timer without arming it |
logStats
()
|
Log out the request stats |
runTask
(dg)
|
Run an asynchronous task in an event loop |
setTimer
(timeout, dg, periodic)
|
Run an asynchronous task after a given time. |
wait
(dur)
|
Suspend the current task for the given duration |
Aliases
Name | Description |
---|---|
SafeTimerHandler
|
Recommended handler delegate for timers |
UnsafeTimerHandler
|
Unsafe timer handler, these will be run in trusted and exceptions
inside the handler will be logged
|