309dfe39e0
This is added because task.coro==None is no longer the way to detect if a task is finished. Providing a (CPython compatible) function for this allows the implementation to be abstracted away. Signed-off-by: Damien George <damien@micropython.org>
25 lines
200 B
Plaintext
25 lines
200 B
Plaintext
==========
|
|
False
|
|
task start
|
|
task done
|
|
True
|
|
True
|
|
==========
|
|
False
|
|
task start
|
|
False
|
|
task done
|
|
True
|
|
==========
|
|
False
|
|
task start
|
|
True
|
|
ValueError()
|
|
True
|
|
==========
|
|
False
|
|
task start
|
|
False
|
|
ValueError()
|
|
True
|