AbstractInterruptMonitor
Contents
[
Hide
]AbstractInterruptMonitor class
Monitor for interruption requests in all time-consuming operations.
abstract class AbstractInterruptMonitor;
Methods
Method | Description |
---|---|
abstract isInterruptionRequested() | Indicates whether interruption is requested for current operation. If true then current operation will be interrupted. Implementation should perform fast and efficient check here, otherwise it may become another bottleneck for the procedure. |
abstract getTerminateWithoutException() | When procedure is interrupted, whether terminate the procedure quietly or throw an Exception. Default is false, that is, when IsInterruptionRequested is true, a CellsException with code ExceptionType.Interrupted will be thrown. |
isInterruptionRequested()
Indicates whether interruption is requested for current operation. If true then current operation will be interrupted. Implementation should perform fast and efficient check here, otherwise it may become another bottleneck for the procedure.
abstract isInterruptionRequested() : boolean;
getTerminateWithoutException()
When procedure is interrupted, whether terminate the procedure quietly or throw an Exception. Default is false, that is, when IsInterruptionRequested is true, a CellsException with code ExceptionType.Interrupted will be thrown.
abstract getTerminateWithoutException() : boolean;