If no cores are available, the current process blocks until a core is available.
requestCore(
await,
workers = availableCores(),
timeout = getOption("future.wait.timeout",
as.numeric(Sys.getenv("R_FUTURE_WAIT_TIMEOUT", 30 * 24 * 60 * 60))),
delta = getOption("future.wait.interval",
as.numeric(Sys.getenv("R_FUTURE_WAIT_INTERVAL", "0.2"))),
alpha = getOption("future.wait.alpha", as.numeric(Sys.getenv("R_FUTURE_WAIT_ALPHA",
"1.01")))
)
A function used to try to "collect" finished multicore subprocesses.
Total number of workers available.
Maximum waiting time (in seconds) allowed before a timeout error is generated.
Then base interval (in seconds) to wait between each try.
A multiplicative factor used to increase the wait interval after each try.
Invisible TRUE. If no cores are available after extensive waiting, then a timeout error is thrown.