Skip to content

Fix a compilation error#1346

Merged
dkovba merged 1 commit into
apple:mainfrom
dkovba:compile-error
Mar 26, 2026
Merged

Fix a compilation error#1346
dkovba merged 1 commit into
apple:mainfrom
dkovba:compile-error

Conversation

@dkovba
Copy link
Copy Markdown
Contributor

@dkovba dkovba commented Mar 25, 2026

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Build fails with:

  • note: closure captures reference to mutable var 'self' which is accessible to code in the current task
  • error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure [#SendingClosureRisksDataRace]

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@dkovba dkovba requested a review from jglogan March 25, 2026 01:04
@dkovba dkovba merged commit d3a52c5 into apple:main Mar 26, 2026
4 checks passed
@dkovba dkovba deleted the compile-error branch March 26, 2026 23:39
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.

2 participants