UNPKG

python-shell-cluster

Version:
13 lines (12 loc) 404 B
import { Options } from "python-shell"; declare class PythonShellCluster { private pyshells; private queue; private scriptLocation; constructor(numberOfinstances: number, path: string, options?: Options); addInstances(n: number, options?: Options): void; run(task: string | object): Promise<unknown>; private runner; private nextTask; } export default PythonShellCluster;