MCPcopy Create free account
hub / github.com/apache/datafusion / spawn

Method spawn

datafusion/common-runtime/src/join_set.rs:60–67  ·  view source on GitHub ↗

[JoinSet::spawn](tokio::task::JoinSet::spawn) - Spawn a new task.

(&mut self, task: F)

Source from the content-addressed store, hash-verified

58impl<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

Callers

nothing calls this directly

Calls 1

trace_futureFunction · 0.85

Tested by

no test coverage detected