接口的使用
cn.wjybxx.concurrent.CancelTokenListener
使用CancelTokenListener的程序包
-
cn.wjybxx.concurrent中CancelTokenListener的使用
参数类型为CancelTokenListener的cn.wjybxx.concurrent中的方法修饰符和类型方法说明CancelTokenSource.thenNotify(CancelTokenListener action) CancelTokenSource.thenNotify(CancelTokenListener action, int options) ICancelToken.thenNotify(CancelTokenListener action) ICancelToken.thenNotify(CancelTokenListener action, int options) 添加一个特定类型的监听器 (用于特殊需求时避免额外的闭包 - task经常需要监听取消令牌)ReadonlyCancelToken.thenNotify(CancelTokenListener action) ReadonlyCancelToken.thenNotify(CancelTokenListener action, int options) CancelTokenSource.thenNotifyAsync(Executor executor, CancelTokenListener action) CancelTokenSource.thenNotifyAsync(Executor executor, CancelTokenListener action, int options) ICancelToken.thenNotifyAsync(Executor executor, CancelTokenListener action) ICancelToken.thenNotifyAsync(Executor executor, CancelTokenListener action, int options) ReadonlyCancelToken.thenNotifyAsync(Executor executor, CancelTokenListener action) ReadonlyCancelToken.thenNotifyAsync(Executor executor, CancelTokenListener action, int options) -
cn.wjybxx.sequential中CancelTokenListener的使用
参数类型为CancelTokenListener的cn.wjybxx.sequential中的方法修饰符和类型方法说明UniCancelTokenSource.thenNotify(CancelTokenListener action) UniCancelTokenSource.thenNotify(CancelTokenListener action, int options) UniCancelTokenSource.thenNotifyAsync(Executor executor, CancelTokenListener action) UniCancelTokenSource.thenNotifyAsync(Executor executor, CancelTokenListener action, int options)