Answer the question
In order to leave comments, you need to log in
How to stop Task?
How to stop this flow?
Task task = new Task(){
@Override
protected Void call() throws Exception {
double TimeStart = 0d;
for (int row = 0; row < 100; row++) {
TimeStart = TimeStart + 0.01;
updateProgress(TimeStart, 1);
try {
Thread.sleep(normalTime);
} catch (InterruptedException e) {
}
}
return null;
}
};
Answer the question
In order to leave comments, you need to log in
Yes, it is desirable to make the code readable, otherwise no one will start solving your question.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question