How to pause/resume requests? #1700
Replies: 2 comments
-
@rogererill That's still the recommended way to implement pausing + resuming. If you use the singleton It might also be useful for your use case, but you can attach metadata to a request using |
Beta Was this translation helpful? Give feedback.
-
Hi @colinrtwhite thanks for your response! A slightly modified implementation of the proposed solution did successfully pause the requests, but then I had to add some code that stored the incoming requests that were coming while the app was in this "paused" state so I could resume then later. It feels a bit hacky but I guess I managed to find a good workaraound. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm in the process of migrating my app from Picasso to Coil, and I wondered if there was an equivalence to Picasso's method to
.pauseTag(tag)
and.resumeTag(tag)
.I have this piece of code:
I have read this but I wonder if there's a better way nowadays. I'm not really sure how could I access the
Interceptor
to set it as "paused" when creating the request.Thanks
Beta Was this translation helpful? Give feedback.
All reactions