Commit fa666b9
authored
run all ready tasks prior to calling
This ensures we make as much progress as possible and accumulate as many
`pollable`s 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.
Signed-off-by: Joel Dice <joel.dice@fermyon.com>poll in poll_loop.py (#84)1 parent 58c9430 commit fa666b9
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
0 commit comments