Signed-off-by: shangchenglumetro <shuang.cui@live.com>
biased;
res = map.join_next() => match res {
Some((_key, res)) => panic!("Task {res:?} exited."),
- None => panic!("Phantom task completeion."),
+ None => panic!("Phantom task completion."),
},
() = tokio::task::yield_now() => {},
}
/// Small indirection for the spawn implementations.
///
/// This is introduced for [`Self::spawn`] and [`Self::spawn_with`] to use:
- /// [`Self::spawn`] cannot depend directly on on [`Self::spawn_with`] since
+ /// [`Self::spawn`] cannot depend directly on [`Self::spawn_with`] since
/// it is behind `tokio_unstable`. It also serves as a way to reduce
/// monomorphization bloat by taking in an already-spawned child process
/// instead of a command and custom spawn function.