本文整理汇总了TypeScript中async.AsyncBooleanResultCallback类的典型用法代码示例。如果您正苦于以下问题:TypeScript AsyncBooleanResultCallback类的具体用法?TypeScript AsyncBooleanResultCallback怎么用?TypeScript AsyncBooleanResultCallback使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AsyncBooleanResultCallback类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
}, function(item: number, next: AsyncBooleanResultCallback): void {
console.log(`async.some/any: ${item}`);
next(undefined as any, item > 2);
}, function(err: Error, result: boolean) {
示例2: next
(item: number, next: AsyncBooleanResultCallback) => {
console.log(`async.some/any: ${item}`);
next(undefined as any, item > 2);
},
示例3: setTimeout
setTimeout(function(): void {
console.log(`async.reject: ${val}`);
next(undefined as any, val % 2 === 0);
}, 500);