]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
docs: Add notice about WindowsSelectorEventLoop on py38
authorBen Darnell <ben@bendarnell.com>
Sat, 22 Jun 2019 18:39:38 +0000 (14:39 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 22 Jun 2019 22:19:07 +0000 (18:19 -0400)
Fixes #2608

docs/index.rst

index ac5ac61966a89ea4b728cceadd2a32aad7ad0e73..0239606ffdeb016e304d6446f9c38b1ac5be4c6f 100644 (file)
@@ -120,6 +120,13 @@ development use. Without reworking Tornado IOLoop interface, it's not
 possible to add a native Tornado Windows IOLoop implementation or
 leverage Windows' IOCP support from frameworks like AsyncIO or Twisted.
 
+On Windows, Tornado requires the ``WindowsSelectorEventLoop``. This is
+the default in Python 3.7 and older, but Python 3.8 defaults to an
+event loop that is not compatible with Tornado. Applications that use
+Tornado on Windows with Python 3.8 must call
+``asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())``
+at the beginning of their ``main`` file/function.
+
 Documentation
 -------------