InterruptMonitor类

InterruptMonitor类

代表关于中断的所有操作符。

继承: InterruptMonitorAbstractInterruptMonitor

InterruptMonitor 类型公开了以下成员:

构造器

构造器 描述
InterruptMonitor() 构造一个新的 InterruptMonitor 实例

特性

属性 描述
is_interruption_requested 将监视器标记为请求中断
terminate_without_exception 当程序被中断时,是安静地终止程序还是抛出异常。
默认为false,即AbstractInterruptMonitor.is_interruption_requested为true时,
将抛出代码为 ExceptionType.INTERRUPTEDCellsException

方法

方法 描述
interrupt() 中断当前操作员。

也可以看看