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

List of all members.

Public Member Functions

def __init__
def get_result
def is_ready
def start

Public Attributes

 children
 keys
 unfinished_children

Detailed Description

Runs multiple asynchronous operations in parallel.

Takes a list of ``YieldPoints`` or ``Futures`` and returns a list of
their responses.  It is not necessary to call `Multi` explicitly,
since the engine will do so automatically when the generator yields
a list of ``YieldPoints`` or a mixture of ``YieldPoints`` and ``Futures``.

Instead of a list, the argument may also be a dictionary whose values are
Futures, in which case a parallel dictionary is returned mapping the same
keys to their results.

Definition at line 386 of file gen.py.


Constructor & Destructor Documentation

def tornado.gen.Multi.__init__ (   self,
  children 
)

Definition at line 398 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 421 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 415 of file gen.py.

def tornado.gen.Multi.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 411 of file gen.py.


Member Data Documentation

Definition at line 398 of file gen.py.

Definition at line 398 of file gen.py.

Definition at line 398 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