2

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 1

3

As I was writing this question I came across tokio::try-join, which does exactly what I needed.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.