FuturePromise

Constructors

this
this()
Undocumented in source.

Members

Functions

cancel
bool cancel(bool mayInterruptIfRunning)
Undocumented in source. Be warned that the author may not have intended to support it.
failed
void failed(Exception cause)

TODO: 1) keep this operation atomic 2) return a flag to indicate whether this option is successful.

get
T get()
Undocumented in source. Be warned that the author may not have intended to support it.
get
T get(Duration timeout)
Undocumented in source. Be warned that the author may not have intended to support it.
id
string id()
Undocumented in source. Be warned that the author may not have intended to support it.
id
void id(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
isCancelled
bool isCancelled()
Undocumented in source. Be warned that the author may not have intended to support it.
isDone
bool isDone()
Undocumented in source. Be warned that the author may not have intended to support it.
succeeded
void succeeded()

TODO: 1) keep this operation atomic 2) return a flag to indicate whether this option is successful.

succeeded
void succeeded(T result)

TODO: 1) keep this operation atomic 2) return a flag to indicate whether this option is successful.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta