问题标签 [nsblockoperation]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
42 问题
0
投票
1
回答
168
浏览
0
投票
2
回答
72
浏览
swift - 使 BlockOperation 失败,以便其他依赖项不执行
在一个简单的情况下operation2
依赖于operation1
,但是operation1
可能会失败,在这种情况下我们不想执行operation2
是否可以在operation1
代码块内交付失败的执行?这样就operation1
无法完成并且operation2
永远不会被执行并被处置?