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
Copy file name to clipboardExpand all lines: pubsub/doc.go
+24-20Lines changed: 24 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -74,19 +74,19 @@ The callback is invoked concurrently by multiple goroutines, maximizing
74
74
throughput. To terminate a call to Receive, cancel its context.
75
75
76
76
Once client code has processed the message, it must call Message.Ack or
77
-
Message.Nack, otherwise the message will eventually be redelivered. Ack/Nack
77
+
Message.Nack; otherwise the message will eventually be redelivered. Ack/Nack
78
78
MUST be called within the Receive handler function, and not from a goroutine.
79
79
Otherwise, flow control (e.g. ReceiveSettings.MaxOutstandingMessages) will
80
80
not be respected, and messages can get orphaned when cancelling Receive.
81
81
82
82
If the client cannot or doesn't want to process the message, it can call Message.Nack
83
83
to speed redelivery. For more information and configuration options, see
84
-
"Deadlines" below.
84
+
"Ack Deadlines" below.
85
85
86
-
Note: It is possible for Messages to be redelivered, even if Message.Ack has
86
+
Note: It is possible for Messages to be redelivered even if Message.Ack has
87
87
been called. Client code must be robust to multiple deliveries of messages.
88
88
89
-
Note: This uses pubsub's streaming pull feature. This feature properties that
89
+
Note: This uses pubsub's streaming pull feature. This feature has properties that
90
90
may be surprising. Please take a look at https://cloud.google.com/pubsub/docs/pull#streamingpull
91
91
for more details on how streaming pull behaves compared to the synchronous
92
92
pull method.
@@ -106,40 +106,44 @@ If you want to have more open streams (such as for low CPU core machines), you s
0 commit comments