| Worker {shiny.worker} | R Documentation |
Shiny Worker R6 Class
Description
Shiny Worker R6 Class
Shiny Worker R6 Class
Methods
Public methods
Method new()
Initialize the worker's registry
Usage
Worker$new()
Method run_job()
Add job to the registry
Usage
Worker$run_job( id, fun, args_reactive, value_until_resolved = NULL, invalidate_time = 1000 )
Arguments
idcharacter with job id
funfunction to calculate
args_reactivereactive arguments that trigger the job
value_until_resolveddefault value returned until the job is completed
invalidate_timewait time before invalidating reactive context (msec)
Returns
reactive expression with promise of job completion
Method get_job_registry()
Displays jobs registry.
Usage
Worker$get_job_registry()
Method clone()
The objects of this class are cloneable with this method.
Usage
Worker$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
[Package shiny.worker version 0.0.1 Index]