nanolith
Version:
Multi-threading in no time with seamless TypeScript support.
8 lines (7 loc) • 394 B
TypeScript
import { TypedEmitter } from 'tiny-typed-emitter';
import type { PoolItemConfig, PoolItemOptions, PoolItemEvents } from '../types/pool.js';
import type { WorkerType } from '../constants/workers.js';
export declare class PoolItem<Type extends WorkerType = WorkerType> extends TypedEmitter<PoolItemEvents> {
readonly options: PoolItemOptions;
constructor(config: PoolItemConfig<Type>);
}