File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
google/cloud/pubsub_v1/subscriber Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,8 @@ def callback(message):
223223 inundated with too many messages at once.
224224 scheduler (~google.cloud.pubsub_v1.subscriber.scheduler.Scheduler): An optional
225225 *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.
227228
228229 Returns:
229230 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():
7474
7575
7676class ThreadScheduler (Scheduler ):
77- """A thread pool-based scheduler.
77+ """A thread pool-based scheduler. It must not be shared across
78+ SubscriberClients.
7879
7980 This scheduler is useful in typical I/O-bound message processing.
8081
You can’t perform that action at this time.
0 commit comments