errorOrNull

inline fun <R> AsyncResult<R>.errorOrNull(): Error?

Returns the Error itself if the AsyncResult is Error else returns null.