open fun fail(cause: Throwable): Unit
Set the failure. Any handler will be called, if there is one, and the future will be marked as completed.
open fun fail(failureMessage: String): Unit
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.