- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
while (true) {
while (true) {
…
}
…
try {
Thread.sleep(1);
} catch (InterruptedException ex) {
logger.warn("Interrupted");
interrupted = true;
continue;
}
if (interrupted) {
Thread.currentThread().interrupt();
}
}