Skip to main content

should_stop

Function should_stop 

Source
pub fn should_stop() -> bool
Expand description

Cooperative cancellation (plan.md §5.4): poll this from the task’s main loop; returns true once super::TaskHandle::request_stop was called on the current task.