fork

abstract fun fork(modulePath: Value, args: Value?, options: Value?): ChildProcess

Fork

Specialized version of the spawn method which is designed to "fork" the currently running copy of Elide, with a new modulePath as the entrypoint.

Return

Child process handle which was spawned using the provided modulePath, args, and options inputs.

Parameters

modulePath

Path to the module to execute.

args

Arguments to specify for the command.

options

Options for the process execution, or null (undefined in JavaScript).