Message.ack() doesn't work as expected #1648
Labels
api: pubsub
Issues related to the googleapis/nodejs-pubsub API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Problem:
When
Message.ack
was called and immediately followed by clean up subscription, theack
message actually won't be sent out.Possible Reason:
The reason is: the
Message.ack
method calls an async methodSubscriber.ack
without handling the Promise or returning it. This makesMessage.ack
quit before theack
message being sent out. Does this make sense?The text was updated successfully, but these errors were encountered: