AsyncTask is dead (deprecated)
So what structure do I use to replace my AsyncTask.SerialExecutor? I’ve made the dive into coroutines and channels, but there’s nothing I’ve come across that can serially queue a series of requests and ensure they execute in turn with no concurrency. Nothing that isn’t a) already deprecated (like actor) or b) experimental (not something I want to touch with a production build).
Maybe I’m missing something in how CoroutineScope is defined? Some little trick with channels?
I’ve also asked this question on stackoverflow and it has received an answer. But I believe this solution has some limitations. I’m wondering if there is a ‘proper’ solution.