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 Shutdown pool
clear_queue()WorkerPool$clear_queue()
shutdown()WorkerPool$shutdown()
clone()The objects of this class are cloneable with this method.
WorkerPool$clone(deep = FALSE)deepWhether to make a deep clone.