Last active
January 26, 2017 09:46
-
-
Save amitshekhariitbhu/52dcd765016869759cec4a72f603247f to your computer and use it in GitHub Desktop.
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
/* | |
* do some task at high priority | |
*/ | |
public void doSomeTaskAtHighPriority(){ | |
DefaultExecutorSupplier.getInstance().forBackgroundTasks() | |
.submit(new PriorityRunnable(Priority.HIGH) { | |
@Override | |
public void run() { | |
// do some background work here at high priority. | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment