Urara-Blog/node_modules/.pnpm-store/v3/files/26/3b3a78f5af1930acecf1ccf280531e1f6f6d4dd62301cf09352728396f61533046c329a687c21f7226e94c4d56472b96d5ffb205bbf7d3a216d8e54497cd05
2022-08-14 01:14:53 +08:00

13 lines
691 B
Text

/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import BaseWorkerPool from './base/BaseWorkerPool';
import type { ChildMessage, OnCustomMessage, OnEnd, OnStart, WorkerInterface, WorkerOptions, WorkerPoolInterface } from './types';
declare class WorkerPool extends BaseWorkerPool implements WorkerPoolInterface {
send(workerId: number, request: ChildMessage, onStart: OnStart, onEnd: OnEnd, onCustomMessage: OnCustomMessage): void;
createWorker(workerOptions: WorkerOptions): WorkerInterface;
}
export default WorkerPool;