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
I've noticed when I KeyboardInterrupt I can't get the client to gracefully exit when using this setup:
await client.open()
# subscribe to topics
await client.subscribe("/topic/my-topic")
# listen for incoming messages
async for message in client:
# code to execute on receiving message
...
Is there anyway to cancel the client but allow it to continue processing the messages it has pref-etched?
The text was updated successfully, but these errors were encountered:
Is there a reason you can't resume where you left off next time using replay storage? There could be a bunch of messages queued up, and an arbitrary amount of time to process each one that depends on your program execution. Adding all that time up means you are delaying a system call to shut down for an undetermined amount of time.
I've noticed when I
KeyboardInterrupt
I can't get the client to gracefully exit when using this setup:Is there anyway to cancel the client but allow it to continue processing the messages it has pref-etched?
The text was updated successfully, but these errors were encountered: