open static fun <T : Any> failedFuture(t: Throwable): Future<T>
Create a failed future with the specified failure cause.
t - the failure cause as a Throwable
Return
the future
open static fun <T : Any> failedFuture(failureMessage: String): Future<T>
Create a failed future with the specified failure message.
failureMessage - the failure message
Return
the future