Skip to content

0.8.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 May 15:50
· 191 commits to trunk since this release

Added

  • New testIn(CoroutineScope) API allows testing multiple flows without nesting lambdas.
  • New skip(Int) API can replace one or more calls to awaitItem() 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.