TaskHandle

Undocumented in source.

Members

Functions

run
void run()
Undocumented in source.
scheduleStep
void scheduleStep()
Undocumented in source. Be warned that the author may not have intended to support it.
scheduleStep
void scheduleStep(Throwable throwable)
Undocumented in source. Be warned that the author may not have intended to support it.
scheduleStep
void scheduleStep(FutureHandle future)
Undocumented in source. Be warned that the author may not have intended to support it.
scheduleStepImpl
void scheduleStepImpl(Throwable throwable)
Undocumented in source.

Properties

injectException
Throwable injectException [@property getter]
Undocumented in source.

Static functions

allTasks
TaskHandle[] allTasks(EventLoop eventLoop)
currentTask
TaskHandle currentTask(EventLoop eventLoop)
getThis
TaskHandle getThis()
Undocumented in source. Be warned that the author may not have intended to support it.
yield
void yield()

Forces a context switch to occur away from the calling task.

Inherited Members

From FutureHandle

cancel
bool cancel()

Cancel the future and schedule callbacks.

cancelled
bool cancelled()

Return $(D_KEYWORD true) if the future was cancelled.

done
bool done()

Return $(D_KEYWORD true) if the future is done.

exception
Throwable exception()
addDoneCallback
void addDoneCallback(void delegate(FutureHandle) callback)

Add a callback to be run when the future becomes done.

removeDoneCallback
size_t removeDoneCallback(void delegate(FutureHandle) callback)

Remove all instances of a callback from the "call when done" list.

setException
void setException(Throwable exception)

Mark the future done and set an exception.

toString
string toString()
Undocumented in source.

Meta