postwait / node-amqp

[UNMAINTAINED] node-amqp is an AMQP client for nodejs
MIT License
1.69k stars 357 forks source link

Promises or callbacks #291

Open jgato opened 10 years ago

jgato commented 10 years ago

I am wondering why some times we have callbacks and others we have promises. Why we dont use the same asynchronous mechanisms?

By the way, queue.subscribe contains a promise (not documented). It is mentioned but in the unsubscribe method. This cover my need of the 'basicQosOk' to detect the subscription has been done.