Skip to content

[6.2][Docs] TaskGroup docs improvements & reorganization #82984

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

Merged
merged 5 commits into from
Jul 11, 2025

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jul 11, 2025

Description: This is a docs only change, which reorganizes docs and fixes some inconsistencies which have caused developers some confusion. It isn't a whole reword but already improves the experience significantly.

We lean into documenting detailed behavior in one place, rather than on every group which often one of them got "missed" when updating documentation. This explains better cancellation behavior, and for the first time we actually properly explain structured concurrency benefits on the API docs of the group.

Scope/Impact: Docs only change to improve
Risk: Low, docs only.
Testing: CI testing
Reviewed by: @amartini51 @DougGregor

Original PR: #82291 #82894 #82558
Radar: rdar://154000871 #82396

Changhyun-Kyle and others added 5 commits July 11, 2025 11:44
These looks like the side effect of a find-and-replace for PR 82558
fixing 'cancelled' vs 'canceled'.
- Move the definition of 'structured concurrency' to the beginning of
  the section.
- Avoid future tense.  Fix some mixed future+present tense errors.
- Write bullet points as individual sentences, not as the clauses of one
  long sentence.
- Apple Style: Use 'since' only in the sense of 'after'.
- Apple Style: Use 'you' instead of 'one'.
- Apple Style: Close up 'non-' except when ambiguous.
- DevPubs style: Avoid bare 'this' for clarity.  Here, 'this guarantee'
  tells the reader what 'this' refers to.
- DevPubs style: Avoid 'may' which can be ambiguous between possibility
  and permission.
@ktoso ktoso requested a review from a team as a code owner July 11, 2025 03:01
@ktoso
Copy link
Contributor Author

ktoso commented Jul 11, 2025

@swift-ci please test

@ktoso ktoso force-pushed the pick-task-group-docs branch from f7c0344 to 12b998e Compare July 11, 2025 03:04
@ktoso
Copy link
Contributor Author

ktoso commented Jul 11, 2025

@swift-ci please test

@ktoso ktoso merged commit 9ac4ebc into swiftlang:release/6.2 Jul 11, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants