]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128340: add thread safe handle for `loop.call_soon_threadsafe` (#128369)
authorKumar Aditya <kumaraditya@python.org>
Mon, 6 Jan 2025 12:35:11 +0000 (18:05 +0530)
committerGitHub <noreply@github.com>
Mon, 6 Jan 2025 12:35:11 +0000 (18:05 +0530)
commit7e8c571604cd18e65cefd26bfc48082840264549
tree7fddef368e0289da0a6acfeb30b7635005e80689
parent657d7b77e5c69967e9c0000b986fa4872d13958c
gh-128340: add thread safe handle for `loop.call_soon_threadsafe` (#128369)

Adds `_ThreadSafeHandle` to be used for callbacks scheduled with `loop.call_soon_threadsafe`.
Lib/asyncio/base_events.py
Lib/asyncio/events.py
Lib/test/test_asyncio/test_events.py
Misc/NEWS.d/next/Library/2025-01-05-11-46-14.gh-issue-128340.gKI0uU.rst [new file with mode: 0644]