method NodeWorkerLike.terminate NodeWorkerLike.terminate(): Promise<number> Terminates the worker; resolves with the exit code. Return Type Promise<number>