Skip to content

Commit f448906

Browse files
authored
---
yaml --- r: 8789 b: refs/heads/lesv-patch-1 c: 1dad07a h: refs/heads/master i: 8787: adb9ad6
1 parent 38ab776 commit f448906

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ refs/tags/v0.22.0: 18b298fe4bfe8ec2f20b0e0bf7ffdcce5cc3c5fe
6666
refs/heads/vam-google-patch-1: d0c8fee3a4074d0bf7360ce8c4f7f7223d0ee7b9
6767
refs/heads/vam-google-patch-CODEOWNERS: 2ac1616e25229e51d08a984708ef1918f91a35ee
6868
refs/heads/danoscarmike-patch-1: 7342a9916bce4ed00002c7202e2a16c5d46afaea
69-
refs/heads/lesv-patch-1: 540734e6e9bce69f47854d2aabfbe61f1ac53631
69+
refs/heads/lesv-patch-1: 1dad07a793925662ee0935f43033e61669b9af01
7070
refs/heads/ml-update-branch: 079dd6610017f5c51b9d1938c12d6d55b61513cf
7171
refs/heads/vkedia-patch-2: 7d8241388a9769a5c069334761b06c7012c878e7
7272
refs/heads/vkedia-patch-3: 4d128043acaa7db9160faf439d2ca6104e8a88cb

branches/lesv-patch-1/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriberSnippets.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ public void failed(Subscriber.State from, Throwable failure) {
8282
subscriber.startAsync();
8383

8484
// Wait for a stop signal.
85+
// In a server, this might be a signal to stop serving.
86+
// In this example, the signal is just a dummy Future.
8587
done.get();
88+
8689
subscriber.stopAsync().awaitTerminated();
8790
}
8891

branches/lesv-patch-1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ public FlowControlSettings getFlowControlSettings() {
222222
* subscriber.startAsync();
223223
*
224224
* // Wait for a stop signal.
225+
* // In a server, this might be a signal to stop serving.
226+
* // In this example, the signal is just a dummy Future.
225227
* done.get();
228+
*
226229
* subscriber.stopAsync().awaitTerminated();
227230
* }</pre>
228231
*/

0 commit comments

Comments
 (0)