set_rayon_num_threads

set_rayon_num_threads(num_threads)

Set the Rayon global worker-pool size.

Parameters

num_threads : int

Positive number of Rayon worker threads. This must be called before any Rayon use in the current Python process. If Rayon has already been initialized, a RuntimeError is raised.