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>
7 lines
76 B
Plaintext
7 lines
76 B
Plaintext
1
|
|
2 Promise { <pending> }
|
|
py 1
|
|
setTimeout resolved
|
|
resolved value: 123
|
|
py 2
|