import type AsyncProcessPool from '../abstract/asyncProcessPool'; import ProcessContext from '../abstract/processContext'; // import ChildProcessPool from '../child/childPool'; import type RootProcessPool from './rootProcessPool'; /** * Process context */ class RootProcessContext extends ProcessContext { private _pool: RootProcessPool; /** * Constructs instance * @param processId process ID * @param pool pool the process is running in */ constructor(poolContext: AsyncProcessPool.Context) { super(poolContext, poolContext.pool /*, ChildProcessPool */); this._pool = poolContext.pool; } /** * Returns pool the process is running in * @returns process pool */ get pool() { return this._pool; } } export default RootProcessContext;