You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Key portions of the asyncio deprecation changes begun in Python 3.10 have been reversed. As a result, many of the deprecations made in Tornado 6.2 are no longer necessary. (with the additional caveat that Python versions 3.10.0--3.10.8 and 3.11.0 may still raise deprecation warnings under the old rules. 3.10.9 or 3.11.1 are needed to avoid the warnings)
Specifically, I believe we can un-deprecate the make_current/clear_current methods, the IOLoop constructor, and AsyncTestCase. AnyThreadEventLoopPolicy is still deprecated. The bind/start multi-process pattern no longer encounters deprecation errors from asyncio, but we want to keep it deprecated for other reasons (#2801).
It's also no longer necessary to update all docs to use the asyncio.run pattern, although I think we still want to start nudging people in this direction. These interfaces should still be discouraged in the docs even though we're no longer actively planning to disable and remove them. (with the possible exception of AsyncHTTPTestCase - we don't yet have a counterpart based on unittest.IsolatedAsyncioTestCase).
The text was updated successfully, but these errors were encountered:
These changes were made in #3223. The final decision was to undeprecate AsyncTestCase, AsyncHTTPTestCase, and the IOLoop constructor. make_current/clear_current remain deprecated, and so do AnyThreadEventLoopPolicy and bind/start.
Key portions of the
asyncio
deprecation changes begun in Python 3.10 have been reversed. As a result, many of the deprecations made in Tornado 6.2 are no longer necessary. (with the additional caveat that Python versions 3.10.0--3.10.8 and 3.11.0 may still raise deprecation warnings under the old rules. 3.10.9 or 3.11.1 are needed to avoid the warnings)Specifically, I believe we can un-deprecate the
make_current
/clear_current
methods, theIOLoop
constructor, andAsyncTestCase
.AnyThreadEventLoopPolicy
is still deprecated. Thebind
/start
multi-process pattern no longer encounters deprecation errors from asyncio, but we want to keep it deprecated for other reasons (#2801).It's also no longer necessary to update all docs to use the asyncio.run pattern, although I think we still want to start nudging people in this direction. These interfaces should still be discouraged in the docs even though we're no longer actively planning to disable and remove them. (with the possible exception of AsyncHTTPTestCase - we don't yet have a counterpart based on unittest.IsolatedAsyncioTestCase).
The text was updated successfully, but these errors were encountered: