Public Member Functions | |
def | __init__ |
def | get_result |
def | is_ready |
def | start |
Public Attributes | |
key | |
runner |
Returns a callable object that will allow a matching `Wait` to proceed. The key may be any value suitable for use as a dictionary key, and is used to match ``Callbacks`` to their corresponding ``Waits``. The key must be unique among outstanding callbacks within a single run of the generator function, but may be reused across different runs of the same function (so constants generally work fine). The callback may be called with zero or one arguments; if an argument is given it will be returned by `Wait`.
def tornado.gen.Callback.__init__ | ( | self, | |
key | |||
) |
def tornado.gen.Callback.get_result | ( | self | ) |
Returns the value to use as the result of the yield expression. This method will only be called once, and only after `is_ready` has returned true.
Reimplemented from tornado.gen.YieldPoint.
def tornado.gen.Callback.is_ready | ( | self | ) |
Called by the runner to determine whether to resume the generator. Returns a boolean; may be called more than once.
Reimplemented from tornado.gen.YieldPoint.
def tornado.gen.Callback.start | ( | self, | |
runner | |||
) |
Called by the runner after the generator has yielded. No other methods will be called on this object before ``start``.
Reimplemented from tornado.gen.YieldPoint.