| WorkerPool | R Documentation |
Worker Pool R6 Class
Worker Pool R6 Class
Manages a pool of async workers
n_workersNumber of workers
queueQuery queue
resultsResults list
activeWhether pool is active Initialize worker pool
new()WorkerPool$new(n_workers = 4)
n_workersNumber of workers Add query to queue
add()WorkerPool$add(query, id = NULL)
queryQuery to add
idOptional query ID Process all queued queries
process()WorkerPool$process(progress = TRUE)
progressShow progress
List of results Get results
get_results()WorkerPool$get_results()
Results list Clear queue
clear_queue()Remove all queued items without processing them.
WorkerPool$clear_queue()
Invisible self Shutdown pool
shutdown()Shut down the worker pool and reset the future plan to sequential.
WorkerPool$shutdown()
Invisible self
clone()The objects of this class are cloneable with this method.
WorkerPool$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.