Skip to main content

JoinSetExt

Trait JoinSetExt 

pub trait JoinSetExt<T>: Sealed {
    // Required methods
    fn spawn_traced<F>(&mut self, future: F) -> AbortHandle
       where F: Future<Output = T> + Send + 'static,
             T: Send + 'static;
    fn spawn_traced_on<F>(&mut self, future: F, runtime: &Handle) -> AbortHandle
       where F: Future<Output = T> + Send + 'static,
             T: Send + 'static;
}
Available on crate feature dial9 only.
Expand description

Dial9 instrumentation for [JoinSet].

Required Methods§

fn spawn_traced<F>(&mut self, future: F) -> AbortHandle
where F: Future<Output = T> + Send + 'static, T: Send + 'static,

Spawn a task into this set with dial9 instrumentation.

fn spawn_traced_on<F>(&mut self, future: F, runtime: &Handle) -> AbortHandle
where F: Future<Output = T> + Send + 'static, T: Send + 'static,

Spawn a task into this set on runtime with dial9 instrumentation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl<T> JoinSetExt<T> for JoinSet<T>

§

fn spawn_traced<F>(&mut self, future: F) -> AbortHandle
where F: Future<Output = T> + Send + 'static, T: Send + 'static,

§

fn spawn_traced_on<F>(&mut self, future: F, runtime: &Handle) -> AbortHandle
where F: Future<Output = T> + Send + 'static, T: Send + 'static,

Implementors§