Public Member Functions | Public Attributes
tornado.stack_context.StackContext Class Reference

List of all members.

Public Member Functions

def __enter__
def __exit__
def __init__

Public Attributes

 active_cell
 context
 context_factory
 old_contexts

Detailed Description

Establishes the given context as a StackContext that will be transferred.

Note that the parameter is a callable that returns a context
manager, not the context itself.  That is, where for a
non-transferable context manager you would say::

  with my_context():

StackContext takes the function itself rather than its result::

  with StackContext(my_context):

The result of ``with StackContext() as cb:`` is a deactivation
callback.  Run this callback when the StackContext is no longer
needed to ensure that it is not propagated any further (note that
deactivating a context does not affect any instances of that
context that are currently pending).  This is an advanced feature
and not necessary in most applications.

Definition at line 87 of file stack_context.py.


Constructor & Destructor Documentation

def tornado.stack_context.StackContext.__init__ (   self,
  context_factory,
  _active_cell = None 
)

Definition at line 107 of file stack_context.py.


Member Function Documentation

Definition at line 114 of file stack_context.py.

def tornado.stack_context.StackContext.__exit__ (   self,
  type,
  value,
  traceback 
)

Definition at line 127 of file stack_context.py.


Member Data Documentation

Definition at line 107 of file stack_context.py.

Definition at line 114 of file stack_context.py.

Definition at line 107 of file stack_context.py.

Definition at line 114 of file stack_context.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