⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
nodejs
/
jest-worker
/
build
/
workers
/
View File Name :
WorkerAbstract.d.ts
/** * 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. */ /// <reference types="node" /> /// <reference types="node" /> import { EventEmitter, PassThrough } from 'stream'; import { WorkerInterface, WorkerOptions, WorkerStates } from '../types'; export default abstract class WorkerAbstract extends EventEmitter implements Pick<WorkerInterface, 'waitForWorkerReady' | 'state'> { #private; protected _fakeStream: PassThrough | null; protected _exitPromise: Promise<void>; protected _resolveExitPromise: () => void; protected _workerReadyPromise: Promise<void> | undefined; protected _resolveWorkerReady: (() => void) | undefined; get state(): WorkerStates; protected set state(value: WorkerStates); constructor(options: WorkerOptions); /** * Wait for the worker child process to be ready to handle requests. * * @returns Promise which resolves when ready. */ waitForWorkerReady(): Promise<void>; /** * Used to shut down the current working instance once the children have been * killed off. */ protected _shutdown(): void; protected _getFakeStream(): PassThrough; }