WardrikChannel.Waiting (wardrik_channel v0.1.0-rc.1)

Copy Markdown

A call the agent waits on a person to decide.

  • :conversation - the conversation it's in.
  • :interrupt - the Wardrik.Interrupt.
  • :arguments - the call's arguments, if known.
  • :asked_by - who asked for the turn. They may always decide it.

Put conversation, the interrupt's id and asked_by on the buttons. Pass them back to WardrikChannel.decide/4 when one is pressed.

Summary

Functions

Returns the calls a parked turn's notice waits on.

Types

t()

@type t() :: %WardrikChannel.Waiting{
  arguments: term(),
  asked_by: String.t() | nil,
  conversation: String.t(),
  interrupt: Wardrik.Interrupt.t()
}

Functions

from_notice(notice)

@spec from_notice(Wardrik.Notice.t()) :: [t()]

Returns the calls a parked turn's notice waits on.