method NodeWorkerLike.terminate
NodeWorkerLike.terminate(): Promise<number>

Terminates the worker; resolves with the exit code.

Return Type

Promise<number>

Usage

import { type NodeWorkerLike } from "runtime/src/index.ts";