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