Skip to content

0.2.0

Compare
Choose a tag to compare
@psteiger psteiger released this 24 Jan 17:35
· 5 commits to master since this release
6df6652
  • Deprecation of old API and introduction of four new extension functions.

This release deprecates the Flow<T>.observe and Flow<T>.observeIn APIs, and instead provides more specialized versions:

  • Flow<T>.collectWhileResumed/Flow<T>.collectWhileResumedIn, and
  • Flow<T>.collectWhileStarted/Flow<T>.collectWhileStartedIn

A notable difference in behavior is the extension functions use launchWhenStarted/launchWhenResumed instead of just launch.

See #2 for motivation and more details.

(Thanks @peterLaurence).