streadway / amqp

Go client for AMQP 0.9.1
http://godoc.org/github.com/streadway/amqp
BSD 2-Clause "Simplified" License
4.88k stars 621 forks source link

Documentation contradiction in regards to flow #529

Open wagslane opened 2 years ago

wagslane commented 2 years ago
// Listeners for active=true flow control.  When true is sent to a listener,
// publishing should pause until false is sent to listeners.
flows []chan bool
NotifyFlow registers a listener for basic.flow methods sent by the server.
When `false` is sent on one of the listener channels, all publishers should
pause until a `true` is sent.

One claims that true means that clients should pause. The other says clients should pause when false is sent. Which is it?