Closed vortex314 closed 1 year ago
You can do this by just selecting the futures themselves - for example, https://docs.rs/futures/latest/futures/macro.select.html. Let me know if you have any further queries!
Thanks for the help ! Works as expected now.
Maybe a dumb question as I just started in Rust. I notice that the selector .wait () isn't a future or async in itself. Is it possible to do an async selection on different channels ? A sample code below on which I wanted to create a async selection. Do I need to use an executor ?