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. """