tuweni / org.apache.tuweni.concurrent / AsyncResult / exceptional

exceptional

open static fun <T : Any!> exceptional(ex: Throwable!): AsyncResult<T>! (source)

Return an already failed result, caused by the given exception.

Parameters

ex - Throwable!: The exception.

- The type of the value that would be available if this result hadn't completed exceptionally.

Return
AsyncResult<T>!: A failed result.