Let's see whether you can answer the following questions correctly:
- Future does which of the following?
- Encapsulates the asynchronous execution of a callable
- Encapsulates the synchronous execution of a callable
- Runs an asynchronous method synchronously on the executor specified as an argument
- The concurrent.futures.ThreadPoolExecutor class provides us with which of the following?
- 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 do which of the following?
- Run an asynchronous method synchronously on an executor
- Run an asynchronous method on an executor without generating Future
- Run a synchronous method asynchronously on an executor
- The recommended way to write asynchronous code in Tornado is to use which of the following?
- Coroutines
- Chained callbacks
- Subroutines
- Which of the following fixtures, defined by the pytest-tornasync pytest plugin, provide an asynchronous HTTP client for tests?
- tornado_client
- http_client
- http_server_client
- If we want to convert the bytes in a JSON response body into a Python dictionary, we can use which of the following functions?
- tornado.escape.json_decode
- tornado.escape.byte_decode
- tornado.escape.response_body_decode