From 3ee86f2be0bc6af8b7c9df4dfff9a97da1b66472 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Sat, 23 Nov 2024 10:08:23 +0100 Subject: [PATCH] Replaced mentions to run_sync_in_process with to_process.run_sync --- docs/subprocesses.rst | 2 +- src/anyio/_core/_exceptions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/subprocesses.rst b/docs/subprocesses.rst index e0f510e5..e228fd4f 100644 --- a/docs/subprocesses.rst +++ b/docs/subprocesses.rst @@ -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) diff --git a/src/anyio/_core/_exceptions.py b/src/anyio/_core/_exceptions.py index 6e3f8ccc..97ea3130 100644 --- a/src/anyio/_core/_exceptions.py +++ b/src/anyio/_core/_exceptions.py @@ -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. """