Here is the futures+tokio approach I was talking about: 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.
Indeed it's a bit shorter than the original, and hopefully clearer without the line noise of locking and manually chunking work.
(I don’t work on that stuff personally, to be clear.)