Skip to content

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