mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-14 02:14:52 +08:00
AsyncTasks are executed on a single thread to avoid common application errors caused by parallel execution. So to make it possible to use tools like AsyncStorage while CodePush downloading an update we should use `asyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);` code instead of `asyncTask.execute()`