pub fn task_detach<M: Memory + Copy>(m: M, task: u64) -> i32
Take task out of whatever queue it is in for good, then wait for the holders to drop it, so that its memory can be reused.
task