expect

inline fun <R> AsyncResult<R>.expect(crossinline message: () -> Any): R

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