Description Usage Arguments Value Examples
This is a helper function to set a timeout on a promise. It is designed to
be used with the magrittr
pipe %>%
.
1 2 3 4 5 |
x |
An object. |
delay |
Number of seconds before rejecting the promise. |
msg |
Message if the timeout expires. |
A promise which fulfills when x
fulfills before the delay expires:
in this case, the value of the returned promise is the value of x
. If
x
is not a fulfilled promise when the delay expires, the returned promise
is rejected.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.