Skip to main content

build_pool_with_panic_handler

Function build_pool_with_panic_handler 

Source
pub fn build_pool_with_panic_handler(
    builder: ThreadPoolBuilder,
) -> Result<ThreadPool, ThreadPoolBuildError>
Available on crate feature rayon only.
Expand description

Builds a rayon thread pool with a panic handler that prevents aborting the process.

Rust’s default panic hook already logs the panic message and backtrace to stderr, so the handler itself is intentionally a no-op.