File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.8.11
2
+ - After the first ` Page ` created by ` Datastore.withRetry() ` retries were not
3
+ happening. This is now fixed, ensuring that ` Page.next() ` will always retry
4
+ when ` Datastore ` is wrapped with ` Datastore.withRetry() ` .
5
+ - Calling with ` wait: false ` in ` Subscription.pull(wait: false) ` for ` PubSub `
6
+ have been deprecated.
7
+
1
8
## 0.8.10
2
9
3
10
- Widen the SDK constraint to support Dart 3.0
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ class _PubSubImpl implements PubSub {
97
97
String subscription, bool returnImmediately) {
98
98
var request = pubsub.PullRequest ()
99
99
..maxMessages = 1
100
+ // ignore: deprecated_member_use
100
101
..returnImmediately = returnImmediately;
101
102
return _api.projects.subscriptions.pull (request, subscription);
102
103
}
@@ -428,7 +429,10 @@ class _SubscriptionImpl implements Subscription {
428
429
Future delete () => _api._deleteSubscription (_subscription.name! );
429
430
430
431
@override
431
- Future <PullEvent ?> pull ({bool wait = true }) {
432
+ Future <PullEvent ?> pull ({
433
+ @Deprecated ('returnImmediately has been deprecated from pubsub' )
434
+ bool wait = true ,
435
+ }) {
432
436
return _api._pull (_subscription.name! , ! wait).then ((response) {
433
437
// The documentation says 'Returns an empty list if there are no
434
438
// messages available in the backlog'. However the receivedMessages
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ class _RetryPage<K> implements Page<K> {
135
135
136
136
@override
137
137
Future <Page <K >> next ({int ? pageSize}) async {
138
- return await _retryOptions.retry (
138
+ final nextPage = await _retryOptions.retry (
139
139
() async {
140
140
if (pageSize == null ) {
141
141
return await _delegate.next ();
@@ -145,6 +145,7 @@ class _RetryPage<K> implements Page<K> {
145
145
},
146
146
retryIf: _retryIf,
147
147
);
148
+ return _RetryPage (nextPage, _retryOptions);
148
149
}
149
150
}
150
151
Original file line number Diff line number Diff line change 1
1
name : gcloud
2
- version : 0.8.10
2
+ version : 0.8.11
3
3
description : >-
4
4
High level idiomatic Dart API for Google Cloud Storage, Pub-Sub and Datastore.
5
5
repository : https://github.com/dart-lang/gcloud
You can’t perform that action at this time.
0 commit comments