Struct Future
Representation for future calculation result
Properties
Name | Type | Description |
exception [get]
|
Throwable | Returns the exception stored in the future's result (if any)
|
ready [get]
|
bool | Returns whether the future has a return value
|
Methods
Name | Description |
get
|
Get the result stored in the future
|
raise
|
Set the future's state to raised exception
|
runInFiber
|
Launch a new fiber that will run the specified callback, set the future when the callback returns
|
set
|
Sets the future with no value
|
wait
|
Wait for the future to be set
|