Package-level declarations

Types

Link copied to clipboard

Opaque handle to a task started by TaskScope.

Link copied to clipboard
Link copied to clipboard
class TaskKey

Stable identifier for a managed coroutine task within a TaskScope.

Link copied to clipboard
sealed interface TaskLaunchResult

Outcome of TaskScope.launch.

Link copied to clipboard
sealed interface TaskPolicy

Launch policy for TaskScope.launch.

Link copied to clipboard
interface TaskScope

Registry of keyed coroutine tasks scoped to a parent CoroutineScope.

Functions

Link copied to clipboard
fun TaskScope(coroutineScope: CoroutineScope): TaskScope

Creates a TaskScope bound to coroutineScope.

Link copied to clipboard
fun TaskScope.taskState(key: TaskKey): StateFlow<TaskJobState>