]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix run_in_executor call in user guide
authorMichael V. DePalatis <mike@depalatis.net>
Sat, 15 Sep 2018 16:03:04 +0000 (10:03 -0600)
committerBen Darnell <ben@bendarnell.com>
Sun, 16 Sep 2018 17:49:09 +0000 (13:49 -0400)
Addresses #2493.

docs/guide/coroutines.rst

index eb500da12512ea1448d91eeffcf50af8f62d713f..29f614ccebf6c79d11c8b2319dbc1c6f611b4456 100644 (file)
@@ -177,7 +177,7 @@ use `.IOLoop.run_in_executor`, which returns
 ``Futures`` that are compatible with coroutines::
 
     async def call_blocking():
-        await IOLoop.current().run_in_executor(blocking_func, args)
+        await IOLoop.current().run_in_executor(None, blocking_func, args)
 
 Parallelism
 ^^^^^^^^^^^