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
There's nothing wrong with the example code, but I wouldn't expect to see any output because you aren't publishing any messages to the subscription. This just connects to nats and listens for messages, but you never send any. If you add something like:
My code was a simple example, the nats-server was published already by another client. I want to know how to keep my code thread-safe in the message_handler, or how to get data out of the coroutine function. Thanks for your answer.
I put my code after print func, like this:
I tried to use 'while True and break' contain my code, that didn't work at all. BTW, I use pandas to calculate data.
The text was updated successfully, but these errors were encountered: