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

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

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Latest
class FathymWorkerClient
import { FathymWorkerClient } from "https://deno.land/x/fathym_common@v0.2.167/src/workers/FathymWorkerClient.ts";

Constructors

new
FathymWorkerClient(workerPath: string)

Type Parameters

TConfig extends FathymWorkerConfig
optional
TMessage extends FathymWorkerMessage = FathymWorkerMessage<any>

Properties

protected
worker: Worker

Methods

FireAndForget<TPayload = undefined>(msg: TMessage & { Payload?: TPayload; })
Send<TResult = Record<string, unknown> | undefined, TPayload = undefined>(msg: TMessage & { Payload?: TPayload; }): Promise<TResult>
Start(config: TConfig): Promise<Record<string, unknown> | undefined>
Stream<TResult = Record<string, unknown> | undefined, TPayload = undefined>(_msg: TMessage & { Payload?: TPayload; }): Promise<TResult>