Episode 48

The Announcement Announcement

00:00:00
/
01:00:09

September 28th, 2021

1 hr 9 secs

Season 1

Your Hosts
Tags

About this Episode

Welcome to Code Completion, Episode 48! We are a group of iOS developers and educators hoping to share what we love most about development, Apple technology, and completing your code!

Follow us @CodeCompletion on Twitter to hear about our upcoming livestreams, videos, and other content.

Today, we discuss:

Also, join us for #CompleteTheCode and Compiler Error, two segments that test both your knowledge and our knowledge on Swift, Apple, and all things development!

Your hosts for this week:

Be sure to also sign up to our monthly newsletter, where we will recap the topics we discussed, reveal the answers to #CompleteTheCode, and share even more things we learned in between episodes.

You are what makes this show possible, so please be sure to share this with your friends and family who are also interested in any part of the app development process.

Sponsor

This week's episode of Code Completion is brought to you by Johnny B's Bon Voyage eCommerce App course. Visit https://bon-voyage.app/course and be sure to follow Bon Voyage's instructor @jonnybcodes on Twitter to learn more and stay up to date with all his courses!

Complete the Code

How would you transform the code below to use the new async/await pattern?

// How would you transform the code below to use the new async/await pattern?

print("Preparing request…")

urlSession.dataTask(with: httpRequest) { data, response, error in
    DispatchQueue.main.async {
        print("Received response: \(response)")
    }
}.resume()

print("Sent request!")

Be sure to tweet us with hashtag #CompleteTheCode if you know the answer!