fn tract_executor() -> Option<Executor>Expand description
The executor run_threaded installs, or None to stay on the calling thread.
Native: one pool sized to rayon’s, built once. WASM: rayon’s global pool — tract cannot
build its own there (ThreadPoolBuilder::build calls std::thread::spawn, unsupported on
wasm32-unknown-unknown), so Executor::RayonGlobal uses the pool
wasm_bindgen_rayon::init_thread_pool sets up, once the host reports it via
[set_wasm_threads_available].