Files
micropython/tests/ports/webassembly/asyncio_top_level_await.mjs.exp
Damien George e9c898cb33 webassembly/asyncio: Support top-level await of asyncio Task and Event.
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>
2024-06-18 22:23:16 +10:00

8 lines
99 B
Plaintext

top-level wait event
task set event
task sleep
top-level wait task
task end
top-level end
finished