]> git.ipfire.org Git - thirdparty/tornado.git/commit
Introduce IOLoop.call_later and call_at.
authorBen Darnell <ben@bendarnell.com>
Wed, 18 Jun 2014 14:29:28 +0000 (10:29 -0400)
committerBen Darnell <ben@bendarnell.com>
Wed, 18 Jun 2014 14:29:28 +0000 (10:29 -0400)
commit2cec3195f2b9df1b3c745355739bc61952849f5d
tree214430d33ba6a88fb42894d0661e03ad22ed103e
parent8953e9beb1e376d9d907c77e61e0e628245de35d
Introduce IOLoop.call_later and call_at.

call_later is a less-verbose alternative to add_timeout with a
timedelta; call_at exists for symmetry.  Both are named after
methods on the asyncio event loop, although there are small
variations (we support both args and kwargs while asyncio only supports
args; we use remove_timeout(handle) instead of handle.cancel()).

Closes #1049.
docs/ioloop.rst
tornado/ioloop.py
tornado/platform/asyncio.py
tornado/platform/twisted.py
tornado/test/ioloop_test.py
tornado/util.py