Skip to content

Commit

Permalink
Fixed obsolete reference: run_sync_in_worker_thread -> run_sync (#436)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Grönholm <[email protected]>
  • Loading branch information
maartenbreddels and agronholm authored May 11, 2022
1 parent 4b31655 commit 0d20fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/threads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ If you need to call a coroutine function from a worker thread, you can do this::

run(main)

.. note:: The worker thread must have been spawned using :func:`~run_sync_in_worker_thread`
for this to work.
.. note:: The worker thread must have been spawned using :func:`~to_thread.run_sync` for this to
work.

Calling synchronous code from a worker thread
---------------------------------------------
Expand Down

0 comments on commit 0d20fb3

Please sign in to comment.