Future

Encapsulates the asynchronous execution of a callable.

Members

Functions

result
T result()
setResult
void setResult(T result)

Mark the future done and set its result.

setResultUnlessCancelled
void setResultUnlessCancelled(T result)

Helper setting the result only if the future was not cancelled.

Meta