Skip to contents

Called on load and whenever the option changes. 0 returns the parallel paths to rayon's own default, which is one thread per core.

Usage

ga_set_thread_pool(n)

Arguments

n

the most threads to use, or 0 for rayon's default

Value

n, invisibly

Examples

# hold the parallel paths to two threads
ga_set_thread_pool(2)
#> [1] 2

# and back to one per core
ga_set_thread_pool(0)
#> [1] 0