Swift 5: How to do Async/Await with Result and GCD

Why wait for Apple to add Async/Await to Swift when you can have it now?

Swift 5.0 brought several new language enhancements along with ABI stability, and one of those was adding Result to the standard library. Result gives us a simpler, clearer way of handling errors in complex code such as asynchronous APIs.

--

--

--

I write about Apple, Swift, and technology. I’m a Lead iOS engineer at CRi Solutions, a leader in cutting edge mobile corporate and financial applications.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

[July LeetCoding Challenge] #430. Flatten a Multilevel Doubly Linked List

Introduction to the Basics of Python 3-Part 2

Use this API To Obtain The IATA Codes of Cebu Pacific Air

Get The IATA Codes Of Fukuoka Airport Using An API

Network Organization Circle

Yost Engineering Driver Download For Windows

Yost engineering driver download for windows 8.1

A complete guide for building API’s with Ruby on Rails — Part I

Best Alternatives To Octoparse For Web Scraping API

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Michael Long

Michael Long

I write about Apple, Swift, and technology. I’m a Lead iOS engineer at CRi Solutions, a leader in cutting edge mobile corporate and financial applications.

More from Medium

MVVM-C Xcode Template to reduce development time

How to Write Images to Camera Roll in iOS

How to Write Images to Camera Roll in iOS

SOLID Principles in Swift — Liskov Substitution Principle

Balanced Brackets Solution in Swift | Hackerrank