Skip to content

Swift 6: Participants and streams #646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 27, 2025
Merged

Swift 6: Participants and streams #646

merged 6 commits into from
Mar 27, 2025

Conversation

pblazej
Copy link
Contributor

@pblazej pblazej commented Mar 27, 2025

  • Marks Participant et al. as @unchecked Sendable (per last discussions)
  • Fixes Sendable warnings for stream-related methods/closures

@pblazej pblazej requested review from ladvoc and hiroshihorie March 27, 2025 08:04
@@ -179,7 +179,7 @@ public class Participant: NSObject, ObservableObject, Loggable {
}

// Notify when state mutates
Task.detached { @MainActor in
Task { @MainActor in
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created another ticket to revisit that detached thing, in most cases (if not all) it's just bypassing current task priority and actor context.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In some cases like VideoView it seems unnecessary (at least for now?)

@pblazej pblazej merged commit 691038d into main Mar 27, 2025
20 checks passed
@pblazej pblazej deleted the blaze/swift-6-participant branch March 27, 2025 13:41
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