Amqpx.Channel (amqpx v6.0.2)

Functions to operate on Channels.

Link to this section Summary

Functions

Closes an open Channel.

Opens a new Channel in a previously opened Connection.

Link to this section Types

@type t() :: %Amqpx.Channel{conn: Amqpx.Connection.t(), pid: pid()}

Link to this section Functions

@spec close(t()) :: :ok | {:error, Amqpx.Basic.error()}

Closes an open Channel.

@spec open(Amqpx.Connection.t()) :: {:ok, t()} | {:error, any()}

Opens a new Channel in a previously opened Connection.

Link to this function

open(conn, consumer_pid)

@spec open(Amqpx.Connection.t(), pid()) :: {:ok, t()} | {:error, any()}