main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
861 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | /**
|
---|
| 2 | * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
---|
| 3 | *
|
---|
| 4 | * This source code is licensed under the MIT license found in the
|
---|
| 5 | * LICENSE file in the root directory of this source tree.
|
---|
| 6 | */
|
---|
| 7 | /// <reference types="node" />
|
---|
| 8 | import { PoolExitResult, WorkerInterface, WorkerOptions, WorkerPoolOptions } from '../types';
|
---|
| 9 | export default class BaseWorkerPool {
|
---|
| 10 | private readonly _stderr;
|
---|
| 11 | private readonly _stdout;
|
---|
| 12 | protected readonly _options: WorkerPoolOptions;
|
---|
| 13 | private readonly _workers;
|
---|
| 14 | constructor(workerPath: string, options: WorkerPoolOptions);
|
---|
| 15 | getStderr(): NodeJS.ReadableStream;
|
---|
| 16 | getStdout(): NodeJS.ReadableStream;
|
---|
| 17 | getWorkers(): Array<WorkerInterface>;
|
---|
| 18 | getWorkerById(workerId: number): WorkerInterface;
|
---|
| 19 | createWorker(_workerOptions: WorkerOptions): WorkerInterface;
|
---|
| 20 | end(): Promise<PoolExitResult>;
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.