File tree 2 files changed +4
-2
lines changed
google/cloud/pubsub_v1/subscriber
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,8 @@ def callback(message):
223
223
inundated with too many messages at once.
224
224
scheduler (~google.cloud.pubsub_v1.subscriber.scheduler.Scheduler): An optional
225
225
*scheduler* to use when executing the callback. This controls
226
- how callbacks are executed concurrently.
226
+ how callbacks are executed concurrently. This object must not be shared
227
+ across multiple SubscriberClients.
227
228
228
229
Returns:
229
230
A :class:`~google.cloud.pubsub_v1.subscriber.futures.StreamingPullFuture`
Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ def _make_default_thread_pool_executor():
74
74
75
75
76
76
class ThreadScheduler (Scheduler ):
77
- """A thread pool-based scheduler.
77
+ """A thread pool-based scheduler. It must not be shared across
78
+ SubscriberClients.
78
79
79
80
This scheduler is useful in typical I/O-bound message processing.
80
81
You can’t perform that action at this time.
0 commit comments