stop_mirai | R Documentation |
Stop evaluation of a mirai that is in progress.
stop_mirai(aio)
aio |
a 'mirai' object. |
Stops the asynchronous operation associated with the mirai by
aborting, and then waits for it to complete or to be completely aborted.
The mirai is then deallocated and attempting to access the value at
$data
will result in an error.
Invisible NULL.
if (interactive()) {
# Only run examples in interactive R sessions
s <- mirai(Sys.sleep(n), n = 5)
stop_mirai(s)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.