Releases: psteiger/flow-lifecycle-observer
Releases · psteiger/flow-lifecycle-observer
0.2.1
0.2.0
- 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
, andFlow<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).