Shiny Worker R6 Class
Shiny Worker R6 Class
new()
Initialize the worker's registry
Worker$new()
run_job()
Add job to the registry
Worker$run_job( id, fun, args_reactive, value_until_resolved = NULL, invalidate_time = 1000 )
id
character with job id
fun
function to calculate
args_reactive
reactive arguments that trigger the job
value_until_resolved
default value returned until the job is completed
invalidate_time
wait time before invalidating reactive context (msec)
reactive expression with promise of job completion
get_job_registry()
Displays jobs registry.
Worker$get_job_registry()
clone()
The objects of this class are cloneable with this method.
Worker$clone(deep = FALSE)
deep
Whether to make a deep clone.