You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(pubsub): remediate mid-stream errors, teardown races, and settings preservation
- Close StreamController on mid-stream gRPC errors in streamingPullWithStream.
- Set isCancelled synchronously before cancelAll in streamingPull teardown to prevent races.
- Preserve custom settings on Topic.create() and Subscription.create() by returning this.
- Align default maxMessages to 100 on PubSub.pull and update error docstrings.
- Pass totalTimeout: null in doc_examples.dart for unlimited streaming pull reconnection.
- Harmonize BatchingSettings error message to 'Must be greater than zero'.
- Add comprehensive tests for mid-stream error completion and 4-stream concurrency teardown.
TAG=agy
CONV=bc7c6164-e9cb-4a0f-b326-7752c814e1ce
Copy file name to clipboardExpand all lines: pkgs/google_cloud_pubsub/lib/src/subscription.dart
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -271,8 +271,10 @@ final class Subscription {
271
271
/// Returns a [Subscription] instance representing the created subscription.
272
272
///
273
273
/// See the [official documentation](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#google.pubsub.v1.Subscriber.CreateSubscription).
0 commit comments