requestCore: Request a core for multicore processing

View source: R/backend_api-11.MulticoreFutureBackend-class.R

requestCoreR Documentation

Request a core for multicore processing

Description

If no cores are available, the current process blocks until a core is available.

Usage

requestCore(await, workers = availableCores(), timeout, delta, alpha)

Arguments

await

A function used to try to "collect" finished multicore subprocesses.

workers

Total number of workers available.

timeout

Maximum waiting time (in seconds) allowed before a timeout error is generated.

delta

Then base interval (in seconds) to wait between each try.

alpha

A multiplicative factor used to increase the wait interval after each try.

Value

Invisible TRUE. If no cores are available after extensive waiting, then a timeout error is thrown.


future documentation built on April 12, 2025, 1:25 a.m.

Related to requestCore in future...