summaryrefslogtreecommitdiff
path: root/docs/esp8266/tutorial
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-06-19 15:04:12 +1000
committerDamien George <damien@micropython.org>2024-06-20 00:11:54 +1000
commit13195a678d0155a52818beaa5ffc4f4678a4226d (patch)
treef06a9984f39d7701ff621cdc6c32516ca07c6a2a /docs/esp8266/tutorial
parent8ac9c8f392000febb6ca58c470b653589dd7c710 (diff)
webassembly/asyncio: Schedule run loop when tasks are pushed to queue.
In the webassembly port there is no asyncio run loop running at the top level. Instead the Python asyncio run loop is scheduled through setTimeout and run by the outer JavaScript event loop. Because tasks can become runable from an external (to Python) event (eg a JavaScript callback), the run loop must be scheduled whenever a task is pushed to the asyncio task queue, otherwise tasks may be waiting forever on the queue. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp8266/tutorial')
0 files changed, 0 insertions, 0 deletions