Stop evaluation of a mirai that is in progress.

stop_mirai(aio)

Arguments

aio

a 'mirai' object.

Value

Invisible NULL.

Details

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.

Examples

if (interactive()) {
# Only run examples in interactive R sessions

s <- mirai(Sys.sleep(n), n = 5)
stop_mirai(s)

}