MCPcopy Create free account
hub / github.com/Justson/Downloader / AsyncTask

Class AsyncTask

library/src/main/java/com/download/library/AsyncTask.java:12–31  ·  view source on GitHub ↗

@author cenxiaozhong @date 2020/7/5 @since 1.0.0

Source from the content-addressed store, hash-verified

10 * @since 1.0.0
11 */
12public class AsyncTask {
13
14
15 private static final DispatchThread MAIN_QUEUE = new DispatchThread(Looper.getMainLooper());
16
17 protected void publishProgress(final Integer... values) {
18 MAIN_QUEUE.post(new Runnable() {
19 @Override
20 public void run() {
21 onProgressUpdate(values);
22 }
23 });
24 }
25
26
27 protected void onProgressUpdate(Integer... values) {
28
29 }
30
31}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…