Jan Stoltman04/05/2019, 3:54 PM
functions, this means that I'm restricted to using the UI dispatcher (afaik there is no IO dispatcher for mpp projects?). Everything worked just fine with small files, but when I try to parse this huge json my app freezes. It happens with any CPU-intense operation really. I've figured out that I could use
for CPU-intense operations, as it doesn't block my UI. But I just cannot figure out how to join coroutines and workers, things just explode when I try to launch either one inside the other. Is there a way to get a json file from ktor, inside a coroutine, and then process it with workers? Do you guys have any recommendations? Any ideas for a direction which I could take?
olonho04/05/2019, 6:16 PM