assertError

suspend fun Flow<AsyncResult<*>>.assertError(): Error

Asserts the first terminal emission from the flow is Error and returns it for further checks.