github cashapp/turbine 0.8.0

latest releases: 1.1.0, 1.0.0, 0.13.0...
2 years ago

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.

Don't miss a new turbine release

NewReleases is sending notifications on new releases.