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 - The exception.

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

Return
A failed result.