/// Detaches a task from the manager. The task is not longer supervised by the manager.
Detaches a task from the manager. The task is not longer supervised by the manager.
Detaches a task from the manager . The task is not longer supervised by the manager .
pub fn detach(&mut self, task_key: usize) -> Result<TaskHandle<()>, TaskManagerError> {
        match self.tasks.try_remove(task_key) {
            Some(task_handle) => Ok(task_handle),
            None => Err(TaskManagerError::TaskNotFound),
        }
    }
pub fn detach ( & mut self , task_key : usize ) -> Result < TaskHandle < ( ) > , TaskManagerError > { match self . tasks . try_remove ( task_key ) { Some ( task_handle ) => Ok ( task_handle ) , None => Err ( TaskManagerError :: TaskNotFound ) , } }
Detaches a task from the manager.
Detaches a task from the manager .
&mut self
task_key
usize