Tuesday, July 28, 2015

[coding] OMG Google WTF Threads

Soooooooooo AsyncTasks.  The "official" way to do background shit.  Well.

On some versions of Android, including whatever a Galaxy S 3 Tab runs, the async tasks share a thread pool with a core size of 1.  In simple terms, that means if you expect more than one async task to run at a time, you are fucked.  According to some documentation I found, it is possible that Google thought they were doing us a favor.  Holy Fucking Bullshit is called AsyncTask.  Why did you name it Async if some versions can only run one at a time?

Apparently AsyncTasks are only useful for short running tasks (assuming you are ok with them running synchronously).  This is just like the fucking ListView all over again.

No comments:

Post a Comment