期货为Objective-C? [英] Futures for Objective-C?

查看:127
本文介绍了期货为Objective-C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在Objective-C中实施了期货吗?

Has anyone implemented Futures in Objective-C? I (hopefully not naively) assume that it should be reasonably simple to wrap NSInvocations in a nice API?

推荐答案

Mike Ash已经实现了一个简单的方法来实现NSInvocations使用块的期货:

Mike Ash has implemented Futures using Blocks:

  • http://www.mikeash.com/pyblog/friday-qa-2010-02-26-futures.html
  • http://www.mikeash.com/pyblog/friday-qa-2010-03-05-compound-futures.html

这篇关于期货为Objective-C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆