summaryrefslogtreecommitdiff
path: root/docs/esp32/tutorial/intro.rst
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-07-11 15:23:20 +1000
committerDamien George <damien@micropython.org>2023-10-02 14:11:52 +1100
commit977dc9a369af2d51455c87c1978a5b4598702d35 (patch)
tree29545063ba66234557bd0460ea34da55a16136eb /docs/esp32/tutorial/intro.rst
parenta93ebd0e0368a44f92322d0dbf45bab49165a891 (diff)
extmod/asyncio/stream.py: Fix cancellation handling of start_server.
The following code: server = await asyncio.start_server(...) async with server: ... code that raises ... would lose the original exception because the server's task would not have had a chance to be scheduled yet, and so awaiting the task in wait_closed would raise the cancellation instead of the original exception. Additionally, ensures that explicitly cancelling the parent task delivers the cancellation correctly (previously was masked by the server loop), now this only happens if the server was closed, not when the task was cancelled. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'docs/esp32/tutorial/intro.rst')
0 files changed, 0 insertions, 0 deletions