Loaders
and AsyncTask
were really easy to use and helpful classes for long running operations like performing network http requests, but since they are deprecated, I couldn't find an alternative. I know that I may use LiveData
+ ViewModel
as Google suggests but they are not doing tasks in a separate thread, so what can we use besides them? RxJava
? or sth else? (regardless of manually creating Threads
and Executors
)
*I use Java.