To support method chaining like so, amqp gem style: channel.queue("", :auto_delete => true).bind(exchange).subscribe do |...| # ... end
It controls whether the current thread will be blocked by B::Queue#subscribe.
To be similar to the recently added B::Session#queue and so on.
…ility Per feedback from Chris
Per feedback from Chris
The improve is both in that Ruby has positional destructuring, e.g. delivery_info, _, content = q.pop but not hash destructuring, like, say, Clojure does. In addition we return nil for content when it should be nil (basic.get-empty) and unify these arguments betwee * Bunny::Queue#pop * Consumer (Bunny::Queue#subscribe, etc) handlers * Returned message handlers The unification moment was the driving factor.