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运算符。
答案 0 :(得分:3)
答案是-[RACStream flattenMap:]