-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement the Subscription
type
#22
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
4dd98f5
to
6e82605
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for MessageSubscription
to be implemented as mentioned by Lawrence.
26d3f2d
to
20e7f5f
Compare
It offers some nice convenience features. I don’t think that this package is a controversial inclusion; it’s written by Apple and they had a WWDC session about it. This is the first time I’ve tried adding a new package, and for some reason Xcode didn’t update its xcshareddata Package.resolved automatically, but running `xcodebuild -resolvePackageDependencies` did the trick. Adding this package exposed a couple of issues in our CI setup: 1. the way in which we specify which Swift language version to use — I’ve fixed this 2. Xcode can fail when trying to compile a Package.swift package using “treat warnings as errors” — I’ve had to turn that off
202f70a
to
a7ec146
Compare
Done this now. |
Made the changes but have a compilation error to fix; might require some changes to #7. Will look into it. |
a7ec146
to
b15ead1
Compare
OK, sorted it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left few questions.
Note that XCTAssertEqual doesn’t allow you to write `await` inside its arguments, hence the indirection to get the result of a couple of `async let`s. Hopefully we’ll be able to migrate to Swift Testing at some point, which will resolve this; see #21. I’ve also implemented MessageSubscription by wrapping Subscription.
b15ead1
to
721f10c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Note: This PR is based on top of #9; please review that one first.
This implements the
Subscription
type from #9. It’s a bit messy, but we should be able to get rid of it if we switch to Swift 6 once that's released (see #21).