with.miraiDaemons | R Documentation |
Evaluate an expression with daemons that last for the duration of the expression. Ensure each mirai within the statement is explicitly called (or their values collected) so that daemons are not reset before they have all completed.
## S3 method for class 'miraiDaemons'
with(data, expr, ...)
data |
a call to |
expr |
an expression to evaluate. |
... |
not used. |
This function is an S3 method for the generic with()
for class
'miraiDaemons'.
The return value of expr
.
with(
daemons(2, dispatcher = FALSE),
{
m1 <- mirai(Sys.getpid())
m2 <- mirai(Sys.getpid())
cat(m1[], m2[], "\n")
}
)
status()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.