TaskHandle.currentTask

interface TaskHandle
static
currentTask
()

Return Value

the currently running task in an event loop or $(D_KEYWORD null).

By default the current task for the current event loop is returned.

$(D_KEYWORD null) is returned when called not in the context of a Task.

Meta