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

done compatible with Sendable #1159

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

soranoba
Copy link
Contributor

resolve #1158

Checklist - While not every PR needs it, new features should consider this list:

  • Does this have tests?: Yes
  • Does this have documentation?: No needed.
  • Does this break the public API (Requires major version bump)?: No needed.
  • Is this a new feature (Requires minor version bump)?: Yes (may be)

await waitUntil { done in
let queue = OperationQueue()
let op = BlockOperation {}
op.completionBlock = done
Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • On Swift5:
    • Before
      • Warning: Assigning non-sendable parameter 'done' to a @Sendable closure
    • After
      • No-Warning

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.

Why not make waitUntil's done compatible with Sendable?
1 participant