UNPKG

node-apparatus

Version:

A mix of common components needed for awesome node experience

17 lines (16 loc) 587 B
import { MessagePort } from "node:worker_threads"; /** * Abstract class representing a recipient that can handle method invocations * received via StatefulProxyManager. This class is designed to work with Node.js * worker threads. * * @abstract StatefulRecipient */ export declare abstract class StatefulRecipient { private shouldActivateMessagePort; private readonly messagePort; private readonly methodNameSet; constructor(shouldActivateMessagePort?: boolean, messagePort?: MessagePort); private receiveCommands; [Symbol.asyncDispose](): Promise<void>; }