io_loop = ioloop.IOLoop.current()
# Wait up to 1 second for a notification.
- yield condition.wait(deadline=io_loop.time() + 1)
+ yield condition.wait(timeout=io_loop.time() + 1)
- ...or a `datetime.timedelta` for a deadline relative to the current time::
+ ...or a `datetime.timedelta` for a timeout relative to the current time::
# Wait up to 1 second.
- yield condition.wait(deadline=datetime.timedelta(seconds=1))
+ yield condition.wait(timeout=datetime.timedelta(seconds=1))
The method raises `tornado.gen.TimeoutError` if there's no notification
before the deadline.