-
Notifications
You must be signed in to change notification settings - Fork 119
Subscriber configurable shutdown behavior #4868
Copy link
Copy link
Closed
Labels
api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Metadata
Metadata
Assignees
Labels
api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
We want to offer the following shutdown behavior (not necessarily as an option like this).
We also need a way to await these pending operations completing, likely by returning a
StreamHandle. Maybe something like this:or options are configured on the builder, and it is just
StreamHandle::shutdown(self).or as @coryan suggests, by encoding the options as separate functions like: