Added
- New
testIn(CoroutineScope)
API allows testing multiple flows without nesting lambdas. - New
skip(Int)
API can replace one or more calls toawaitItem()
where the result is not needed.
Changed
- Removed timeout parameter. The new
runTest
API from kotlinx.coroutines enforces a timeout automatically. - Documented that flows are implicitly canceled at the end of the
test
lambda. This has been the behavior for a few versions by accident, but now it is explicit and documented. - Cancel (and friends) are now suspending functions to ensure that non-canceleable coroutines complete and their effects are observed deterministically.