Class ITaskManager

Exposes primitives to run tasks

class ITaskManager ;

Constructors

NameDescription
this ()

Fields

NameTypeDescription
log LoggerLogger used by this class
tasks_started ulong

Methods

NameDescription
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

NameDescription
SafeTimerHandler Recommended handler delegate for timers
UnsafeTimerHandler Unsafe timer handler, these will be run in trusted and exceptions inside the handler will be logged