bytecodealliance / componentize-py

Apache License 2.0
147 stars 16 forks source link

run all ready tasks prior to calling `poll` in poll_loop.py #84

Closed dicej closed 5 months ago

dicej commented 5 months ago

This ensures we make as much progress as possible and accumulate as many pollables as possible prior to calling poll. Previously, we were accidentally limiting concurrency (and potentially getting stuck in cases where there were interdepdencencies between tasks) by only running one task per loop.