threads
Version:
Web workers & worker threads as simple as a function call
9 lines (8 loc) • 357 B
TypeScript
declare function testImplementation(): void;
declare const _default: {
isWorkerRuntime: () => boolean;
postMessageToMaster: (message: any, transferList?: Transferable[] | undefined) => void;
subscribeToMasterMessages: (onMessage: (data: any) => void) => () => void;
testImplementation: typeof testImplementation;
};
export default _default;