Skip to content

Commit 95793c2

Browse files
committed
Update RxSwift v6.0 deprecation
1 parent 8689b30 commit 95793c2

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Example/Pods
2-
Example/Podfile.lock
2+
Example/Podfile.lock
3+
*.xcuserstate

BeappCache/Classes/RxCacheManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ open class RxCacheManager {
3636

3737
return Disposables.create()
3838
}
39-
.subscribeOn(ConcurrentDispatchQueueScheduler(qos: .background))
39+
.subscribe(on: ConcurrentDispatchQueueScheduler(qos: .background))
4040
}
4141

4242
func buildAsyncObservableCaching<T>(asyncObservable: Single<T>, key: String, customExpirySecond: TimeInterval?) -> Single<CacheWrapper<T>> where T: Codable {

BeappCache/Classes/Strategy/AsyncOrCacheStrategy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AsyncOrCacheStrategy: CacheStrategyProtocol {
1313
func getStrategyObservable<T>(cacheObservable: Maybe<CacheWrapper<T>>, asyncObservable: Single<CacheWrapper<T>>) -> Observable<CacheWrapper<T>> where T: Codable {
1414
return asyncObservable
1515
.asObservable()
16-
.catchError({ (error) in
16+
.catch({ (error) in
1717
print("[ERROR] \(error)")
1818
return cacheObservable.asObservable().ifEmpty(switchTo: Observable.error(error))
1919
})
Binary file not shown.

0 commit comments

Comments
 (0)