[issue37088] Add a way to schedule a function to be called from the main thread
Yury Selivanov
report at bugs.python.org
Wed May 29 12:46:29 EDT 2019
New submission from Yury Selivanov <yselivanov at gmail.com>:
When asyncio event loop is created in a non-main thread, it needs to initialize a so called ChildWatcher for it (a helper object to intercept subprocesses exits). Doing that requires to run code in the main thread.
I propose to add a 'sys.addpendingcall' function that will simply expose the already existing Py_AddPendingCall to the pure Python land.
----------
components: Interpreter Core, asyncio
messages: 343897
nosy: asvetlov, vstinner, yselivanov
priority: normal
severity: normal
status: open
title: Add a way to schedule a function to be called from the main thread
versions: Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37088>
_______________________________________
More information about the Python-bugs-list
mailing list