assertErrorWithMetadata

inline suspend fun <M> Flow<AsyncResult<*>>.assertErrorWithMetadata(): M

Asserts the first terminal emission from the flow is Error with metadata of type M and returns it.