-
Notifications
You must be signed in to change notification settings - Fork 39
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
cancelAllRequests not working? #119
Comments
Also, when I look at the code, I image that if the cancelling did work, the Basically in the if let error = error as? URLError, error.code == .cancelled {
networkPromise.cancel()
return
} |
Update on the Added some logging within
|
I think you're right about |
Super simpel test.
With the method above, where I cancel a single network promise, the request is not made and neither the success or an error is printed. Great!
However, when I change that last line to
networking.cancelAllRequests()
, I do get "Success" printed out, and I can confirm that the request is indeed made.The text was updated successfully, but these errors were encountered: