Functions for applying operators to signals and singal producers. Code is based on original implementation of |>
from RAC3.
func myOperator(producer: SignalProducer<Void, Error>) -> SignalProducer<Void, Error> {
return producer.on(started: {
print("started")
})
}
SignalProducer<Void, NoError>
.never
.apply(myOperator)
.start()
ReactiveCocoaApply is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ReactiveCocoaApply"
ReactiveCocoaApply is available under the MIT license. See the LICENSE file for more info.