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

refact: Implement NetworkClient using async await #12

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

FabioMSousa
Copy link

Replace combine implementation with async await.

Comment on lines 31 to 34
return .init(pathUpdateStream: {
XCTFail("\(Self.self).pathUpdateStream method not implemented.")
fatalError("\(Self.self).pathUpdateStream method not implemented.")
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return .init(pathUpdateStream: {
XCTFail("\(Self.self).pathUpdateStream method not implemented.")
fatalError("\(Self.self).pathUpdateStream method not implemented.")
})
return .init(pathUpdateStream: {
XCTUnimplemented("\(Self.self).pathUpdateStream method not implemented.")
})

Copy link
Contributor

Choose a reason for hiding this comment

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

I've just refactored our implementation to use async/await too and the above was suggested to me by Jakob so now I'm passing it on 😄

@FabioMSousa FabioMSousa force-pushed the feature/networkClient-update branch from bb84952 to 82bfc01 Compare October 25, 2022 14:38
@@ -29,7 +29,7 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "0.3.2"),
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "0.5.3"),
.package(url: "https://github.com/pointfreeco/swiftui-navigation", from: "0.1.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "0.2.1"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "0.3.0"),
Copy link
Author

Choose a reason for hiding this comment

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

Changed the version so we could use XCTUnimplemented.

@FabioMSousa FabioMSousa force-pushed the feature/networkClient-update branch from 82bfc01 to fc6eeae Compare October 25, 2022 14:49
@jakobmygind jakobmygind merged commit 7753153 into main Oct 31, 2022
@jakobmygind jakobmygind deleted the feature/networkClient-update branch October 31, 2022 09:30
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.

3 participants