# | Line 78 | Line 78 | public interface ExecutorService extends | |
---|---|---|
78 | */ | |
79 | boolean awaitTermination(long timeout, TimeUnit unit) | |
80 | throws InterruptedException; | |
81 | + | |
82 | + | |
83 | + | /** |
84 | + | * Prevent this task from executing if it has not already |
85 | + | * commenced executing. This method provides only best-effort |
86 | + | * effects, and may fail for any reason. |
87 | + | * d |
88 | + | * #return true if the task was removed |
89 | + | */ |
90 | + | boolean remove(Runnable task); |
91 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |