pub trait ConcurrentTaskRunner<Runtime>where
Runtime: HasStreamType,{
// Required methods
fn run_concurrent_tasks<T>(
runtime: &Runtime,
tasks: Vec<T>,
) -> impl Future<Output = ()> + Send
where T: Task;
fn run_concurrent_task_stream<T>(
runtime: &Runtime,
tasks: Runtime::Stream<T>,
) -> impl Future<Output = ()> + Send
where T: Task;
}Required Methods§
fn run_concurrent_tasks<T>(
runtime: &Runtime,
tasks: Vec<T>,
) -> impl Future<Output = ()> + Sendwhere
T: Task,
fn run_concurrent_task_stream<T>(
runtime: &Runtime,
tasks: Runtime::Stream<T>,
) -> impl Future<Output = ()> + Sendwhere
T: Task,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.