run_on_geometry_pool

Function run_on_geometry_pool 

Source
pub fn run_on_geometry_pool<T: Send>(
    work: impl FnOnce() -> T + Send,
) -> Result<T, ThreadPoolBuildError>
Expand description

Run work on geometry_pool, so it and every rayon job it starts run on large-stack workers. Blocks the calling thread until work returns.

A panic in work is resumed on the calling thread (rayon’s install), so a caller that must not unwind wraps this in catch_unwind.