pub fn cleanup_bootstrap_tasks(num_tasks: u32) -> Result<(), &'static str>
Expand description

Spawns a dedicated task to cleanup all bootstrap tasks by reaping them, i.e., taking their exit value.

This allows them to be fully dropped and cleaned up safely, as it would be invalid to reap and cleanup bootstrap tasks while the actual bootstrapped task was still running.

Arguments

  • num_tasks: the number of bootstrap tasks that must be cleaned up.