-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
async100 now ignores trio.open_nursery and anyio.create_task_group #317
async100 now ignores trio.open_nursery and anyio.create_task_group #317
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some more documentation as below - thanks!
docs/changelog.rst
Outdated
@@ -4,6 +4,10 @@ Changelog | |||
|
|||
`CalVer, YY.month.patch <https://calver.org/>`_ | |||
|
|||
24.11.1 | |||
====== | |||
- :ref:`ASYNC100 <async100>` now ignores :func:`trio.open_nursery` and :func:`anyio.create_task_group` as cancellation sources. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- :ref:`ASYNC100 <async100>` now ignores :func:`trio.open_nursery` and :func:`anyio.create_task_group` as cancellation sources. | |
- :ref:`ASYNC100 <async100>` now ignores :func:`trio.open_nursery` and :func:`anyio.create_task_group` as cancellation sources, | |
because they are schedule points but not cancellation points. |
This is a subtle enough concept that we should not assume users are familiar with it - I'd also call out this distinction in the docs for ASYNC100
, and create glossary entries for both which are linked from "checkpoint" and link in turn to Trio docs (eg for cancel_shielded_checkpoint()
and checkpoint_if_cancelled()
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call, feel free to reword my attempt :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some tiny tweaks to the docs for cross-references. Thanks again @jakkdl!
…ursery and anyio.create_task_group (python-trio#317)" This partially reverts commit 7a45176.
I was cleaning up old branches in my fork, and it... seems like I never opened a PR for this? Wrote it several months ago, so decided to just rebase and clean it up