Classes | |
class | _StackContextWrapper |
class | _State |
class | ExceptionStackContext |
class | NullContext |
class | StackContext |
Functions | |
def | _nested |
def | wrap |
Variables | |
tuple | _state = _State() |
def tornado.stack_context._nested | ( | managers | ) | [private] |
Support multiple context managers in a single with-statement. Copied from the python 2.6 standard library. It's no longer present in python 3 because the with statement natively supports multiple context managers, but that doesn't help if the list of context managers is not known until runtime.
Definition at line 239 of file stack_context.py.
def tornado.stack_context.wrap | ( | fn | ) |
Returns a callable object that will restore the current StackContext when executed. Use this whenever saving a callback to be executed later in a different execution context (either in a different thread or asynchronously in the same thread).
Definition at line 185 of file stack_context.py.
tuple tornado::stack_context::_state = _State() |
Definition at line 84 of file stack_context.py.