powered by
This is sometimes useful to start a deferred chain.
async_constant(value = NULL)
The value to resolve to.
A deferred value.
Note that the evaluation of value is forced when the deferred value is created.
value
# NOT RUN { afun <- async(function() { async_constant(1/100)$ then(function(x) delay(x))$ then(function(x) print(x)) }) synchronise(afun()) # }
Run the code above in your browser using DataLab