nodejs-pubsub icon indicating copy to clipboard operation
nodejs-pubsub copied to clipboard

Message.ack() doesn't work as expected

Open lushu opened this issue 2 years ago • 3 comments

Problem: When Message.ack was called and immediately followed by clean up subscription, the ack message actually won't be sent out.

Possible Reason: The reason is: the Message.ack method calls an async method Subscriber.ack without handling the Promise or returning it. This makes Message.ack quit before the ack message being sent out. Does this make sense?

lushu avatar Oct 25 '22 23:10 lushu