diff --git a/docs/source/history.rst b/docs/source/history.rst index 00e48139c7..a91f7bcbcd 100644 --- a/docs/source/history.rst +++ b/docs/source/history.rst @@ -440,7 +440,7 @@ Highlights :ref:`async-file-io` (`gh-20 `__) -* The new nursery :meth:`~The nursery interface.start` method makes it +* The new nursery :meth:`~Nursery.start` method makes it easy to perform controlled start-up of long-running tasks. For example, given an appropriate ``http_server_on_random_open_port`` function, you could write:: diff --git a/docs/source/reference-core.rst b/docs/source/reference-core.rst index 95a24781ab..d2ec471fef 100644 --- a/docs/source/reference-core.rst +++ b/docs/source/reference-core.rst @@ -928,7 +928,7 @@ Nursery objects provide the following interface: .. attribute:: TASK_STATUS_IGNORED - See :meth:`~The nursery interface.start`. + See :meth:`~Nursery.start`. Working with :exc:`MultiError`\s diff --git a/trio/__init__.py b/trio/__init__.py index df39b568b3..4a60467915 100644 --- a/trio/__init__.py +++ b/trio/__init__.py @@ -19,7 +19,8 @@ TrioInternalError, RunFinishedError, WouldBlock, Cancelled, BusyResourceError, ClosedResourceError, MultiError, run, open_nursery, CancelScope, open_cancel_scope, current_effective_deadline, - TASK_STATUS_IGNORED, current_time, BrokenResourceError, EndOfChannel + TASK_STATUS_IGNORED, current_time, BrokenResourceError, EndOfChannel, + Nursery ) from ._timeouts import ( diff --git a/trio/_core/_run.py b/trio/_core/_run.py index 8b654a90b3..4071e29d96 100644 --- a/trio/_core/_run.py +++ b/trio/_core/_run.py @@ -46,7 +46,7 @@ __all__ = [ "Task", "run", "open_nursery", "open_cancel_scope", "CancelScope", "checkpoint", "current_task", "current_effective_deadline", - "checkpoint_if_cancelled", "TASK_STATUS_IGNORED" + "checkpoint_if_cancelled", "TASK_STATUS_IGNORED", "Nursery" ] GLOBAL_RUN_CONTEXT = threading.local()