Upstash · Function
context.waitForEvent
Pauses a workflow until a matching event arrives or a timeout ends. It returns the event payload and shows whether the wait ended by timeout.
Last updated
Syntax
context.waitForEvent<TEventData>(stepId, eventId, options?)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
context.notifycontext.createWebhookcontext.waitForWebhookworkflowRunId