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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access