Last active
May 9, 2018 13:15
-
-
Save cagdasc/498dde82d4f838acdaa273831be72942 to your computer and use it in GitHub Desktop.
This file contains 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
@Override | |
protected void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
mCachedThreadPool.openNewPool(this); | |
} | |
@Override | |
protected void onDestroy() { | |
super.onDestroy(); | |
mCachedThreadPool.closePool(this); | |
} | |
public CachedThreadPool getCachedThreadPool() { | |
return mCachedThreadPool; | |
} | |
... | |
getCachedThreadPool().executeTask(task, MainActivity.this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment