How to recreate futures::stream::buffered in non-async Rust

Another unrelated topic here on URLO gave me an idea how to make it work without the + 'static requirement, scoped threads. They don't require + 'static and the helper function is simplified along the way:

1 Like