UNPKG

@hotmeshio/hotmesh

Version:

Serverless Workflow

11 lines (10 loc) 499 B
import { HotMesh } from './common'; /** * Checks if a side-effect is allowed to run. This ensures certain actions * are executed exactly once. * @private * @param {HotMesh} hotMeshClient - The HotMesh client. * @param {string} prefix - A unique prefix representing the action (e.g., 'trace', 'emit', etc.) * @returns {Promise<boolean>} True if the side effect can run, false otherwise. */ export declare function isSideEffectAllowed(hotMeshClient: HotMesh, prefix: string): Promise<boolean>;