pub fn broadcast<OP, R>(op: OP) -> Vec<R>
Expand description
Executes op
within every thread in the current thread pool. If this is
called from a non-Rayon thread, it will execute in the global thread pool.
Any attempts to use join
, scope
, or parallel iterators will then operate
within that thread pool. When the call has completed on each thread, returns
a vector containing all of their return values.
For more information, see the ThreadPool::broadcast()
method.