expectThrowable

inline fun AsyncResult<*>.expectThrowable(crossinline message: () -> Any): Throwable

Extracts the value from the AsyncResult if it's an Error with a Throwable in it, otherwise throws an UnwrapException with the computed message in it.