2013-03-16 22:52:07 +00:00
|
|
|
``tornado.util`` --- General-purpose utilities
|
|
|
|
==============================================
|
|
|
|
|
2015-02-08 21:09:00 +00:00
|
|
|
.. testsetup::
|
|
|
|
|
|
|
|
from tornado.util import *
|
|
|
|
|
2013-03-16 22:52:07 +00:00
|
|
|
.. automodule:: tornado.util
|
|
|
|
:members:
|
2021-10-19 11:25:46 +00:00
|
|
|
|
|
|
|
.. 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`
|