I am not so convinced with RxSwift yet, and it's really hard to cleat understanding. After reviewing different materials, I cant' still work and manipulate sequences. On the whole I have problem with type converting:
Cannot convert return expression of type 'Observable<Bool>' to return type 'Observable<Void>' (aka 'Observable<()>')    
I have CocoaAction processing, and should return Observable<Void>
func stopProject() -> CocoaAction {
    return CocoaAction { _ in
        let stopProject = stop(project: self.projectId)
        return stopProject.asObservable() //wrong converting
    }
}
The stop function return Observable<Bool>
Finish view:
    return stop(project: self.projectId).flatMap { _ in
        Observable<Void>.empty()
    }
                let voidObservable = boolObservable.map { Void() }
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With