ReactiveCocoa 0.10.0中的selectMany在哪里

时间:2012-12-11 21:59:06

标签: objective-c cocoa reactive-programming

ReactiveCocoa API最近发生了一些重大变化,我找不到版本0.10.0中selectMany运算符的替换函数。

// RACSubscribableProtocol.h in version 0.8.2
// Gets a new subscribable for every `next` and sends `next` when any of those
// subscribables do.
- (RACSubscribable *)selectMany:(id<RACSubscribable> (^)(id x))selectBlock;

我看到RACSubscribable变成RACSignal但它没有selectMany运算符。

1 个答案:

答案 0 :(得分:3)

答案是-[RACStream flattenMap:]

感谢https://github.com/ReactiveCocoa/ReactiveCocoa/issues/176

的回复