nbrOfWorkers

0th

Percentile

Gets the number of workers available

Gets the number of workers available

Usage
nbrOfWorkers(evaluator = NULL)
Arguments
evaluator

A future evaluator function. If NULL (default), the current evaluator as returned by plan() is used.

Value

A number in [1, Inf].

Aliases
  • nbrOfWorkers
Examples
# NOT RUN {
plan(multiprocess)
nbrOfWorkers()  ## == availableCores()

plan(sequential)
nbrOfWorkers()  ## == 1
# }
Documentation reproduced from package future, version 1.11.1.1, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.