Skip to content

Commit

Permalink
feat(rust): Implement wasm Pool::scope (#13476)
Browse files Browse the repository at this point in the history
  • Loading branch information
shritesh committed Jan 6, 2024
1 parent 38901b8 commit a1108fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/polars-utils/src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit a1108fc

Please sign in to comment.