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

14 lines
320 B
TypeScript
Raw Permalink Normal View History

2017-01-29 19:50:36 +00:00
import 'typings-global';
export interface IThreadFunction {
(input: any, done: any): void;
}
export declare class ThreadFunction {
thread: any;
constructor(functionArg: IThreadFunction);
/**
* sends a message to the spawned process
*/
send<T>(message: any): Promise<T>;
kill(): void;
}