lib/src/main/java/fr/coppernic/framework/art/AsyncRunnableTask.java
//Do not synchronize cancel because it has to be able to cancel during actual execution.
Do not synchronize cancel because it has to be able to cancel during actual execution.
Do not synchronize cancel because it has to be able to cancel during actual execution .
@Override
	public void cancel() {
		synchronized (mutex) {
			setState(new State[]{State.PENDING, State.RUNNING, State.IDLE}, State.CANCELLED);
		}
	}
@ Override public void cancel ( ) { synchronized ( mutex ) { setState ( new State [ ] { State . PENDING , State . RUNNING , State . IDLE } , State . CANCELLED ) ; } }
Do not synchronize cancel because it has to be able to cancel during actual execution.
Do not synchronize cancel because it has to be able to cancel during actual execution .
// Don't set the state if it is done //FIXME check that super.cancel() was called in case or overriding