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

List of all members.

Public Member Functions

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

Public Attributes

 deactivate_stack_context
 exc_info
 finished
 gen
 had_exception
 pending_callbacks
 results
 running
 yield_point

Detailed Description

Internal implementation of `tornado.gen.engine`.

Maintains information about pending callbacks and their results.

Definition at line 284 of file gen.py.


Constructor & Destructor Documentation

def tornado.gen.Runner.__init__ (   self,
  gen,
  deactivate_stack_context 
)

Definition at line 289 of file gen.py.


Member Function Documentation

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

Definition at line 385 of file gen.py.

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

Definition at line 306 of file gen.py.

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

Definition at line 317 of file gen.py.

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

Definition at line 300 of file gen.py.

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

Definition at line 374 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 322 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 312 of file gen.py.


Member Data Documentation

Definition at line 289 of file gen.py.

Definition at line 289 of file gen.py.

Definition at line 289 of file gen.py.

Definition at line 289 of file gen.py.

Definition at line 289 of file gen.py.

Definition at line 289 of file gen.py.

Definition at line 289 of file gen.py.

Definition at line 289 of file gen.py.

Definition at line 289 of file gen.py.


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


roswww
Author(s): Jonathan Mace
autogenerated on Thu Jan 2 2014 11:53:30