Merge pull request #2494 from mivade/user-guide-fix
Fix run_in_executor call in user guide
This commit is contained in:
commit
9adaea7490
|
@ -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
|
||||||
^^^^^^^^^^^
|
^^^^^^^^^^^
|
||||||
|
|
Loading…
Reference in New Issue