# | Line 607 | Line 607 | public class ScheduledExecutorTest exten | |
---|---|---|
607 | final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); | |
608 | try (PoolCleaner cleaner = cleaner(p, releaser)) { | |
609 | for (int i = 0; i < tasks.length; i++) | |
610 | < | tasks[i] = p.schedule(new SmallPossiblyInterruptedRunnable(), |
610 | > | tasks[i] = p.schedule(possiblyInterruptedRunnable(SMALL_DELAY_MS), |
611 | LONG_DELAY_MS, MILLISECONDS); | |
612 | int max = tasks.length; | |
613 | if (tasks[4].cancel(true)) --max; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |