mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
This change allows doing a top-level await on an asyncio primitive like Task and Event. This feature enables a better interaction and synchronisation between JavaScript and Python, because `api.runPythonAsync` can now be used (called from JavaScript) to await on the completion of asyncio primitives. Signed-off-by: Damien George <damien@micropython.org>
8 lines
99 B
Plaintext
8 lines
99 B
Plaintext
top-level wait event
|
|
task set event
|
|
task sleep
|
|
top-level wait task
|
|
task end
|
|
top-level end
|
|
finished
|