Mikey Ward

Handling Async Results

Mikey Ward | Feb 05, 2019

How do we work with errors in asynchronous Swift code?

Swift’s error-related syntax calls attention to possible errors through try and throws. These throwing errors and completion handlers have pros and cons, and can’t be used in all situations. Here we examine some strategies for writing elegant async error-handling code with closures and associated-value enumerations..

Questions answered during this screencast:

- How do I handle asynchronous errors and results?
- How to define nested Error types?

Basic knowledge or experience building iOS applications is recommended.

For the More Curious...

A similar approach from our blog
Swift Enumerations
Swift Error Handling
Swift Closures
BNR Guide to iOS
BNR Guide to Swift
iOS & Swift Courses

Subscribers Only

Transcripts are for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Subscribers Only

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Need Help?

If you get stuck, try starting a discussion with Big Nerd Ranch experts in the community tab.

Related Screencasts

Explore other screencasts related to this topic.