IInterruptionToken
public interface IInterruptionToken
This class represents the token to use for signaling long running tasks whether the interruption was requested.
Methods
Method | Description |
---|---|
isInterruptionRequested() | Returns true if interruption was requested. |
throwIfInterruptionRequested() | Throws an if interruption was requested. |
isInterruptionRequested()
public abstract boolean isInterruptionRequested()
Returns true if interruption was requested.
Returns: boolean
throwIfInterruptionRequested()
public abstract void throwIfInterruptionRequested()
Throws an if interruption was requested.