Why does my program get stuck? Unexpected interaction between two tokio runtimes #6267
-
Hi all, Async Rust beginner here. The sample code in my repository contains generated gRPC code for a very simple Greeter service. The macros in Running Some general observations:
I hope anyone can point out to me what's going on here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Tasks on a current_thread runtime only run if you are actively calling |
Beta Was this translation helpful? Give feedback.
Yes, but perhaps there are still tasks on the runtime when you return from
block_on
? Those tasks will stop running until you callblock_on
again.