Skip to content

Commit

Permalink
Updated deprecated methods (#2477)
Browse files Browse the repository at this point in the history
  • Loading branch information
takoikatakotako committed May 11, 2023
1 parent 9e182e6 commit 85932e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -21,7 +21,7 @@ example("catchErrorJustReturn") {
let sequenceThatFails = PublishSubject<String>()

sequenceThatFails
.catchErrorJustReturn("😊")
.catchAndReturn("😊")
.subscribe { print($0) }
.disposed(by: disposeBag)

Expand All @@ -44,7 +44,7 @@ example("catchError") {
let recoverySequence = PublishSubject<String>()

sequenceThatFails
.catchError {
.catch {
print("Error:", $0)
return recoverySequence
}
Expand Down
Expand Up @@ -126,7 +126,7 @@ example("takeWhile") {
let disposeBag = DisposeBag()

Observable.of(1, 2, 3, 4, 5, 6)
.takeWhile { $0 < 4 }
.take(while: { $0 < 4 })
.subscribe(onNext: { print($0) })
.disposed(by: disposeBag)
}
Expand All @@ -143,7 +143,7 @@ example("takeUntil") {
let referenceSequence = PublishSubject<String>()

sourceSequence
.takeUntil(referenceSequence)
.take(until: referenceSequence)
.subscribe { print($0) }
.disposed(by: disposeBag)

Expand Down Expand Up @@ -181,7 +181,7 @@ example("skipWhile") {
let disposeBag = DisposeBag()

Observable.of(1, 2, 3, 4, 5, 6)
.skipWhile { $0 < 4 }
.skip(while: { $0 < 4 })
.subscribe(onNext: { print($0) })
.disposed(by: disposeBag)
}
Expand Down

3 comments on commit 85932e1

@ThongchaiDonWanon
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Pod::Spec.new do |s|
    s.name = "RxBlocking"
    s.version = "6.6.0"
    s.summary = "RxSwift Blocking operators"
    s.description = <<-DESC
    Set of blocking operators for RxSwift. These operators are mostly intended for unit/integration tests
    with a couple of other special scenarios where they could be useful.

E.g.

Waiting for observable sequence to complete before exiting command line application.
DESC
s.homepage = "https://github.com/ReactiveX/RxSwift"
s.license = 'MIT'
s.author = { "Krunoslav Zaher" => "krunoslav.zaher@gmail.com" }
s.source = { :git => "https://github.com/ReactiveX/RxSwift.git", :tag => s.version.to_s }

s.requires_arc = true

s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.9'
s.watchos.deployment_target = '3.0'
s.tvos.deployment_target = '9.0'

s.source_files = 'RxBlocking//*.swift', 'Platform//.swift'
s.exclude_files = 'RxBlocking/Platform/**/
.swift'

s.dependency 'RxSwift', '6.6.0'
s.swift_version = '5.1'

s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES' }
end

@ThongchaiDonWanon
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ThongchaiDonWanon
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.