smol-rs / futures-lite

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

support fuse in FutureExt #100

Closed GlenDC closed 2 months ago

GlenDC commented 2 months ago

Recently I switched from futures and futures-util to futures-lite. For the most case this was okay.

The only thing I did miss was the fuse functionality.

I implemented it here https://github.com/plabayo/rama/blob/main/src/future.rs. Could I implement it in the actual futures-lite codebase. Or what do you suggest?

GlenDC commented 2 months ago

If accepted I am willing to make a PR FWIW.

GlenDC commented 2 months ago

@notgull is there any interest for this?

notgull commented 2 months ago

Sorry, this fell through the cracks. Yes, I think this could be added, since it can't be trivially emulated with async blocks.