Why does tokio::sync::oneshot::Receiver not have an async recv() method?

It has try_recv which is sync and immediately returns a Result<T, TryRecvError. What if I want to .await the sender?

Receiver<T> itself is Future so you can .await directly on it.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.