Update Tornado
This commit is contained in:
@@ -124,11 +124,11 @@ class TracebackFuture(Future):
|
||||
self.__exc_info = exc_info
|
||||
self.set_exception(exc_info[1])
|
||||
|
||||
def result(self):
|
||||
def result(self, timeout=None):
|
||||
if self.__exc_info is not None:
|
||||
raise_exc_info(self.__exc_info)
|
||||
else:
|
||||
return super(TracebackFuture, self).result()
|
||||
return super(TracebackFuture, self).result(timeout=timeout)
|
||||
|
||||
|
||||
class DummyExecutor(object):
|
||||
@@ -151,6 +151,9 @@ def run_on_executor(fn):
|
||||
|
||||
The decorated method may be called with a ``callback`` keyword
|
||||
argument and returns a future.
|
||||
|
||||
This decorator should be used only on methods of objects with attributes
|
||||
``executor`` and ``io_loop``.
|
||||
"""
|
||||
@functools.wraps(fn)
|
||||
def wrapper(self, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user