open fun tryFail(cause: Throwable): Boolean
Try to set the failure. When it happens, any handler will be called, if there is one, and the future will be marked as completed.
Return
false when the future is already completed
open fun tryFail(failureMessage: String): Boolean
Try to set the failure. When it happens, any handler will be called, if there is one, and the future will be marked as completed.
failureMessage - the failure message
Return
false when the future is already completed