2019-04-26a few seconds read (About 30 words)How to map from Swift 5 Resul to RxSwift PublishSubjectIssue #214 12345678910extension Result { func to(subject: PublishSubject<Success>) { switch self { case .success(let value): subject.onNext(value) case .failure(let error): subject.onError(error) } }}#swiftrx