UNPKG

workerpool

Version:

Offload tasks to a pool of workers on node.js and in the browser

9 lines (8 loc) 311 B
/** * Register methods to the worker * @param {Object} [methods] * @param {import('./types.js').WorkerRegisterOptions} [options] */ declare function register(methods?: Object, options?: import("./types.js").WorkerRegisterOptions): void; export function emit(payload: any): void; export { register as add };