I am using tokio::join. Sometimes one of the futures completes with Err but the other future doesn't complete. I want the combined future to complete as soon as the first future fails, similar to JavaScript's Promise.all.
1 Answer
As I was writing this question I came across tokio::try-join, which does exactly what I needed.