Skip to content

Conversation

ra1028
Copy link
Owner

@ra1028 ra1028 commented Mar 17, 2025

Pull Request Type

  • Bug fix
  • New feature
  • Refactoring
  • Documentation update
  • Chore

Description

ObservableObjectAtom crashes explicitly since Swift 6 when the ObservableObject is updated in a background thread to avoid data races.
However, this PR aims to change that behavior to thread-safely perform updates regardless of the actor context in which the update is triggered because it's not possible to apply a constraint to ObservableObject that ensures it to be isolated to the main actor.

@ra1028 ra1028 requested a review from Copilot March 17, 2025 09:39
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

@ra1028 ra1028 marked this pull request as ready for review March 17, 2025 10:11
@ra1028 ra1028 merged commit 7d05237 into main Mar 17, 2025
8 checks passed
@ra1028 ra1028 deleted the observable-object-atom-thread-safety branch March 17, 2025 10:21
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