TaskManager

class TaskManager(scope: CoroutineScope)

Manages asynchronous tasks and their progress

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun cancel(taskName: String)

Cancels a task

Link copied to clipboard
fun complete(taskName: String)

Marks a task as completed. This will also mark all subtasks as completed.

Link copied to clipboard
fun createTask(name: String): Task

Creates a new task

Link copied to clipboard

Gets all active tasks

Link copied to clipboard
fun <T> launch(taskName: String, action: suspend (Task) -> T): Task

Launches a task within the task manager's scope