Description Super classes Methods
Asyncrhonous programming utilities powered by {future}
are available
in this object, mainly supplied by the fiery::Fire
object.
webtools::Configurable
-> webtools::Plugin
-> AsyncPlugin
new()
Create a new AsyncPlugin
AsyncPlugin$new()
exec()
Execute an expression in a different thread; the progress is checked at the end of each loop cycle.
AsyncPlugin$exec(name, expr, then, ...)
name
(str) human-readable name for easy identification
expr
(exp) expression to execute asyncrhonously
then
(fun) when expr
is evalated, handle with this funciton
...
(arg) extra arguments
exec_find()
Find async executions based on metadata
AsyncPlugin$exec_find(..., discard = FALSE)
...
(arg) extra arguments
discard
(flg) if TRUE, then selected is discarded instead of kept
exec_remove()
Remove async executions
AsyncPlugin$exec_remove(..., discard = FALSE)
...
(arg) extra arguments
discard
(flg) if TRUE, then selected is discarded instead of kept
time()
Execute an expression after a certain period of time.
AsyncPlugin$time(name, expr, then, after, ..., loop = FALSE)
name
(str) human-readable name for easy identification
expr
(exp) expression to execute asyncrhonously
then
(fun) when expr
is evalated, handle with this funciton
after
(num) seconds to wait until execution
...
(arg) extra arguments
loop
(flg) whether or not to keep looping (polling application)
time_find()
Find async time-delayed executions based on metadata
AsyncPlugin$time_find(..., discard = FALSE)
...
(arg) extra arguments
discard
(flg) if TRUE, then selected is discarded instead of kept
time_remove()
Remove async executions
AsyncPlugin$time_remove(..., discard = FALSE)
...
(arg) extra arguments
discard
(flg) if TRUE, then selected is discarded instead of kept
delay()
Execute an expression at the end of the cycle. Useful for just punting the cycle to the end in non-concurrent use cases.
AsyncPlugin$delay(name, expr, then, ...)
name
(str) human-readable name for easy identification
expr
(exp) expression to execute asyncrhonously
then
(fun) when expr
is evalated, handle with this funciton
...
(arg) extra arguments
delay_find()
Find async cycle-delayed executions based on metadata
AsyncPlugin$delay_find(..., discard = FALSE)
...
(arg) extra arguments
discard
(flg) if TRUE, then selected is discarded instead of kept
delay_remove()
Remove async executions
AsyncPlugin$delay_remove(..., discard = FALSE)
...
(arg) extra arguments
discard
(flg) if TRUE, then selected is discarded instead of kept
clone()
The objects of this class are cloneable with this method.
AsyncPlugin$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.