import { default } from "https://deno.land/x/script_nop@v2.3.2/src/MessageHandler.ts";
Constructors
new
default(childThreads: Worker[],
handlers?: ThreadHandlers,
onCoreLoad?: ThreadMessage,
onCoreLoadedChild?: (main: Worker, msg: any) => Promise<any> | any,
onCoreLoadedMain?: (child: Worker, msg: any) => Promise<void> | void,
Methods
receive(msg: ThreadMessage, from: Worker | undefined)
sendToChildThread(worker: Worker, msg: ThreadMessage)