[JoinSet::spawn](tokio::task::JoinSet::spawn) - Spawn a new task.
(&mut self, task: F)
| 58 | impl<T: 'static> JoinSet<T> { |
| 59 | /// [JoinSet::spawn](tokio::task::JoinSet::spawn) - Spawn a new task. |
| 60 | pub fn spawn<F>(&mut self, task: F) -> AbortHandle |
| 61 | where |
| 62 | F: Future<Output = T>, |
| 63 | F: Send + 'static, |
| 64 | T: Send, |
| 65 | { |
| 66 | self.inner.spawn(trace_future(task)) |
| 67 | } |
| 68 | |
| 69 | /// [JoinSet::spawn_on](tokio::task::JoinSet::spawn_on) - Spawn a task on a provided runtime. |
| 70 | pub fn spawn_on<F>(&mut self, task: F, handle: &Handle) -> AbortHandle |
nothing calls this directly
no test coverage detected