forkProcess
forkProcess(
modulePath,options?):Promise<ForkedProcess>
Defined in: packages/node/src/process/fork-process.ts:111
Forks a Node module with an IPC channel and resolves once it has spawned, so
the returned handle always has a pid and a live channel. A spawn failure
rejects here rather than surfacing later on the handle.
Parameters
Section titled “Parameters”modulePath
Section titled “modulePath”string
The module to run as the child.
options?
Section titled “options?”Streams, environment, cancellation. See ForkProcessOptions.
Returns
Section titled “Returns”Promise<ForkedProcess>
A handle over the running child.
Throws
Section titled “Throws”When the module cannot be forked.