Skip to main content

begin_current_park

Function begin_current_park 

Source
pub fn begin_current_park() -> Result<CurrentParkStart, TaskError>
Expand description

Begins a scheduler-owned park transaction for an OS-owned waiter queue.

The caller must serialize its condition check and waiter publication so a selecting producer either observes the waiter or leaves the scheduler’s sticky wake-before-park notification. This function is bounded and does not sleep, allocate, or invoke OS callbacks.