pub fn join_thread(handle: ThreadHandle) -> Result<i32, TaskError>Expand description
Waits for an exited thread and returns its exit code.
Resource teardown is attempted synchronously once. A late IRQ wake or other stable header reference may legitimately defer final reclamation, so join releases its owning handle to the bounded task-system reaper instead of spinning until unrelated references disappear.