New post: Rust Streamshttps://blog.yoshuawuyts.com/rust-streams/
-
-
Replying to @yoshuawuyts
i want to quote this: "the stream pipeline will only yield data if it's requested for. This is commonly referred to as "lazy iteration", or "streams with backpressure, Currently there's no dedicated syntax to loop through streams" are there is any RFC for `for..await` syntax ?
1 reply 0 retweets 0 likes -
Replying to @ShekoHex
Hah, yeah no there isn't an RFC for that yet! The lang team is busy getting async/await over the finish line first. From conversations I've had with folks it seems like `for await` might be a while as it relies on several other features landing first (e.g. const generics).
2 replies 0 retweets 2 likes -
Replying to @yoshuawuyts @ShekoHex
Excellent article! You made a little mistake, it is not `while let _ in _` but `while let _ = _` :)
1 reply 0 retweets 1 like
Ah great catch. Fixing it straight away. Thanks!!
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.