-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Revise doc comments for continuations #37303
Conversation
For rdar://77331481
@swift-ci please smoke test |
Per tech review from @ktoso
Conflicts were just @Availability marker changes.
@swift-ci please smoke test |
For rdar://77331481
Per tech review from @jckarter
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.
Looks good now, thanks!
@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. |
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.
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 ?
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.
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.
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.
Okey it seems the wording is correct :)
@swift-ci Please test and merge. |
Note two tech review queries marked ◊TR in the diff.
For rdar://76086293