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
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)

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
deep

Whether to make a deep clone.


[Package shiny.worker version 0.0.1 Index]