This document provides an introduction to functional reactive programming (FRP). It discusses key concepts in FRP including streams, which represent events over time; signals, which emit and observe events; signal producers, which represent tasks that produce signals; and how to combine, manipulate and bind streams and signals to update UI and respond to events. It also covers memory management techniques like using disposables to free memory when observers are no longer needed.
25. Does not start it's
work if not asked
EliaszSawicki.com ( @EliSawic )
26. Producing
presenter.startWithSignal { (signal, _) in
signal.observeValues { idea in
print(idea)
}
signal.observeCompleted {
print("Time for a break")
}
}
EliaszSawicki.com ( @EliSawic )