smol-rs / futures-lite

Futures, streams, and async I/O combinators.
Apache License 2.0
439 stars 25 forks source link

Support BlockOn for implementors of AsyncBufRead #43

Closed Byron closed 3 years ago

Byron commented 3 years ago

Even though I am a bit suspicious that there might be a reason this wasn't implemented before, here I go with a first draft on adding support for AsyncBufRead -> std::io::BufRead in BlockOn.

Please let me know in case its absence is intended or what else I could do to make this PR ready for merge. Thanks a lot.

Related to https://github.com/Byron/gitoxide/issues/77