Inngest · Function
step.waitForEvent
Use step.waitForEvent() to pause a function until a matching event arrives or a timeout expires. It returns the event payload when successful and null when no event arrives in time.
Last updated
Syntax
step.waitForEvent(id, options): Promise<null | EventPayload>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
step.waitForSignalstep.sleepgroup.parallel()eventType()