Modern Concurrency: Getting Started

Oct 18 2022 Swift 5.5, iOS 15, Xcode 13.4

Part 1: Asynchronous Code

6. Additional Error Handling

Episode complete

Play next episode

Save for later
About this episode
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 5. Using AsyncSequence in Views Next episode: 7. Conclusion

This video Additional Error Handling was last updated on Oct 18 2022

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a Professional subscription.

Your challenge is to handle one more error. What if the server stops while you’re in the live ticker view?

Reset tickerSymbols array

In LittleJohnModel, in startTicker, below the for loop, I added this code:

await {
  tickerSymbols = []
.onChange(of: model.tickerSymbols.count) { newValue in
  if newValue == 0 {