UNPKG

@loaders.gl/worker-utils

Version:

Utilities for running tasks on worker threads

8 lines (7 loc) 265 B
// 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;