Complete the promise with either an exception or a value.
Complete the promise with either an exception or a value.
Either the value or the exception to complete the promise with.
Try to complete the promise with either a value or the exception.
Try to complete the promise with either a value or the exception.
If the promise has already been completed returns false
, or true
otherwise.
The value of this Promise.
The value of this Promise. If the promise is not completed the returned value will be None
. If the promise is
completed the value will be Some(Success(t))
if it contains a valid result, or Some(Failure(error))
if it
contains an exception.
A kind of mot.util.Promise that can be completed only once.