pub fn with_thread_pool<F, R>(f: F) -> RExpand description
Execute the provided closure within the shared Rayon thread pool.
This helper ensures all parallel work within the workspace shares the same
worker configuration (thread count, naming). The pool size can be capped via
the LLKV_MAX_THREADS environment variable; non-positive values fall back to
the detected hardware parallelism.
§Arguments
f: Closure to run inside the pool.
§Panics
Panics only if the global pool fails to initialize, which indicates a bug in the underlying Rayon builder.