Skip to content

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

@younata younata merged commit fd4a97e into Quick:main Dec 12, 2024
6 of 16 checks passed
@younata
Copy link
Member

younata commented Dec 12, 2024

Thanks for doing this! Sorry it took so long for me to take a look at this.

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?

2 participants