Public Member Functions | Public Attributes
tornado.gen.Callback Class Reference
Inheritance diagram for tornado.gen.Callback:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def get_result
def is_ready
def start

Public Attributes

 key
 runner

Detailed Description

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`.

.. deprecated:: 4.0
   Use `Futures <.Future>` instead.

Definition at line 259 of file gen.py.


Constructor & Destructor Documentation

def tornado.gen.Callback.__init__ (   self,
  key 
)

Definition at line 274 of file gen.py.


Member Function Documentation

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.

Definition at line 284 of file gen.py.

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.

Definition at line 281 of file gen.py.

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.

Definition at line 277 of file gen.py.


Member Data Documentation

Definition at line 274 of file gen.py.

Definition at line 277 of file gen.py.


The documentation for this class was generated from the following file:


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Aug 27 2015 14:50:40