Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/script_nop/src/framework/utils/MessageHandler.ts>default

A framework for notification-oriented programming paradigm (NOP) implemented in TypeScript.
Go to Latest
class default
import { default } from "https://deno.land/x/script_nop@v2.4.7/src/framework/utils/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,
)

Properties

readonly
allThreadsLoaded: boolean
readonly
handlers
readonly
isMainThread: boolean
readonly
loadedWorkers
readonly
noThreadsLoaded: boolean