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