assertErrorWithThrowableOfType

inline suspend fun <E : Throwable> Flow<AsyncResult<*>>.assertErrorWithThrowableOfType(): E

Asserts the first terminal emission from the flow is Error with a Throwable of type E and returns it.