4 ms·
What I would like is a way select() over a set of futures.
by nly 13y ago
What I would like is a way select() over a set of futures.
- sanderjd 13y agoHow would that be different than the `when_any` function the author described?
- MBCook 13y agoI believe the difference is that you wouldn't have to then iterate over all the futures to see which one fired, it would just return one of them. Boilerplate prevention, I think.
- sanderjd 13y agoThanks, somehow I forgot about the author's complaint about the API of `when_all` between the time I read it and the time I wrote my comment.
- deleted 13y ago[deleted]