# | Line 128 | Line 128 | public class CancellableTask implements | |
---|---|---|
128 | /** | |
129 | * Attempt to set the state of this task to Running, succeeding | |
130 | * only if the state is currently NOT Done, Running, or Cancelled. | |
131 | < | * @rrturn true if successful |
131 | > | * @return true if successful |
132 | */ | |
133 | protected boolean setRunning() { | |
134 | return runnerUpdater.compareAndSet(this, null, Thread.currentThread()); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |