TaskRef

Type Alias TaskRef 

Source
pub type TaskRef = Arc<dyn Task>;
Expand description

Shared handle to a task object.

Type alias for Arc<dyn Task>, used throughout the runtime for:

  • Passing tasks to Supervisor
  • Sharing tasks between actors
  • Cloning task references cheaply

Aliased Typeยง

pub struct TaskRef { /* private fields */ }