Function rayon::spawn_broadcast
source · pub fn spawn_broadcast<OP>(op: OP)where
OP: Fn(BroadcastContext<'_>) + Send + Sync + 'static,
Expand description
Spawns an asynchronous task on every thread in this thread-pool. This task
will run in the implicit, global scope, which means that it may outlast the
current stack frame – therefore, it cannot capture any references onto the
stack (you will likely need a move
closure).
For more information, see the ThreadPool::spawn_broadcast()
method.