Skip to content

Commit

Permalink
Expanded the explanation of the run_sync() fix
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Apr 30, 2021
1 parent ffc8c7c commit 7c8b3b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/versionhistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ This library adheres to `Semantic Versioning 2.0 <http:https://semver.org/>`_.

**UNRELEASED**

- Fixed ``to_thread.run_sync()`` raising ``RuntimeError`` when no "root" task could be found for
setting up a cleanup callback
- Fixed ``to_thread.run_sync()`` raising ``RuntimeError`` on asyncio when no "root" task could be
found for setting up a cleanup callback. This was a problem at least on Tornado and possibly also
Twisted in asyncio compatibility mode. The life of worker threads is now bound to the the host
task of the topmost cancel scope hierarchy starting from the current one, or if no cancel scope
is active, the current task.

**3.0.0**

Expand Down

0 comments on commit 7c8b3b1

Please sign in to comment.