]> git.ipfire.org Git - thirdparty/tornado.git/commit
PeriodicCallback: support async/coroutine callback (#2924)
authorPierce Lopez <pierce.lopez@gmail.com>
Sun, 30 May 2021 15:33:14 +0000 (11:33 -0400)
committerGitHub <noreply@github.com>
Sun, 30 May 2021 15:33:14 +0000 (11:33 -0400)
commita9fbbeeec9abfe9ff54365160ce476ba853ba203
treeb479c1f31387156cfb333900a734dd2e2647146e
parentda4130b341e4732213c42ee7fab92f9264e51686
PeriodicCallback: support async/coroutine callback (#2924)

ISSUE: https://github.com/tornadoweb/tornado/issues/2828

* ioloop: call_later() and call_at() take any Callable coroutine or plain, returning any type

Co-authored-by: agnewee <agnewee@gmail.com>
tornado/ioloop.py
tornado/platform/asyncio.py
tornado/test/ioloop_test.py