Function get_task_waker

Source
pub fn get_task_waker(task_id: usize) -> &'static Waker
Expand description

Get or create a waker for a specific task

This function returns a reference to the waker associated with the given task ID. If no waker exists for the task, a new one is created.

§Arguments

  • task_id - The ID of the task to get a waker for

§Returns

A reference to the waker for the specified task