smol-rs / futures-lite

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

Recreating concurrent futures combinators in smol #84

Open v1gnesh opened 11 months ago

v1gnesh commented 11 months ago

When trying to run the example as shown in the blog, it just hangs after it awaits the first Task. Any idea what may be going on?

image

notgull commented 11 months ago

You need to run the Executor.

v1gnesh commented 11 months ago

Ah yes, I figured this after looking through other issues / users.rust-lang. Thank you! I must be doing something un-optimally, as with smol, my program is noticably slower.