O'Reilly logo

Swift Functional Programming - Second Edition by Dr. Fatih Nayebi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Signal producers

A signal producer creates signals and performs side-effects. SignalProducer can be used to represent operations, or tasks such as network requests, where each invocation of start() will create a new underlying operation and allow the caller to observe the result. Unlike a signal, no work is started (and thus no events are generated) until an observer is attached, and the work is restarted for each additional observer.

Starting a signal producer returns a disposable that can be used to interrupt / cancel the work associated with the produced signal.

Signal producers can also be manipulated via operations such as map, filter, and reduce. Every signal operation can be lifted to operate upon signal producers instead, using the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required