Skip to content

Scrypted Documentation / ForkWorker

Interface: ForkWorker

Properties

nativeWorker?

optional nativeWorker: ChildProcess | Worker

Methods

terminate()

terminate(): void

Returns

void


on()

on(event, listener)

on(event, listener): void

Parameters

event: "exit"

listener

Returns

void

on(event, listener)

on(event, listener): void

Parameters

event: "error"

listener

Returns

void


removeListener()

removeListener(event, listener)

removeListener(event, listener): void

Parameters

event: "exit"

listener

Returns

void

removeListener(event, listener)

removeListener(event, listener): void

Parameters

event: "error"

listener

Returns

void