Skip to main content

Module task

Module task 

Source
Expand description

Defines the core Task abstraction and related components.

This module provides the fundamental building blocks for defining and managing units of work within the system. It includes the Task struct itself, which wraps a user’s function, and the TaskHandle, which is returned to the user to get the final result.

Structs§

Task
An internal representation of a unit of work.
TaskHandle
A handle to a task that has been submitted to the system.
TaskId
A unique identifier for a Task.

Enums§

Priority
Defines the priority level of a task.
TaskError
Represents errors that can occur during a task’s execution.
TaskExecutionOutcome
An internal enum representing the outcome of a task’s execution.