cancel

abstract suspend fun cancel()

Cancel this ReceiveTurbine.

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

If cancel is invoked before the underlying coroutine or channel has been closed, ensureAllEventsConsumed will succeed even if the terminal event is not consumed.