From ab4c845d46aea0ece940daf9bfb01d27f37e9550 Mon Sep 17 00:00:00 2001 From: Scott Gardner Date: Wed, 8 Jun 2016 06:35:10 -0500 Subject: [PATCH] Minor update to Rx.playground --- .../Contents.swift | 2 +- .../Contents.swift | 16 ++++++++-------- RxExample/RxExample.xcodeproj/project.pbxproj | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Rx.playground/Pages/Connectable_Operators.xcplaygroundpage/Contents.swift b/Rx.playground/Pages/Connectable_Operators.xcplaygroundpage/Contents.swift index 5f3dc4fe..d7637db0 100644 --- a/Rx.playground/Pages/Connectable_Operators.xcplaygroundpage/Contents.swift +++ b/Rx.playground/Pages/Connectable_Operators.xcplaygroundpage/Contents.swift @@ -31,7 +31,7 @@ func sampleWithoutConnectableOperators() { } } -// sampleWithoutConnectableOperators() // ⚠️ Uncomment to run this example; comment to stop running +//sampleWithoutConnectableOperators() // ⚠️ Uncomment to run this example; comment to stop running /*: > `interval` creates an `Observable` sequence that emits elements after each `period`, on the specified scheduler. [More info](http://reactivex.io/documentation/operators/interval.html) ![](http://reactivex.io/documentation/operators/images/interval.c.png) diff --git a/Rx.playground/Pages/Error_Handling_Operators.xcplaygroundpage/Contents.swift b/Rx.playground/Pages/Error_Handling_Operators.xcplaygroundpage/Contents.swift index 2662feb8..0383aa15 100644 --- a/Rx.playground/Pages/Error_Handling_Operators.xcplaygroundpage/Contents.swift +++ b/Rx.playground/Pages/Error_Handling_Operators.xcplaygroundpage/Contents.swift @@ -40,10 +40,10 @@ example("catchErrorJustReturn") { example("catchError") { let disposeBag = DisposeBag() - let sequenceThatErrors = PublishSubject() + let sequenceThatFails = PublishSubject() let recoverySequence = PublishSubject() - sequenceThatErrors + sequenceThatFails .catchError { print("Error:", $0) return recoverySequence @@ -51,18 +51,18 @@ example("catchError") { .subscribe { print($0) } .addDisposableTo(disposeBag) - sequenceThatErrors.onNext("😬") - sequenceThatErrors.onNext("😨") - sequenceThatErrors.onNext("😡") - sequenceThatErrors.onNext("🔴") - sequenceThatErrors.onError(Error.Test) + sequenceThatFails.onNext("😬") + sequenceThatFails.onNext("😨") + sequenceThatFails.onNext("😡") + sequenceThatFails.onNext("🔴") + sequenceThatFails.onError(Error.Test) recoverySequence.onNext("😊") } /*: ---- ## `retry` - Recovers repeatedly Error events by rescribing to the `Observable` sequence, indefinitely. [More info](http://reactivex.io/documentation/operators/retry.html) + Recovers repeatedly Error events by resubscribing to the `Observable` sequence, indefinitely. [More info](http://reactivex.io/documentation/operators/retry.html) ![](https://raw.githubusercontent.com/kzaher/rxswiftcontent/master/MarbleDiagrams/png/retry.png) */ example("retry") { diff --git a/RxExample/RxExample.xcodeproj/project.pbxproj b/RxExample/RxExample.xcodeproj/project.pbxproj index f9747599..76a70222 100644 --- a/RxExample/RxExample.xcodeproj/project.pbxproj +++ b/RxExample/RxExample.xcodeproj/project.pbxproj @@ -865,7 +865,7 @@ C8CC3E731C95CB5300ABA17E /* _RXObjCRuntime.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = _RXObjCRuntime.m; sourceTree = ""; }; C8CC3E741C95CB5300ABA17E /* CLLocationManager+Rx.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "CLLocationManager+Rx.swift"; sourceTree = ""; }; C8CC3E761C95CB5300ABA17E /* ControlEvent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ControlEvent.swift; sourceTree = ""; }; - C8CC3E771C95CB5300ABA17E /* ControlProperty.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ControlProperty.swift; sourceTree = ""; }; + C8CC3E771C95CB5300ABA17E /* ControlProperty.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ControlProperty.swift; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; C8CC3E791C95CB5300ABA17E /* ControlEvent+Driver.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "ControlEvent+Driver.swift"; sourceTree = ""; }; C8CC3E7A1C95CB5300ABA17E /* ControlProperty+Driver.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "ControlProperty+Driver.swift"; sourceTree = ""; }; C8CC3E7B1C95CB5300ABA17E /* Driver+Operators+arity.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Driver+Operators+arity.swift"; sourceTree = ""; };