open static fun <T : Any!> exceptional(ex: Throwable!): AsyncResult<T>!
(source)
Return an already failed result, caused by the given exception.
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.