Skip to content

Commit d49f6bc

Browse files
committed
Fix warning for observeOn
1 parent cdb046a commit d49f6bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RxController/Classes/RxControllerEvent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public struct RxControllerEvent {
5959
extension ObservableType where Element == RxControllerEvent {
6060

6161
public func value<T>(of identifier: RxControllerEvent.Identifier, type: T.Type = T.self) -> Observable<T?> {
62-
return observeOn(MainScheduler.asyncInstance).filter {
62+
return observe(on: MainScheduler.asyncInstance).filter {
6363
$0.identifier.id == identifier.id
6464
}.map {
6565
$0.value as? T

0 commit comments

Comments
 (0)