diff --git a/crates/polars-utils/src/wasm.rs b/crates/polars-utils/src/wasm.rs index 5f0293a4d3fe..9325d11a8bc5 100644 --- a/crates/polars-utils/src/wasm.rs +++ b/crates/polars-utils/src/wasm.rs @@ -37,4 +37,12 @@ impl Pool { { rayon::spawn(func); } + + pub fn scope<'scope, OP, R>(&self, op: OP) -> R + where + OP: FnOnce(&rayon::Scope<'scope>) -> R + Send, + R: Send, + { + rayon::scope(op) + } }