Skip to main content

join_set_spawn

Function join_set_spawn 

Source
pub fn join_set_spawn<F, T>(
    join_set: &mut JoinSet<T>,
    name: impl AsRef<str>,
    task: F,
)
where F: Future<Output = T> + Send + 'static, T: Send + 'static,
Expand description

Добавить задачу в множество задач (многопоточная версия)