amqp-node/amqplib

Who calls accept()?

deostroll opened this issue · 3 comments

I am trying to determine if the following function is called multiple times, or, only once, in an eventloop tick.

accept(f) {

I assume this is the function which processes messages and finally ends up calling the callback fn passed to the channel.consume() api.

I believe It is called once per frame received from the RabbitMQ broker. Multiple frames can be received within one tick of the event loop

So there is a possibility for the deliver event to be fired multiple times within an eventloop tick?