stopMulticoreFuture: Stops a future run in a multicore plan

View source: R/async-interrupt.R

stopMulticoreFutureR Documentation

Stops a future run in a multicore plan

Description

Stops a future run in a multicore plan

Usage

stopMulticoreFuture(x)

Arguments

x

The MulticoreFuture

Details

This function sends terminate and kill signals to the process running the future, and will only work for futures run on a multicore plan. This approach is not recommended for cases where you can listen for interrupts within the future (with AsyncInterruptor). However, for cases where long running code is in an external library for which you don't have control, this can be the only way to terminate the execution.

Note that multicore is not supported on Windows machines or within RStudio.


fellstat/ShinyAsyncTools documentation built on Feb. 13, 2023, 4:17 a.m.