-
I'm bringing async & sync code in one of my projects. Async code acts as producer and sync code acts as consumer. The consumer code is run in spawned OS thread and received work via Is it safe to call I get it's not declared as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes. The |
Beta Was this translation helpful? Give feedback.
Yes. The
try_recv()
method is notasync
and does not take atask::Context
parameter, so it may be called outside of an async context and will work correctly.