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

Definition at line 153 of file gen.py.


Constructor & Destructor Documentation

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

Definition at line 165 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 175 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 172 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 168 of file gen.py.


Member Data Documentation

Definition at line 165 of file gen.py.

Definition at line 168 of file gen.py.


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


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Mon Oct 6 2014 06:58:14