stop_mirai: mirai (Stop Evaluation)

stop_miraiR Documentation

mirai (Stop Evaluation)

Description

Stop evaluation of a mirai that is in progress.

Usage

stop_mirai(aio)

Arguments

aio

a 'mirai' object.

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.

Value

Invisible NULL.

Examples

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

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

}


mirai documentation built on Nov. 16, 2023, 5:08 p.m.