Skip to content

Commit

Permalink
Replaced mentions to run_sync_in_process with to_process.run_sync
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Nov 23, 2024
1 parent 6224525 commit 3ee86f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/subprocesses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ This is done by using :func:`.to_process.run_sync`::
result = await to_process.run_sync(cpu_intensive_function, 'Hello, ', 'world!')
print(result)

# This check is important when the application uses run_sync_in_process()
# This check is important when the application uses to_process.run_sync()
if __name__ == '__main__':
run(main)

Expand Down
2 changes: 1 addition & 1 deletion src/anyio/_core/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BrokenResourceError(Exception):

class BrokenWorkerProcess(Exception):
"""
Raised by :func:`run_sync_in_process` if the worker process terminates abruptly or
Raised by :meth:`~anyio.to_process.run_sync` if the worker process terminates abruptly or
otherwise misbehaves.
"""

Expand Down

0 comments on commit 3ee86f2

Please sign in to comment.