CodeCompletion.io

Episode 58: The Nintendo Ninjas, They Get Everyone

Welcome to Code Completion, Episode 58! 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.

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.

⭐️ This Week's Topics

🚧 #CompleteTheCode

This week's #CompleteTheCode:

How can you make all calls to `loadImage()` run concurrently, and return images in the same order?
1
2
3
4
5
6
7
8
9
10
11
// How can you make all calls to loadImage() run concurrently,
//   and return images in the same order?
func loadImages(_ ids: [UUID]) async {
    var images: [Image] = []
    for id in ids {
        let image = await loadImage(id)
        images.append(image)
    }
    
    return images
}

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

🎁 Sponsor

This week's episode of Code Completion is brought to you by Super Easy Timer! Search for Super Easy Timer on the Mac App Store today to give it a try!

📺 Watch the Stream