that asynctask is not suitable for long running operations. I need to implement a heavy disk IO operation running in background, no need to synchronise with an activity. What should I be using?
Java or Kotlin?
U can use retrofit if u have network call and can use coroutine or rxjava for long running process. Although u can start a service and do that in bg
Either coroutines or rxjava
Обсуждают сегодня