# | Line 153 | Line 153 | public class CancellableTask implements | |
---|---|---|
153 | } | |
154 | ||
155 | /** | |
156 | + | * Reset the run state of this task to its initial state. |
157 | + | */ |
158 | + | protected void reset() { |
159 | + | runnerUpdater.set(this, null); |
160 | + | } |
161 | + | |
162 | + | /** |
163 | * Implementation of Future methods under the control of a current | |
164 | * <tt>CancellableTask</tt>, which it relies on for methods | |
165 | * <tt>isDone</tt>, <tt>isCancelled</tt> and <tt>cancel</tt>. This |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |