RxLegacy 0.2

RxLegacy 0.2

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最新版本2017年11月
SwiftSwift 版本3.0
SPM支持 SPM

Ivan Bruel 维护。



RxLegacy

Version
License
Platform

RxLegacy 是 RxSwift 的一组旧函数,用于更简单的块完成。
包括 doOnNext、doOnCompleted、doOnSubscribe、doOnError、doOnDispose、
subscribeNext、subscribeError、subscribeCompleted、subscribeDispose 和 mapVoid。
还包含与 Result 相关的子依赖项,例如,subscribeSucccess、
subscribeFailure、doOnFailure 和 doOnSucccess。

示例

let observable = Observable.just("hello")

observable
  .doOnNext { print($0) }
  .doOnError { print("error: \($0)") }
  .addDisposableTo(disposeBag)

安装

RxLegacy 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod "RxLegacy"

或者

pod "RxLegacy/RxResult"

作者

ivanbruel, [email protected]

许可证

RxLegacy 受 MIT 许可证保护。有关更多信息,请参阅 LICENSE 文件。