3 ms·
Here is the futures+tokio approach I was talking about: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=130314feccf3d541bf263bd5b343c403
by Arnavion 8y ago
Here is the futures+tokio approach I was talking about: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=130314feccf3d541bf263bd5b343c403 https://play.rust-lang.org/?version=stable&mode=debug&editio...
Indeed it's a bit shorter than the original, and hopefully clearer without the line noise of locking and manually chunking work.
- steveklabnik 8y agoIt’ll also get even clearer with async await!
- Svenstaro 8y agoWell, get back working on that, then! JK, you're doing great work, keep it up.
- steveklabnik 8y ago:p (I don’t work on that stuff personally, to be clear.)