We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ade7dd commit 767eaa3Copy full SHA for 767eaa3
pubsub/cloud-client/subscriber.py
@@ -198,6 +198,7 @@ def callback(message):
198
def receive_messages_with_custom_attributes(project_id, subscription_name):
199
"""Receives messages from a pull subscription."""
200
# [START pubsub_subscriber_sync_pull_custom_attributes]
201
+ # [START pubsub_subscriber_async_pull_custom_attributes]
202
import time
203
204
from google.cloud import pubsub_v1
@@ -225,6 +226,7 @@ def callback(message):
225
226
print('Listening for messages on {}'.format(subscription_path))
227
while True:
228
time.sleep(60)
229
+ # [END pubsub_subscriber_async_pull_custom_attributes]
230
# [END pubsub_subscriber_sync_pull_custom_attributes]
231
232
0 commit comments