retort v1.2.0 Retort.Channel

Establishes a channel

Summary

Types

The name of a RabbitMQ queue

Functions

Closes the channel if it is not already closed

Opens a new channel on queue with the calling process as the consumer

Types

queue()
queue() :: String.t

The name of a RabbitMQ queue

Functions

ensure_closed(channel)
ensure_closed(%AMQP.Channel{conn: term, pid: term}) ::
  :already_closed |
  :ok

Closes the channel if it is not already closed

init(queue, amqp \\ Retort.AMQP.Default)
init(queue, module) :: {:ok, %AMQP.Channel{conn: term, pid: term}}

Opens a new channel on queue with the calling process as the consumer