Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-32309: Add support for contextvars in asyncio.to_thread() (GH-20278) | Kyle Stanley | 2020-05-21 | 1 | -0/+14 |
| | | | | | Allows contextvars from the main thread to be accessed in the separate thread used in `asyncio.to_thread()`. See the [discussion](https://github.com/python/cpython/pull/20143#discussion_r427808225) in GH-20143 for context. Automerge-Triggered-By: @aeros | ||||
* | bpo-32309: Implement asyncio.to_thread() (GH-20143) | Kyle Stanley | 2020-05-19 | 1 | -0/+79 |
Implements `asyncio.to_thread`, a coroutine for asynchronously running IO-bound functions in a separate thread without blocking the event loop. See the discussion starting from [here](https://github.com/python/cpython/pull/18410#issuecomment-628930973) in GH-18410 for context. Automerge-Triggered-By: @aeros |