Commit ba9a82e9 by olly Committed by Oliver Woodman

Use execute instead of submit

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=147794314
parent 4cca2f2d
......@@ -102,4 +102,5 @@ public interface Extractor {
* Releases all kept resources.
*/
void release();
}
......@@ -199,7 +199,7 @@ public final class Loader implements LoaderErrorThrower {
currentTask.cancel(true);
}
if (postLoadAction != null) {
downloadExecutorService.submit(postLoadAction);
downloadExecutorService.execute(postLoadAction);
}
downloadExecutorService.shutdown();
}
......@@ -260,7 +260,7 @@ public final class Loader implements LoaderErrorThrower {
if (delayMillis > 0) {
sendEmptyMessageDelayed(MSG_START, delayMillis);
} else {
submitToExecutor();
execute();
}
}
......@@ -367,9 +367,9 @@ public final class Loader implements LoaderErrorThrower {
}
}
private void submitToExecutor() {
private void execute() {
currentError = null;
downloadExecutorService.submit(currentTask);
downloadExecutorService.execute(currentTask);
}
private void finish() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment