Skip to main content

Module task

Module task 

Source
Expand description

Task abstraction layer

Provides safe abstractions for task/thread operations including:

  • Task reference counting
  • Task context access
  • Task lifecycle management

Inspired by Theseus Task and Asterinas thread abstractions.

Structs§

TaskId
Unique task identifier
TaskInner
Internal task structure
TaskOptions
Task options for spawning new tasks
TaskRef
Reference-counted task handle

Enums§

TaskState
Task state enumeration

Functions§

current_task
Gets the current task