New post: Futures Concurrency In this post we explore concurrency models for Futures, look at other languages, and propose a set of 4 APIs to cover 6 different concurrency scenarios.https://blog.yoshuawuyts.com/futures-concurrency/ …
-
Show this thread
-
Replying to @yoshuawuyts
I tried write a very quick dumb(?) implementation of `try_join` and here is what I came up with. Now, I am wondering what would be the way to get around the `Unpin` bounds. Looks like implementing it "manually" would generally repeat the `select` implementation.pic.twitter.com/RWFQwLvcSH
1 reply 1 retweet 4 likes -
Replying to @m0nt3kk1
Ohh, cool! -- This was the next step I was thinking about, so not sure either yet. Thanks for sharing!
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
btw, would making this generic over error types of the futures be a bad idea? It would be possible to combine futures with convertable but different error types. Although here specifying the type explicitly makes this rather unwieldy..pic.twitter.com/J9EueVBl3r
1 reply 0 retweets 0 likes
Yeah it does seem a bit unwieldy
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.