File: util.rst

package info (click to toggle)
python-tornado 6.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,176 kB
  • sloc: python: 28,920; javascript: 156; sh: 100; ansic: 72; xml: 49; makefile: 49; sql: 23
file content (21 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
``tornado.util`` --- General-purpose utilities
==============================================

.. testsetup::

   from tornado.util import *

.. automodule:: tornado.util
    :members:

    .. class:: TimeoutError

        Exception raised by `.gen.with_timeout` and `.IOLoop.run_sync`.

        .. versionchanged:: 5.0
           Unified ``tornado.gen.TimeoutError`` and
           ``tornado.ioloop.TimeoutError`` as ``tornado.util.TimeoutError``.
           Both former names remain as aliases.

        .. versionchanged:: 6.2
           ``tornado.util.TimeoutError`` is an alias to :py:class:`asyncio.TimeoutError`