Skip to content

fix(native): satisfy Swift concurrency captures - #2

Open
ylcn91 wants to merge 2 commits into
devfrom
codex/native-macos-ci-fix
Open

fix(native): satisfy Swift concurrency captures#2
ylcn91 wants to merge 2 commits into
devfrom
codex/native-macos-ci-fix

Conversation

@ylcn91

@ylcn91 ylcn91 commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • move weak self capture into main-actor tasks for RuntimeStore websocket callbacks

Verification

  • swift build -c release
  • swift test

ylcn91 added 2 commits June 4, 2026 20:07
CI builds native macOS with Swift 5.10, which rejects weak self captured outside a main-actor task in websocket callbacks.
Swift warns that captured mutable Data buffers in readability handlers will become errors under Swift 6. Use a locked reference buffer so file-handle callbacks do not mutate captured vars.
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.

1 participant