Skip to content
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

Swift6 compilation mode support #2

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

lvalenta
Copy link
Collaborator

@lvalenta lvalenta commented Feb 17, 2025

This MR provides support for Swift6 compilation mode. Fixes an issue where sending a Sendable value to publisher was crashing the application due to DispatchQueue.main precondition - I found no way to make it work, not even initializing it on different Queue and then sending the value on that queue would help.

publisher = newStream.publisher
}

guard let publisher else { return }

Choose a reason for hiding this comment

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

I assume, this should be considered as failure

Suggested change
guard let publisher else { return }
guard let publisher else {
Issue.record("Should not be nil.")
}

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