Does anyone have an example of a piece of code where a Future that returns a Future? Can be JS too: a Promise that returns a Promise. I'm curious when this might be used, rather than just having it be a theoretical example.
-
-
Replying to @yoshuawuyts
Not really a Future per se, but tokio::net::TcpStream::connect() returns a Future which returns a Stream.
1 reply 0 retweets 2 likes
Replying to @gandro23
Ah yeah, that's a good one. Same in Romio https://docs.rs/romio/0.3.0-alpha.1/romio/struct.TcpStream.html#method.connect … I guess if the topic of Streams is included, there might be more examples like these.
7:27 AM - 20 Jan 2019
0 replies
0 retweets
1 like
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.