how do I map this
func save() -> SignalProducer<Void, NetworkError>
to
var saveAction: Action<AnyObject, Bool, NoError>
i'm a bit confused with the syntax
service.save()
.observeOn(QueueScheduler.mainQueueScheduler)
.map<Bool>( _ in true) // how to map void to bool
.flatMapError {
error in
// how to map to a NoError?
}
also, what should be the best practice in using actions? should the NetworkError bubble up to the controller so it can display the error in a Popup dialog?