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
Gemini -(Kumo) Task created in a session that has been invalidated #23
Conversation
9d08f03
to
728fc3d
Compare
728fc3d
to
3bae535
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.
Had some questions about the changes
@@ -5,47 +5,47 @@ import XCTest | |||
class GetTests: NetworkTest { | |||
|
|||
func testSuccessfulGetRequestEmittingVoid() { | |||
successfulTest(of: service.perform(HTTP.Request.get("get"))) | |||
successfulTest(of: performs(HTTP.Request.get("get"))) |
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.
Is this still calling a function on the service
somehow?
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.
yes, I have added a method to call service.perform
as we have to use Task {}
for this call
Task {
do {
let result: T = try await service.perform(request)
promise(.success(result))
} catch let error {
promise(.failure(error))
}
}
so I'm using that common method in tests
Running the tests (
I think we should address these? |
Fixed this warning |
Updated swift version and removed `RxSwift` dependency from podspec. `RxSwift` requirement was removed in the 2.0.0 update but stuck around the podspec erroneously.
DESCRIPTION
Fixing
Task created in a session that has been invalidated
crashCHANGE
class
toactor
perform()
with async & await