Skip to content

Support stricter actor isolation when briding closures#100

Merged
marcprux merged 1 commit intomainfrom
strictactorclosures
Jan 5, 2026
Merged

Support stricter actor isolation when briding closures#100
marcprux merged 1 commit intomainfrom
strictactorclosures

Conversation

@aabewhite
Copy link
Contributor

  • Sync @mainactor closures get a separate constructor that wraps them in a MainActor.assumeIsolated call
  • Async closures are stored as @isolated(any) so that they carry their actor information with them and execute on that actor after bridging (at least that is my understanding)

- Sync @mainactor closures get a separate constructor that wraps them in a
  MainActor.assumeIsolated call
- Async closures are stored as @isolated(any) so that they carry their actor
  information with them and execute on that actor after bridging (at least
  that is my understanding)
@cla-bot cla-bot bot added the cla-signed label Jan 5, 2026
@marcprux marcprux changed the title Draft patch: Support stricter actor isolation when briding closures Support stricter actor isolation when briding closures Jan 5, 2026
@marcprux marcprux merged commit bd7137d into main Jan 5, 2026
1 of 3 checks passed
@marcprux marcprux deleted the strictactorclosures branch January 5, 2026 19:41
marcprux added a commit to skiptools/skip-fuse-samples that referenced this pull request Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants