Files
micropython/tests/ports/webassembly/run_python_async_no_await.mjs.exp
Damien George be1ecb54e6 webassembly/api: Resolve thenables returned from runPythonAsync.
JavaScript semantics are such that the caller of an async function does not
need to await that function for it to run to completion.  This commit makes
that behaviour also apply to top-level async Python code run via
`runPythonAsync()`.

Signed-off-by: Damien George <damien@micropython.org>
2024-05-07 11:33:05 +10:00

7 lines
76 B
Plaintext

1
2 Promise { <pending> }
py 1
setTimeout resolved
resolved value: 123
py 2