Skip to main content

join_set_spawn_blocking

Function join_set_spawn_blocking 

Source
pub fn join_set_spawn_blocking<F, T>(
    join_set: &mut JoinSet<T>,
    name: impl AsRef<str>,
    task: F,
)
where F: FnOnce() -> T + Send + 'static, T: Send + 'static,
Expand description

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