UNPKG

nanolith

Version:

Multi-threading in no time with seamless TypeScript support.

9 lines (8 loc) 735 B
import { ConcurrencyOption } from '../constants/pool.js'; import { SharedU32Integer } from '../utilities/index.js'; import type { PoolItemOptions, PoolItemConfig } from '../types/pool.js'; export declare const cleanPoolConfig: <Options extends PoolItemConfig<import("../constants/workers.js").WorkerType>>({ file, workerData, priority, options, reffed, messengers, shareEnv, }: Options) => PoolItemOptions; export declare const generateConcurrencyValue: <Option extends ConcurrencyOption>(option: Option) => number; export declare const getDefaultPoolConcurrency: () => number; export declare const getActiveCounter: () => SharedU32Integer.SharedUint32; export declare const getConcurrencyCounter: () => SharedU32Integer.SharedUint32;