Hephaestus.Steps.WaitForEvent (hephaestus v0.3.1)

Copy Markdown View Source

Built-in step that pauses a workflow until an external event is received.

Returns {:async} immediately. The workflow remains in :waiting status until resume/2 is called with the expected event name.

Config

  • :event_name - the event name to wait for (e.g., "payment_confirmed")
  • :timeout_ms - optional timeout in milliseconds