The concurrent.futures.ThreadPoolExecutor class provides us:
A high-level interface for synchronously executing callables.
A high-level interface for asynchronously executing callables.
A high-level interface for composing HTTP requests.
The @tornado.concurrent.run_on_executor decorator allows us to:
Run an asynchronous method synchronously on an executor.
Run an asynchronous method on an executor without generating a Future.
Run a synchronous method asynchronously on an executor.
The recommended way to write asynchronous code in Tornado is to use:
Coroutines.
Chained callbacks.
Subroutines.
The tornado.Testing.AsyncHTTPTestCase class represents:
A test case that starts up a Flask HTTP Server.
A test case that starts up a Tornado HTTP ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.