File: util.rst

package info (click to toggle)
python-tornado 6.2.0-3%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,396 kB
  • sloc: python: 27,837; javascript: 156; sh: 99; ansic: 58; xml: 49; makefile: 48; sql: 23
file content (21 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (3)
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`