takeItem() no longer throws an exception when returning a null value.
await-prefixed methods no longer interfere with virtual time control from a TestScheduler (such as inside runTest).
0.12.0
Added
Support specifying a human-readable name for differentiating the failures of multiple Turbines
Fixed
Properly catch all Throwable subtypes from failures in flows and channels as events.
0.11.0
Added
Restore timeout support. By default a 1-second timeout will be enforced when awaiting an event. This can be customized by supplying a timeout argument or by using the withTurbineTimeout wrapper function. Timeouts will always use wall clock time even when using a virtual time dispatcher.
Changed
When runTest (or any TestCoroutineScheduler) is in use, switch to the UnconfinedTestScheduler internally to ensure virtual time remains working.
0.10.0
Changed
Remove ReceiveTurbine.ignoreRemainingEvents from public API.
Fixed
Restore usage of Unconfined dispatcher preventing value conflation (as much as possible) so that intermediate values can always be observed.
0.9.0
FlowTurbine is now called ReceiveTurbine. This is the consume-only type with which you assert on events it has seen (historically only from a Flow).
New public Turbine type implements ReceiveTurbine but also allows you write events from a data source. Use this to implement fakes or collect events from non-Flow streams.
Extension functions on ReceiveChannel provide ReceiveTurbine-like assertion capabilities.
Support for legacy JS has been removed. Only JS IR is now supported.
takeItem() no longer throws an exception when returning a null value.
await-prefixed methods no longer interfere with virtual time control from a TestScheduler (such as inside runTest).
[0.12.0]
Added
Support specifying a human-readable name for differentiating the failures of multiple Turbines
Fixed
Properly catch all Throwable subtypes from failures in flows and channels as events.
[0.11.0]
Added
Restore timeout support. By default a 1-second timeout will be enforced when awaiting an event. This can be customized by supplying a timeout argument or by using the withTurbineTimeout wrapper function. Timeouts will always use wall clock time even when using a virtual time dispatcher.
Changed
When runTest (or any TestCoroutineScheduler) is in use, switch to the UnconfinedTestScheduler internally to ensure virtual time remains working.
[0.10.0]
Changed
Remove ReceiveTurbine.ignoreRemainingEvents from public API.
Fixed
Restore usage of Unconfined dispatcher preventing value conflation (as much as possible) so that intermediate values can always be observed.
[0.9.0]
FlowTurbine is now called ReceiveTurbine. This is the consume-only type with which you assert on events it has seen (historically only from a Flow).
New public Turbine type implements ReceiveTurbine but also allows you write events from a data source. Use this to implement fakes or collect events from non-Flow streams.
Extension functions on ReceiveChannel provide ReceiveTurbine-like assertion capabilities.
Support for legacy JS has been removed. Only JS IR is now supported.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps app.cash.turbine:turbine from 0.8.0 to 0.12.1.
Release notes
Sourced from app.cash.turbine:turbine's releases.
Changelog
Sourced from app.cash.turbine:turbine's changelog.
Commits
828f0a6
Prepare version 0.12.18295ee3
Run wall-clock timeout in GlobalScope3207cda
Update to Kotlin 1.7.202518ea0
Revisit documentation (#161)3867298
Correct some documentation typos (#167)f91b176
Ensure takeItem can return null valuesff1959f
Bump actions/setup-java from 3.5.1 to 3.6.0 (#162)4d93645
Prepare next development versionfddacdd
Prepare version 0.12.08bc731a
Widen exception type to ThrowableDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)