UNPKG

expressmultithread

Version:

Fast, light-weight and low dependency [Express.js](https://www.npmjs.com/package/express) multithreaded router.

19 lines (18 loc) 573 B
import { Serializable, Source, Task } from '../types'; declare class Parent { private childs; private _sources; private inc; constructor(threadCount?: number); private newChild; dispatchTask(task: Task): void; addSource(source: string[]): void; addMiddleware(path: string, opts: Serializable[]): void; removeMiddleware(opts: Serializable[], path?: string): void; close(): void; private postChilds; get _sourcesList(): Source[]; get _inc(): Number; } export declare const Instance: Parent | null; export default Instance;