panicked at 'The global thread pool has not been initialized.: ThreadPoolBuildError { kind: IOError(Error { kind: Unsupported, message: "operation not supported on this platform" }) }'
A possible solution would be to use my crate maybe_parallel_iterator. From the perspective of this crate, all par_iter[_mut] would be replaced with maybe_par_iter[_mut]. Then, you can pass the rayon feature to the crate to enable parallelism.
I wanted to use this in a web game, but ran into
It seems this library uses
rayon
internally, which isn't compatible (without jumping through hoops like setting up web workers).A possible solution would be to use my crate maybe_parallel_iterator. From the perspective of this crate, all
par_iter[_mut]
would be replaced withmaybe_par_iter[_mut]
. Then, you can pass therayon
feature to the crate to enable parallelism.