pub fn join_set_spawn<F, T>(
join_set: &mut JoinSet<T>,
name: impl AsRef<str>,
task: F,
)where
F: Future<Output = T> + 'static,
T: Send + 'static,Expand description
Добавить задачу в множество задач (однопоточная версия)
pub fn join_set_spawn<F, T>(
join_set: &mut JoinSet<T>,
name: impl AsRef<str>,
task: F,
)where
F: Future<Output = T> + 'static,
T: Send + 'static,Добавить задачу в множество задач (однопоточная версия)