complete | shared default void complete() Set a null result. Any handler will be called, if there is one, and the future will be marked as completed.
|
complete | shared default void complete(T? result) Set the result. Any handler will be called, if there is one, and the future will be marked as completed.
|
fail | shared default void fail(String failureMessage) Set the failure. Any handler will be called, if there is one, and the future will be marked as completed.
|
isComplete | shared default Boolean isComplete() Has the future completed?
It's completed if it's either succeeded or failed.
|
setHandler | shared default void setHandler(Anything(Throwable|T?) handler) Set a handler for the result.
If the future has already been completed it will be called immediately. Otherwise it will be called when the
future is completed.
Parameters: handler the Handler that will be called with the result
|