Description Usage Arguments Details Value Examples
The hold()
function is a helper to turn a promises::promise()
in a
synchronous value: the R session awaits the fulfillment of the promise
and returns the value of the fulfilled promise. An error is thrown if the
promise is rejected or a timeout expires. This is a wrapper around
later::run_now()
.
1 2 3 4 5 6 |
x |
A |
timeout |
Number scalar, timeout in seconds. An error is thrown if the promise is still pending when the delay expires. |
msg |
Error message when the timeout expires. |
This function must not be used inside a function that returns a promise. Otherwise, this will lead to an infinite loop.
The value of the promise once resolved.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.