pub fn exit_current_thread() -> Result<(), TaskError>
Exits the calling thread and switches to its replacement.