序列化 RACSignal 执行
RACSerialCommand* command = [[RACSerialCommand alloc] initWithSignalBlock:^RACSignal*(id input){
NSLog(@"%@", input);
return [RACSignal empty];
}];
[command execute:@(1)];
[command execute:@(2)];
[command execute:@(3)];
// will output 1 2 3
RACSerialCommand 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile
pod "RACSerialCommand"
Hai Feng Kao, [email protected]
RACSerialCommand 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。