Skip to content

Revise doc comments for continuations #37303

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

amartini51
Copy link
Member

Note two tech review queries marked ◊TR in the diff.

For rdar://76086293

@amartini51 amartini51 requested review from jckarter and DougGregor May 7, 2021 04:48
@amartini51
Copy link
Member Author

@swift-ci please smoke test

@amartini51 amartini51 marked this pull request as ready for review May 13, 2021 05:10
@amartini51
Copy link
Member Author

@swift-ci please smoke test

For rdar://77331481
Copy link
Contributor

@jckarter jckarter left a comment

Choose a reason for hiding this comment

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

Looks good now, thanks!

@amartini51
Copy link
Member Author

@swift-ci Please test and merge.

@@ -251,6 +271,18 @@ public func withCheckedContinuation<T>(
}
}

/// Suspends the current task,
/// then calls the given closure with a checked throwing continuation for the current task.
Copy link
Contributor

Choose a reason for hiding this comment

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

oh wait, that's not quite right.

We don't unconditionally suspend here do we?

This is just a potential suspension point and if it is immediately resumed we never suspended, or did I get that wrong @jckarter ?

Copy link
Member Author

@amartini51 amartini51 May 14, 2021

Choose a reason for hiding this comment

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

From our discussion, we'll dig into this detail and fix separately if this wording isn't correct. Asking CI to test & merge as-is.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okey it seems the wording is correct :)

@amartini51
Copy link
Member Author

@swift-ci Please test and merge.

@swift-ci swift-ci merged commit 1830773 into swiftlang:release/5.5 May 14, 2021
@amartini51 amartini51 deleted the continuation_doc_comments_75894995 branch May 14, 2021 14:22
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