I’m aware that recv_timeout is waiting for this RFC: https://github.com/rust-lang/rfcs/issues/962. What do people use today while we wait for it?
For now I’ve just resorted to using a
try_recv loop with short
thread::sleeps in it. Not ideal, for sure, but it got the job done for now. I’m certainly interested as well if someone has a better alternative.