Google is committed to advancing racial equity for Black communities. See how.

CompositionCoroutineScope

interface CompositionCoroutineScope : CoroutineScope
androidx.compose.runtime.CompositionCoroutineScope

A CoroutineScope used for launching side effects of a composition that also permits awaiting the next presentation frame of the composition. This can be useful for performing the next action of an animation while the effect is still present in the composition.

Summary

Public methods
open suspend Long

Extension functions
From androidx.compose.runtime
suspend Nothing
CompositionCoroutineScope.awaitDispose(onDispose: () -> Unit = {})

Suspends the current coroutine until the effect is disposed and the CompositionCoroutineScope is cancelled, and invokes onDispose before resuming.

Public methods

awaitFrame

open suspend fun awaitFrame(): Long

Deprecated.