Question re AsyncTaskLoader


#1

Can you please explain why is AsyncTaskLoader a good choice?

On p.561 in book, it says “AsyncTaskLoader is an abstract Loader that uses an AsyncTask to move the work of loading data to another thread. …”

Yet, p449 says “…Executor to run background work for all AsyncTasks on a single background thread. That means that each AsyncTask will run one after the other. A long-running AsyncTask will poison the well, preventing other AsyncTasks from getting any CPU time.”

Much appreciated