BewareMyPower commented on issue #385:
URL: 
https://github.com/apache/pulsar-client-node/issues/385#issuecomment-2105643217

   Could you add a simple example to reproduce? It seems that the following 
loop does not work?
   
   ```javascript
     while (true) {
       const msg = await consumer.receive();
       process(msg); // process is the API call you mentioned
       consumer.acknowledge(msg);
     }
   ```
   
   but the following loop work?
   
   ```javascript
     while (true) {
       const msg = await consumer.receive();
       consumer.acknowledge(msg);
       process(msg); // process is the API call you mentioned
     }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to