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

Method spawn_on

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

[JoinSet::spawn_on](tokio::task::JoinSet::spawn_on) - Spawn a task on a provided runtime.

(&mut self, task: F, handle: &Handle)

Source from the content-addressed store, hash-verified

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
71 where
72 F: Future<Output = T>,
73 F: Send + 'static,
74 T: Send,
75 {
76 self.inner.spawn_on(trace_future(task), handle)
77 }
78
79 /// [JoinSet::spawn_local](tokio::task::JoinSet::spawn_local) - Spawn a local task.
80 pub fn spawn_local<F>(&mut self, task: F) -> AbortHandle

Callers

nothing calls this directly

Calls 1

trace_futureFunction · 0.85

Tested by

no test coverage detected