Merge pull request #2494 from mivade/user-guide-fix

Fix run_in_executor call in user guide
This commit is contained in:
Ben Darnell 2018-09-15 16:41:32 -04:00 committed by GitHub
commit 9adaea7490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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