ProtectedconsumerReadonlydefOptional InternalonThe underlying channel. Reflects the most recent channel after a reconnect.
The consumer tag. Reflects the most recent tag after a reconnect.
Cancel the subscription and remove it from session auto-recovery. Safe to call on a closed channel.
InternalSwap in a new underlying consumer after reconnect.
A persistent queue subscription that yields messages via an async iterator. Returned by AMQPSession.subscribe when no callback is provided.
Bridges across reconnections — the iterator continues yielding after each reconnect without the caller needing to re-subscribe.
Example