Constructors
constructor
- new Thread(file, options): Thread
Parameters
- file: string
- options: WorkerOptions
Properties
options
options: WorkerOptions
Methods
kill
- kill(): boolean
Returns boolean
respawn
- respawn(): Worker
Returns Worker
send
- send(message): Promise<void>
Returns Promise<void>
spawn
- spawn(): Worker
Returns Worker
Kills the worker.