You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/main/java/com/monstarlab/arch/extensions/FlowExtensions.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ import kotlinx.coroutines.flow.*
7
7
importkotlinx.coroutines.launch
8
8
9
9
/**
10
+
* Copied from AOSP https://android.googlesource.com/platform/frameworks/support/+/67cbbea03d7036f3bd27aae897a3d44b2ee027f5/lifecycle/lifecycle-runtime-ktx/src/main/java/androidx/lifecycle/FlowExt.kt
10
11
* Flow operator that emits values from `this` upstream Flow when the [lifecycle] is
11
12
* at least at [minActiveState] state. The emissions will be stopped when the lifecycle state
* Copied from AOSP https://android.googlesource.com/platform/frameworks/support/+/67cbbea03d7036f3bd27aae897a3d44b2ee027f5/lifecycle/lifecycle-runtime-ktx/src/main/java/androidx/lifecycle/RepeatOnLifecycle.kt
34
35
* Launches and runs the given [block] in a coroutine when `this` [LifecycleOwner]'s [Lifecycle]
35
36
* is at least at [state]. The launched coroutine will be cancelled when the lifecycle state falls
0 commit comments