cancelAndConsumeRemainingEvents

abstract suspend fun cancelAndConsumeRemainingEvents(): List<Event<T>>

Cancel this ReceiveTurbine and return any events which have already been received.

If it is backed by an underlying coroutine (e.g. the coroutine run by test), that coroutine will also be cancelled. If called within a test block, the test block will exit.