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

Why not make waitUntil's done compatible with Sendable? #1158

Closed
1 task done
soranoba opened this issue Sep 24, 2024 · 0 comments · Fixed by #1159
Closed
1 task done

Why not make waitUntil's done compatible with Sendable? #1158

soranoba opened this issue Sep 24, 2024 · 0 comments · Fixed by #1159

Comments

@soranoba
Copy link
Contributor

  • I have read CONTRIBUTING and have done my best to follow them.

What did you do?

await waitUntil { done in
    let blockOperation = BlockOperation {}
    blockOperation.completionBlock = {
        // Compile-error (Swift6): Assigning non-sendable parameter 'done' to a @Sendable closure
        done()
    }
    queue.addOperation(asyncOperation)
}

What did you expect to happen?

done compatible with Sendable

What actually happened instead?

done does not compatible with Sendable

Environment

List the software versions you're using:

  • Quick: 7.6.0
  • Nimble: 13.3.0
  • Xcode Version: 16.0 (16A242d)

Please also mention which package manager you used and its version. Delete the
other package managers in this list:

  • Cocoapods: 1.15.2 (Use pod --version in Terminal)

Project that demonstrates the issue

None

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 a pull request may close this issue.

1 participant