View Source OffBroadwaySequin.SequinClientBehaviour behaviour (off_broadway_sequin v0.1.3)

A generic behaviour to implement Sequin Clients for OffBroadwaySequin.Producer.

Summary

Types

@type messages() :: [Broadway.Message.t()]

Callbacks

@callback init(opts :: any()) ::
  {:ok, normalized_opts :: any()} | {:error, reason :: binary()}
Link to this callback

receive_messages(demand, opts)

View Source
@callback receive_messages(demand :: pos_integer(), opts :: any()) :: messages()