FutureHandle

Undocumented in source.

Members

Functions

addDoneCallback
void addDoneCallback(void delegate(FutureHandle) callback)

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

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()
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