Skip to content
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

[SR-15296] CheckedContinuation should be sendable #57618

Open
drewcrawford opened this issue Oct 8, 2021 · 0 comments
Open

[SR-15296] CheckedContinuation should be sendable #57618

drewcrawford opened this issue Oct 8, 2021 · 0 comments

Comments

@drewcrawford
Copy link
Contributor

@drewcrawford drewcrawford commented Oct 8, 2021

Previous ID SR-15296
Radar None
Original Reporter @drewcrawford
Type Bug
Environment

Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee None
Priority Medium

md5: 7d70ca2abcdc2fe1656830c4369c66be

Issue Description:

Pretty sure this is just an oversight, as UnsafeContinuation is Sendable.

func assert(sendable: Sendable) {}
func example() {
 withCheckedContinuation { (continuation: CheckedContinuation<(),Never>) in
// Argument type 'CheckedContinuation<(), Never>' does not conform to expected type 'Sendable'
 assert(sendable: continuation) 
 }
}
@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant