Infinite loops are every developer's nightmare, especially if they have disastrous consequences. You need to be mindful of infinite loops when working with Combine or any other reactive framework. The difficulty is that it isn't always obvious that you created an infinite loop. As a matter of fact, we introduced an infinite loop earlier in this series. You receive a bonus point if you can spot it.
Subscribe to Cocoacasts Plus to watch this episode.
Building Reactive Applications With Combine
Avoiding Infinite Loops
by Bart Jacobs in Programming
Swift 5
Xcode 12
iOS 14
Building Reactive Applications With Combine
-
03:12
-
2 What Is Reactive Programming
09:53
-
04:17
-
04:24
-
05:48
-
13 Using Publishers to Push Data
06:27
-
18 Reducing State with Subjects
08:35
-
20 Reactifying the Week View Controller
08:32
-
21 Combine and Diffable Data Sources
08:53
-
23 Subscribing to Settings Changes
11:08
-
07:25
-
06:48
-
07:35
-
27 Avoiding Infinite Loops
09:30
-
11:04