Public Member Functions | |
def | __enter__ |
def | __exit__ |
def | __init__ |
Public Attributes | |
active_cell | |
context | |
context_factory | |
old_contexts |
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.
def tornado.stack_context.StackContext.__init__ | ( | self, | |
context_factory, | |||
_active_cell = None |
|||
) |
Definition at line 107 of file stack_context.py.
def tornado.stack_context.StackContext.__enter__ | ( | self | ) |
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.
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.