Expand description
Cooperative task stop with a monotonic deadline, using only the public task manager API (relationships, signals and sleep).
Tasks receive [Signal::Termination] and must finish by themselves. Embassy
cannot preempt or kill a task, so an unresponsive task is reported as
Error::Timeout and keeps every resource it references: nothing is
deallocated underneath it.
Constants§
- POLL_
INTERVAL - Interval between liveness checks while waiting for tasks to finish.
Functions§
- stop
- Ask every descendant of
rootto terminate, except the subtrees rooted atkeep(runtime services stopped by the driver stage), and wait until they are gone orbudgetelapsed on the monotonic clocknow. - termination_
requested - Whether the current task was asked to terminate or interrupt.