Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Get the future of the task by submitting it to the pool
Future future = DefaultExecutorSupplier.getInstance().forBackgroundTasks()
.submit(new Runnable() {
public void run() {
// do some background work here.
* cancelling the task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.