Skip to main content

alive_tasks

Function alive_tasks 

Source
pub fn alive_tasks() -> usize
Expand description

The number of tasks alive in the current runtime.

alive_tasks is the runtime’s own count and needs no bookkeeping from the caller, which matters: a count the test maintains itself would be counting the test’s model of the system rather than the system.