@loaders.gl/worker-utils
Version:
Utilities for running tasks on worker threads
10 lines (8 loc) • 317 B
text/typescript
// loaders.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
import * as WorkerThreads from 'worker_threads';
export * from 'worker_threads';
export const parentPort = WorkerThreads?.parentPort;
export const NodeWorker = WorkerThreads.Worker;
export type NodeWorkerType = WorkerThreads.Worker;