Public Member Functions | Public Attributes | Private Member Functions
tornado.gen.Runner Class Reference

List of all members.

Public Member Functions

def __init__
def handle_exception
def handle_yield
def is_ready
def pop_result
def register_callback
def result_callback
def run
def set_result

Public Attributes

 finished
 future
 gen
 had_exception
 io_loop
 pending_callbacks
 result_future
 results
 running
 stack_context_deactivate
 yield_point

Private Member Functions

def _deactivate_stack_context

Detailed Description

Internal implementation of `tornado.gen.engine`.

Maintains information about pending callbacks and their results.

The results of the generator are stored in ``result_future`` (a
`.TracebackFuture`)

Definition at line 552 of file gen.py.


Constructor & Destructor Documentation

def tornado.gen.Runner.__init__ (   self,
  gen,
  result_future,
  first_yielded 
)

Definition at line 560 of file gen.py.


Member Function Documentation

Definition at line 729 of file gen.py.

def tornado.gen.Runner.handle_exception (   self,
  typ,
  value,
  tb 
)

Definition at line 720 of file gen.py.

def tornado.gen.Runner.handle_yield (   self,
  yielded 
)

Definition at line 666 of file gen.py.

def tornado.gen.Runner.is_ready (   self,
  key 
)
Returns true if a result is available for ``key``.

Definition at line 590 of file gen.py.

def tornado.gen.Runner.pop_result (   self,
  key 
)
Returns the result for ``key`` and unregisters it.

Definition at line 607 of file gen.py.

def tornado.gen.Runner.register_callback (   self,
  key 
)
Adds ``key`` to the list of callbacks.

Definition at line 580 of file gen.py.

def tornado.gen.Runner.result_callback (   self,
  key 
)

Definition at line 716 of file gen.py.

def tornado.gen.Runner.run (   self)
Starts or resumes the generator, running until it reaches a
yield point that is not ready.

Definition at line 612 of file gen.py.

def tornado.gen.Runner.set_result (   self,
  key,
  result 
)
Sets the result for ``key`` and attempts to resume the generator.

Definition at line 596 of file gen.py.


Member Data Documentation

Definition at line 560 of file gen.py.

Definition at line 560 of file gen.py.

Definition at line 560 of file gen.py.

Definition at line 560 of file gen.py.

Definition at line 560 of file gen.py.

Definition at line 560 of file gen.py.

Definition at line 560 of file gen.py.

Definition at line 560 of file gen.py.

Definition at line 560 of file gen.py.

Definition at line 560 of file gen.py.

Definition at line 560 of file gen.py.


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


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Wed Sep 13 2017 03:18:20