Represents the writable side of an action that may, or may not, have occurred yet.
The {@link Promise#future} method returns the {@link Future} associated with a promise, the future
can be used for getting notified of the promise completion and retrieve its value.
A promise extends Handler> so it can be used as a callback.
Like {@link Promise#complete} but returns false when the promise is already completed instead of throwing
an IllegalStateException, it returns true otherwise.
Like {@link Promise#fail} but returns false when the promise is already completed instead of throwing
an IllegalStateException, it returns true otherwise.
Represents the writable side of an action that may, or may not, have occurred yet.
The {@link Promise#future} method returns the {@link Future} associated with a promise, the future can be used for getting notified of the promise completion and retrieve its value.
A promise extends
Handler>
so it can be used as a callback.