smartspawn/dist/smartipc.classes.thread.d.ts

11 lines
275 B
TypeScript
Raw Normal View History

2017-01-29 19:50:36 +00:00
export declare let setWorkerBasePath: (basePathArg: string) => void;
export declare class Thread {
thread: any;
constructor(filePathArg: string);
/**
* sends a message to the spawned process
*/
send<T>(message: any): Promise<T>;
kill(): void;
}