Learn R Programming

future (version 1.16.0)

autoStopCluster: Automatically stop a cluster when garbage collected

Description

Registers a finalizer to a cluster such that the cluster will be stopped when garbage collected

Usage

autoStopCluster(cl, debug = FALSE)

Arguments

cl

A cluster object

debug

If TRUE, then debug messages are produced when the cluster is garbage collected.

Value

The cluster object with attribute gcMe set.

See Also

The cluster is stopped using stopCluster(cl).