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

Don't depend on DispatchQueue's Equatable conformance #311

Merged
merged 5 commits into from Oct 19, 2020
Merged

Don't depend on DispatchQueue's Equatable conformance #311

merged 5 commits into from Oct 19, 2020

Conversation

mluisbrown
Copy link
Contributor

Among the changes I had to make in order to get the ReactiveSwift fork building for Linux was not depending on the Equatable conformance of DispatchQueue, and I realised that it probably isn't necessary at all.

Equatable conformance allows the switch self and the matching on .main, however, in Linux DispatchQueue does not conform to Equatable, so this doesn't work.

Since for the other queues we are doing name matching we could do the same for .main whose name is always "com.apple.main-thread"

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

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

Ah nice, looks good!

@stephencelis stephencelis merged commit d06e430 into pointfreeco:main Oct 19, 2020
@mluisbrown mluisbrown deleted the michael/dispatch-queue-equatable branch October 19, 2020 16:07
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.

None yet

2 participants