tornado.platform.twisted — Bridges between Twisted and Tornado¶
Bridges between the Twisted reactor and Tornado IOLoop.
This module lets you run applications and libraries written for Twisted in a Tornado application. It can be used in two modes, depending on which library’s underlying event loop you want to use.
This module has been tested with Twisted versions 11.0.0 and newer.
Twisted DNS resolver¶
Twisted-based asynchronous resolver.
This is a non-blocking and non-threaded resolver. It is recommended only when threads cannot be used, since it has limitations compared to the standard
DefaultExecutorResolver. Specifically, it returns at most one result, and arguments other than
familyare ignored. It may fail to resolve when
Requires Twisted 12.1 or newer.
Changed in version 5.0: The
io_loopargument (deprecated since version 4.1) has been removed.