Skip to content

[stdlib] Gardening BackDeployConcurrency files #62504

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

Conversation

Jager-yoo
Copy link
Contributor

Before Swift 5.6 concurrency library was separated in #59282, I revised some Concurrency files in #58930.
This PR applies the revised content to the back-deployed concurrency library.
Please review! 😄

/// }
/// // Prints: I II III V
/// // Prints "I II III V "
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you think this doesn't need to be rear-spaced, just let me know.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think including the quotes is an improvement. It makes it easier to see that the output from print includes a space at the end.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good! I'll change stdlib/public/Concurrency files too and submit a new PR on the weekend. Thanks!

@@ -22,12 +22,12 @@ extension AsyncSequence {
///
/// In this example, an asynchronous sequence called `Counter` produces `Int`
/// values from `1` to `10`. The `dropFirst(_:)` method causes the modified
/// sequence to ignore the values `0` through `4`, and instead emit `5` through `10`:
/// sequence to ignore the values `1` through `3`, and instead emit `4` through `10`:
Copy link
Contributor Author

@Jager-yoo Jager-yoo Dec 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note here: These numbers need to be fixed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the old numbers were wrong. The list starts at 1, not a 0.

Comment on lines +60 to +61
/// for await number in Counter(howHigh: 10) {
/// print(number, terminator: " ")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I renamed i to number just like the other examples.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks like a good change to me. It's consistent, and "number" means more to the reader than "i".

@Jager-yoo
Copy link
Contributor Author

@amartini51 Hi! Could you please review my PR like last time? #58930
All changes are documentation-only.

Copy link
Member

@amartini51 amartini51 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes all look good to me — thanks.

CC @invalidname

@amartini51
Copy link
Member

@swift-ci Please smoke test.

Copy link
Contributor

@invalidname invalidname left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@Jager-yoo
Copy link
Contributor Author

Thank you both of you! 😄 @amartini51 @invalidname
Please merge this when you're ready.

@amartini51 amartini51 merged commit a98621c into swiftlang:main Dec 15, 2022
@Jager-yoo Jager-yoo deleted the revise-backdeployed-concurrency branch December 19, 2022 15:05
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.

3 participants