@hotmeshio/hotmesh
Version:
Serverless Workflow
9 lines (8 loc) • 340 B
TypeScript
/**
* Pauses the workflow until a signal with the given `signalId` is received.
*
* @template T
* @param {string} signalId - A unique signal identifier shared by the sender and receiver.
* @returns {Promise<T>} The data payload associated with the received signal.
*/
export declare function waitFor<T>(signalId: string): Promise<T>;