🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

TaskDispatchers

Interface providing access to CoroutineDispatchers used for task execution inside a Compose hierarchy.

TaskDispatchersSample

@Sampled
@Composable
fun TaskDispatchersSample() {
    val taskDispatchers = LocalTaskDispatchers.current
    LaunchedEffect(taskDispatchers) {
        withContext(taskDispatchers.IO) {
            // Perform background I/O operations using the provided IO context
        }
    }
    Text("TaskDispatchers Sample")
}

Content updated: