# | Line 119 | Line 119 | public class ExecutorCompletionServiceTe | |
---|---|---|
119 | assertNull(ecs.poll()); | |
120 | Callable c = new StringTask(); | |
121 | ecs.submit(c); | |
122 | < | Thread.sleep(SHORT_DELAY_MS); |
122 | > | delay(SHORT_DELAY_MS); |
123 | for (;;) { | |
124 | Future f = ecs.poll(); | |
125 | if (f != null) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |