The Frontier logo The Frontier logo
Mikey Ward

Handling Async Results

Mikey Ward | Apr 16, 2018

How do we work with errors in asynchronous Swift code?

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.

A similar approach from our blog
Swift Enumerations
Swift Error Handling Swift Closures