You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently 'cancel' is on Connection. This works fine since we only have a single Request per connection right now. It belongs on Request class logically though as it's the Request that's being cancelled.
We should mark the cancel function on Connection class deprecated so we can remove it in a later release.
Activity
chdh commentedon Mar 10, 2017
Some additional info to justify this:
When cancel() is called on a Request object, the implementation must check whether the Request object really represents the currently active request.
arthurschreiber commentedon Mar 10, 2017
Yeah, this definately feels like it should be on the Request and not the Connection, long term.
We can deprecate this somewhere in the 2.x releases and drop it in 3.0.
arthurschreiber commentedon Jan 14, 2019
This will be added via #846. 😬
arthurschreiber commentedon Jan 16, 2019
🎉 This issue has been resolved in version 5.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀