async_constant | R Documentation |
This is sometimes useful to start a deferred chain.
async_constant(value = NULL)
value |
The value to resolve to. |
Note that the evaluation of value
is forced when the deferred value
is created.
A deferred value.
afun <- async(function() {
async_constant(1/100)$
then(function(x) delay(x))$
then(function(x) print(x))
})
synchronise(afun())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.