Document the attributes required by @run_on_executor.

Closes #933.
This commit is contained in:
Ben Darnell 2013-12-01 15:04:02 -05:00
parent 237018db35
commit cb653c5ef9
1 changed files with 3 additions and 0 deletions

View File

@ -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):