pub(crate) trait JoinSetProvider:
Clone
+ Send
+ Sync
+ 'static {
type JoinSet<T: Send + Sync + 'static>: JoinSet<T>;
// Required method
fn new_join_set<T>(&self) -> Self::JoinSet<T>
where T: Send + Sync + 'static;
}Expand description
Trait for a runtime that can create JoinSets.
Required Associated Types§
Required Methods§
Sourcefn new_join_set<T>(&self) -> Self::JoinSet<T>
fn new_join_set<T>(&self) -> Self::JoinSet<T>
Create a new JoinSet for use with this runtime.
Important: the resulting JoinSet should only be used
from the context of the runtime it was created for.
Using the JoinSet with a different runtime can lead to panics,
or erroneous behavior.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".