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

x/fathym_common/src/workers/FathymWorker.ts>FathymWorker

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
class FathymWorker
Abstract
import { FathymWorker } from "https://deno.land/x/fathym_common@v0.2.165-integration/src/workers/FathymWorker.ts";

Constructors

new
FathymWorker(worker: Worker)

Type Parameters

TConfig extends FathymWorkerConfig
TMessage extends FathymWorkerMessage
TMessageTypes extends FathymWorkerMessageTypes

Properties

protected
config: TConfig
protected
workerMessageHandlers: [K in TMessageTypes]: FathymWorkerMessageHandler | undefined

Methods

protected
handleInitConfig(): Promise<any>
protected
handleWorkerInit(msg: FathymWorkerMessage<TConfig>): Promise<void>
protected
handleWorkerMessage(event: MessageEvent<TMessage>): Promise<void>
protected
handleWorkerPing(msg: FathymWorkerMessage): Promise<void>
protected
handleWorkerTerminate(msg: TMessage): Promise<void>
protected
loadWorkerMessageHandlers(): this.workerMessageHandlers
protected
sendMessage(msg: TMessage): void