200 |
|
final CountDownLatch done = new CountDownLatch(cycles); |
201 |
|
CheckedRunnable task = new CheckedRunnable() { |
202 |
|
public void realRun() { done.countDown(); }}; |
203 |
– |
|
203 |
|
ScheduledFuture h = |
204 |
|
p.scheduleAtFixedRate(task, 0, delay, MILLISECONDS); |
205 |
|
done.await(); |
228 |
|
final CountDownLatch done = new CountDownLatch(cycles); |
229 |
|
CheckedRunnable task = new CheckedRunnable() { |
230 |
|
public void realRun() { done.countDown(); }}; |
232 |
– |
|
231 |
|
ScheduledFuture h = |
232 |
|
p.scheduleWithFixedDelay(task, 0, delay, MILLISECONDS); |
233 |
|
done.await(); |