nodejs-pubsub
nodejs-pubsub copied to clipboard
Message.ack() doesn't work as expected
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?