Future

Representation for future calculation result

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

get
auto ref get(Timeout timeout)

Get the result stored in the future

raise
void raise(Throwable ex)

Set the future's state to raised exception

runInFiber
auto runInFiber(Runner runner, Parameters!F args)
auto runInFiber(T delegate() dlg)

Launch a new fiber that will run the specified callback, set the future when the callback returns

runInFiber
auto runInFiber(Parameters!F args)
auto runInFiber(Runner runner, T delegate() dlg)

Launch a new fiber that will run the specified callback, set the future when the callback returns

set
void set()

Sets the future with no value

set
void set(T value)

Sets the future with value

wait
void wait(Timeout timeout, string file, ulong line)

Wait for the future to be set

Properties

exception
Throwable exception [@property getter]

Returns the exception stored in the future's result (if any)

ready
bool ready [@property getter]

Returns whether the future has a return value

Meta