micropython/tests/extmod/uasyncio_fair.py.exp
Damien George 55c76eaac1 extmod/uasyncio: Truncate negative sleeps to 0.
Otherwise a task that continuously awaits on a large negative sleep can
monopolise the scheduler (because its wake time is always less than
everything else in the pairing heap).

Signed-off-by: Damien George <damien@micropython.org>
2020-08-22 12:17:06 +10:00

14 lines
155 B
Plaintext

task start 1
task start 2
task work 2
task start 3
task work 3
task start 4
task work 2
task work 3
task work 2
task work 2
task work 3
task work 2
finish