INNER CODE UNIT · Kotlin

scope

M66B/FairEmail · app/src/main/java/androidx/lifecycle/CoroutineLiveData.kt:213

        val scope = CoroutineScope(Dispatchers.Main.immediate + context + supervisorJob)
        blockRunner =
            BlockRunner(liveData = this, block = block, timeoutInMs = timeoutInMs, scope = scope) {
                blockRunner = null
            }
    }

    internal suspend fun emitSource(source: LiveData<T>): DisposableHandle {
        clearSource()
        val newSource = addDisposableSource(source)
        emittedSource = newSource
        return newSource
    }

    internal suspend fun clearSource() {
        emittedSource?.disposeNow()
        emittedSource = null
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…