All Implemented Interfaces: com.aspose.slides.IInterruptionToken
public class InterruptionToken implements IInterruptionToken
This class represents the token to use for signaling long running tasks whether the interruption was requested.
|getNone()||Represents an empty interruption token.|
|isInterruptionRequested()||Returns true if interruption was requested.|
|throwIfInterruptionRequested()||Throws an if interruption was requested.|
public static InterruptionToken getNone()
Represents an empty interruption token.
Long-running operations will never be interrupted via InterruptionTokenSource.interrupt when using this token.
public final boolean isInterruptionRequested()
Returns true if interruption was requested.
public final void throwIfInterruptionRequested()
Throws an if interruption was requested.