open static fun <T : Any> exceptional(ex: Throwable): AsyncResult<T>
(source)
Return an already failed result, caused by the given exception.
- The type of the value that would be available if this result hadn't completed exceptionally.
Return
A failed result.