View definition

(*Connection).NotifyClose

Defined in github.com/streadway/amqp/connection.go

Description

NotifyClose registers a listener for close events either initiated by an error accompaning a connection.close method or by a normal shutdown.

On normal shutdowns, the chan will be closed.

To reconnect after a transport or protocol error, register a listener here and re-run your setup process.