Created
November 1, 2016 14:35
-
-
Save yogonza524/7552d8be3228283b5b83bdad62626d90 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
private void taskOperation(){ | |
Task<Void> task = new Task<Void>() { | |
@Override protected Void call() throws Exception { | |
return null; | |
} | |
}; | |
task.setOnSucceeded((WorkerStateEvent event) -> { | |
//Do some callback action | |
}); | |
Thread th = new Thread(task); | |
th.start(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment