INNER CODE UNIT · Kotlin
clearSource
M66B/FairEmail · app/src/main/java/androidx/lifecycle/CoroutineLiveData.kt:227
internal suspend fun clearSource() {
emittedSource?.disposeNow()
emittedSource = null
}
override fun onActive() {
super.onActive()
blockRunner?.maybeRun()
}
override fun onInactive() {
super.onInactive()
blockRunner?.cancel()
}
}
/**
* Builds a LiveData that has values yielded from the given [block] that executes on a