UNPKG

@xylabs/threads

Version:

Web workers & worker threads as simple as a function call

4 lines 447 B
import type { ModuleMethods, ModuleProxy, ProxyableFunction, Worker as WorkerType } from '../types/master.ts'; export declare function createProxyFunction<Args extends any[], ReturnType>(worker: WorkerType, method?: string): ProxyableFunction<Args, ReturnType>; export declare function createProxyModule<Methods extends ModuleMethods>(worker: WorkerType, methodNames: string[]): ModuleProxy<Methods>; //# sourceMappingURL=invocation-proxy.d.ts.map