Created
May 1, 2013 17:15
-
-
Save wesleyfsmith/5496680 to your computer and use it in GitHub Desktop.
Asynctask tracking.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /////////////////////////////////////////////////////////////////////////// | |
| // AsyncTask | |
| /////////////////////////////////////////////////////////////////////////// | |
| public final void addTask(AsyncTask task) { | |
| asyncTasks.add(task); | |
| } | |
| public void addAndStartTask(AsyncTask task) { | |
| addAndStartTask(task, null); | |
| } | |
| public <Params, Progress, Result> void addAndStartTask(AsyncTask<Params, Progress, Result> task, Params... params) { | |
| addTask(task); | |
| task.execute(params); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment