Expected behavior
I'd want to cancel requests that are waiting in a QueuedInterceptor (Dio) on a certain error response.
Like we see in the screenshot below, Dio allows that via a CancelToken() that we have to give into the .get() .post() .put()... requests.
And then we can cancel those requests just calling :
cancelToken.cancel('')
Screenshots
My problem is that i can't figure out how to achieve that with Retrofit over Dio ?
Any help would be much appreciated,
Thanks in advance ;)
Hi, Thanks for the work !
Expected behavior I'd want to cancel requests that are waiting in a QueuedInterceptor (Dio) on a certain error response. Like we see in the screenshot below, Dio allows that via a CancelToken() that we have to give into the .get() .post() .put()... requests. And then we can cancel those requests just calling : cancelToken.cancel('')
Screenshots
My problem is that i can't figure out how to achieve that with Retrofit over Dio ?
Any help would be much appreciated, Thanks in advance ;)