]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Remove text about callback (removed) in run_on_executor 2889/head
authorBruno P. Kinoshita <kinow@users.noreply.github.com>
Mon, 13 Jul 2020 21:34:57 +0000 (09:34 +1200)
committerBruno P. Kinoshita <kinow@users.noreply.github.com>
Mon, 13 Jul 2020 21:34:57 +0000 (09:34 +1200)
tornado/concurrent.py

index 3a49940dfab5cb6423741b978b9093f42a2fb547..7638fcfc988b65b287c016a66995ad6bb2b0f9e2 100644 (file)
@@ -74,8 +74,7 @@ dummy_executor = DummyExecutor()
 def run_on_executor(*args: Any, **kwargs: Any) -> Callable:
     """Decorator to run a synchronous method asynchronously on an executor.
 
-    The decorated method may be called with a ``callback`` keyword
-    argument and returns a future.
+    Returns a future.
 
     The executor to be used is determined by the ``executor``
     attributes of ``self``. To use a different attribute name, pass a