---
title: "TaskDispatchers"
description: "Interface providing access to [CoroutineDispatcher]s used for task execution inside a Compose hierarchy."
type: "interface"
lastmod: "2026-08-27"
---
## API Reference

> Source set: Common

```kotlin
public interface TaskDispatchers
```

Interface providing access to `CoroutineDispatcher`s used for task execution inside a Compose
hierarchy.

## Properties

### Default

> Source set: Common

```kotlin
public val Default: CoroutineDispatcher
```

A `CoroutineDispatcher` optimized for performing CPU-intensive work outside of the UI thread.

### IO

> Source set: Common

```kotlin
@get:Suppress("AcronymName") public val IO: CoroutineDispatcher
```

A `CoroutineDispatcher` designed for offloading blocking I/O tasks to a shared pool of
threads.

## Code Examples

### TaskDispatchersSample

```kotlin
@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")
}
```
