public interface OnCancel
Listener for a Promise entering a Deferred.CANCELLED terminal state.
Promise| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterrupt) |
boolean cancel(boolean mayInterrupt)
mayInterrupt - If a running computation may be interrupted.true If the promise was cancelled, false if it had already reached another terminal state.Future.cancel(boolean)Copyright © 2014 MachineCode. All rights reserved.