Absurd.EventWait (absurd v0.2.1)

Copy Markdown View Source

The durable decision returned when a run awaits an event.

When should_suspend is true, the database has put the run to sleep and the runner must stop without completing or failing it. Otherwise payload is the resolved event value, or nil for an elapsed timeout.

Summary

Types

t()

An event wait decision returned by the upstream SQL protocol.

Types

t()

@type t() :: %Absurd.EventWait{
  payload: Absurd.JSON.value() | nil,
  should_suspend: boolean()
}

An event wait decision returned by the upstream SQL protocol.