@interface RACSignal<__covariant ValueType> (Operations)
- (RACSignal<ValueType> *)doNext:(void (^)(ValueType _Nullable x))block RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)doError:(void (^)(NSError * _Nonnull error))block RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)doCompleted:(void (^)(void))block RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)throttle:(NSTimeInterval)interval RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)throttle:(NSTimeInterval)interval valuesPassingTest:(BOOL (^)(id _Nullable next))predicate RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)delay:(NSTimeInterval)interval RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)repeat RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)initially:(void (^)(void))block RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)finally:(void (^)(void))block RAC_WARN_UNUSED_RESULT;
- (RACSignal<RACTuple *> *)bufferWithTime:(NSTimeInterval)interval onScheduler:(RACScheduler *)scheduler;
- (RACSignal<NSArray<ValueType> *> *)collect RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)takeLast:(NSUInteger)count RAC_WARN_UNUSED_RESULT;
- (RACSignal<RACTwoTuple<ValueType, id> *> *)combineLatestWith:(RACSignal *)signal RAC_WARN_UNUSED_RESULT;
+ (RACSignal<RACTuple *> *)combineLatest:(id<NSFastEnumeration>)signals RAC_WARN_UNUSED_RESULT;
+ (RACSignal<ValueType> *)combineLatest:(id<NSFastEnumeration>)signals reduce:(ValueType _Nullable (^)())reduceBlock RAC_WARN_UNUSED_RESULT;
- (RACSignal *)merge:(RACSignal *)signal RAC_WARN_UNUSED_RESULT;
+ (RACSignal<ValueType> *)merge:(id<NSFastEnumeration>)signals RAC_WARN_UNUSED_RESULT;
- (RACSignal *)flatten:(NSUInteger)maxConcurrent RAC_WARN_UNUSED_RESULT;
- (RACSignal *)then:(RACSignal * (^)(void))block RAC_WARN_UNUSED_RESULT;
- (RACSignal *)concat RAC_WARN_UNUSED_RESULT;
- (RACSignal *)aggregateWithStart:(id)start reduce:(id (^)(id running, id next))reduceBlock RAC_WARN_UNUSED_RESULT;
- (RACSignal *)aggregateWithStart:(id)start reduceWithIndex:(id (^)(id running, id next, NSUInteger index))reduceBlock RAC_WARN_UNUSED_RESULT;
- (RACSignal *)aggregateWithStartFactory:(id (^)(void))startFactory reduce:(id (^)(id running, id next))reduceBlock RAC_WARN_UNUSED_RESULT;
- (RACDisposable *)setKeyPath:(NSString *)keyPath onObject:(NSObject *)object;
- (RACDisposable *)setKeyPath:(NSString *)keyPath onObject:(NSObject *)object nilValue:(nullable id)nilValue;
+ (RACSignal<NSDate *> *)interval:(NSTimeInterval)interval onScheduler:(RACScheduler *)scheduler RAC_WARN_UNUSED_RESULT;
+ (RACSignal<NSDate *> *)interval:(NSTimeInterval)interval onScheduler:(RACScheduler *)scheduler withLeeway:(NSTimeInterval)leeway RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)takeUntil:(RACSignal *)signalTrigger RAC_WARN_UNUSED_RESULT;
- (RACSignal *)takeUntilReplacement:(RACSignal *)replacement RAC_WARN_UNUSED_RESULT;
- (RACSignal *)catch:(RACSignal * (^)(NSError * _Nonnull error))catchBlock RAC_WARN_UNUSED_RESULT;
- (RACSignal *)catchTo:(RACSignal *)signal RAC_WARN_UNUSED_RESULT;
+ (RACSignal<ValueType> *)try:(nullable ValueType (^)(NSError **errorPtr))tryBlock RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)try:(BOOL (^)(id _Nullable value, NSError **errorPtr))tryBlock RAC_WARN_UNUSED_RESULT;
- (RACSignal *)tryMap:(id (^)(id _Nullable value, NSError **errorPtr))mapBlock RAC_WARN_UNUSED_RESULT;
- (nullable ValueType)first;
- (nullable ValueType)firstOrDefault:(nullable ValueType)defaultValue;
- (nullable ValueType)firstOrDefault:(nullable ValueType)defaultValue success:(nullable BOOL *)success error:(NSError * _Nullable * _Nullable)error;
- (BOOL)waitUntilCompleted:(NSError * _Nullable * _Nullable)error;
+ (RACSignal<ValueType> *)defer:(RACSignal<ValueType> * (^)(void))block RAC_WARN_UNUSED_RESULT;
- (RACSignal *)switchToLatest RAC_WARN_UNUSED_RESULT;
+ (RACSignal<ValueType> *)switch:(RACSignal *)signal cases:(NSDictionary *)cases default:(nullable RACSignal *)defaultSignal RAC_WARN_UNUSED_RESULT;
+ (RACSignal<ValueType> *)if:(RACSignal<NSNumber *> *)boolSignal then:(RACSignal *)trueSignal else:(RACSignal *)falseSignal RAC_WARN_UNUSED_RESULT;
- (nullable NSArray<ValueType> *)toArray;
@property (nonatomic, strong, readonly) RACSequence<ValueType> *sequence;
- (RACMulticastConnection<ValueType> *)publish RAC_WARN_UNUSED_RESULT;
- (RACMulticastConnection<ValueType> *)multicast:(RACSubject<ValueType> *)subject RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)replay;
- (RACSignal<ValueType> *)replayLast;
- (RACSignal<ValueType> *)replayLazily;
- (RACSignal<ValueType> *)timeout:(NSTimeInterval)interval onScheduler:(RACScheduler *)scheduler RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)deliverOn:(RACScheduler *)scheduler RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)subscribeOn:(RACScheduler *)scheduler RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)deliverOnMainThread RAC_WARN_UNUSED_RESULT;
- (RACSignal<RACGroupedSignal *> *)groupBy:(id<NSCopying> _Nullable (^)(id _Nullable object))keyBlock transform:(nullable id _Nullable (^)(id _Nullable object))transformBlock RAC_WARN_UNUSED_RESULT;
- (RACSignal<RACGroupedSignal *> *)groupBy:(id<NSCopying> _Nullable (^)(id _Nullable object))keyBlock RAC_WARN_UNUSED_RESULT;
- (RACSignal<NSNumber *> *)any RAC_WARN_UNUSED_RESULT;
- (RACSignal<NSNumber *> *)any:(BOOL (^)(id _Nullable object))predicateBlock RAC_WARN_UNUSED_RESULT;
- (RACSignal<NSNumber *> *)all:(BOOL (^)(id _Nullable object))predicateBlock RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)retry:(NSInteger)retryCount RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)retry RAC_WARN_UNUSED_RESULT;
- (RACSignal<ValueType> *)sample:(RACSignal *)sampler RAC_WARN_UNUSED_RESULT;
- (RACSignal *)ignoreValues RAC_WARN_UNUSED_RESULT;
- (RACSignal<RACEvent<ValueType> *> *)materialize RAC_WARN_UNUSED_RESULT;
- (RACSignal *)dematerialize RAC_WARN_UNUSED_RESULT;
ReactiveObjC (六) ( RACSignal (Operations) )
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
- 文/潘曉璐 我一進(jìn)店門(mén)惫霸,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái),“玉大人葱弟,你說(shuō)我怎么就攤上這事壹店。” “怎么了芝加?”我有些...
- 文/不壞的土叔 我叫張陵硅卢,是天一觀的道長(zhǎng)。 經(jīng)常有香客問(wèn)我妖混,道長(zhǎng)老赤,這世上最難降的妖魔是什么? 我笑而不...
- 正文 為了忘掉前任制市,我火速辦了婚禮抬旺,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘祥楣。我一直安慰自己开财,他們只是感情好,可當(dāng)我...
- 文/花漫 我一把揭開(kāi)白布误褪。 她就那樣靜靜地躺著责鳍,像睡著了一般。 火紅的嫁衣襯著肌膚如雪兽间。 梳的紋絲不亂的頭發(fā)上历葛,一...
- 那天,我揣著相機(jī)與錄音嘀略,去河邊找鬼恤溶。 笑死,一個(gè)胖子當(dāng)著我的面吹牛帜羊,可吹牛的內(nèi)容都是我干的咒程。 我是一名探鬼主播,決...
- 文/蒼蘭香墨 我猛地睜開(kāi)眼讼育,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼帐姻!你這毒婦竟也來(lái)了?” 一聲冷哼從身側(cè)響起奶段,我...
- 序言:老撾萬(wàn)榮一對(duì)情侶失蹤饥瓷,失蹤者是張志新(化名)和其女友劉穎,沒(méi)想到半個(gè)月后忧饭,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體扛伍,經(jīng)...
- 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
- 正文 我和宋清朗相戀三年词裤,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了刺洒。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片鳖宾。...
- 正文 年R本政府宣布拇惋,位于F島的核電站,受9級(jí)特大地震影響抹剩,放射性物質(zhì)發(fā)生泄漏撑帖。R本人自食惡果不足惜,卻給世界環(huán)境...
- 文/蒙蒙 一澳眷、第九天 我趴在偏房一處隱蔽的房頂上張望胡嘿。 院中可真熱鬧,春花似錦钳踊、人聲如沸衷敌。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)缴罗。三九已至,卻和暖如春祭埂,著一層夾襖步出監(jiān)牢的瞬間面氓,已是汗流浹背。 一陣腳步聲響...
- 正文 我出身青樓航罗,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親屁药。 傳聞我的和親對(duì)象是個(gè)殘疾皇子粥血,可洞房花燭夜當(dāng)晚...
推薦閱讀更多精彩內(nèi)容
- 云家譜 六子齡http://yunjiapu.com/articles/detail/1089565江陰六氏宗譜 ...
- 臨摹了一幅冬天的森林,大雪悄無(wú)聲息落下缭嫡,林間有只小鹿缔御,在雪中歡快跳躍。 挺簡(jiǎn)單的妇蛀,來(lái)看看步驟吧耕突。 【準(zhǔn)備】 要用到...
- 鄂爾多斯 提起鄂爾多斯笤成,首先想到的是各式各樣的高檔羊毛衫,自己從來(lái)沒(méi)想過(guò)穿穿這種羊毛衫眷茁,更沒(méi)想過(guò)到鄂爾多斯去走一走...
- 英文原文在新的一年里投入工作上祈,大多數(shù)人都會(huì)考慮技能和職業(yè)選擇問(wèn)題培遵。本文收集了大量有關(guān)“最好編程語(yǔ)言”的統(tǒng)計(jì),讓我們...