pubsub: publish error that requires ResumePublish should wrap and return a specific exported error #7925
Labels
api: pubsub
Issues related to the Pub/Sub API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
When publishing with an ordering key you may end up in a situation where you're required to
ResumePublish
because the scheduler was paused. This would be much easier to detect and handle if instead of:we had something like:
Describe the solution you'd like
In the example above I believe there's a good enough, fully backwards compatible and idiomatic solution. Similar implementations could be proposed that don't rely on
errors.New
if needed.The text was updated successfully, but these errors were encountered: