Y

YouLibs

Remove Touch Overlay

Swift Concurrency Lesson 5 - Parallel Concurrency with Async Let

Duration: 13:38Views: 2.6KLikes: 75Date Created: Dec, 2021

Channel: CodeWithChris

Category: Education

Tags: async swiftconcurrency in swiftasync awaitawait swiftswiftui rest apiswift async taskswift 5 async awaitswift get json from urlswift asyncswift awaitswift concurrencycompletion handlerusing json in swiftswift concurrency backwards compatibilityresult typeshow to use result in swiftios concurrencyswift completion handler resultswift fetch data from apiswift async awaitswift result handlerswift fetch jsonswift concurrency backport

Description: This is the 5th of 6 videos in the Swift Concurrency series. In this video we are going to extend that even further by introducing you to parallel asynchronous concurrency using Async let. We will create a new model to contain a user and all of that users posts in an array and use that model after fetching all users and all posts up front in two asynchronous calls running in parallel, when the UsersListView loads thus potentially, reducing the number of network requests. Links and Resources Swift Concurrency Series Playlist: youtube.com/playlist?list=PLMRqhzcHGw1a4jFHEBitPwCtAgPxWldfy Starter Code Completed Source code for Part 4: dropbox.com/s/4v15q70zuf6t91x/iOS-Concurrency-L4-Completed.zip?dl=0 Part 5 Completed Code: dropbox.com/s/1o9q4noff5iei4b/iOS-Concurrency-L5-Completed.zip?dl=0 Reduce, Filter and Remove All - Higher Order Functions: youtu.be/9wAhKodOyFI Timestamps 0:00 Introduction 1:21 Creating a new UserAndPosts Model 3:06 Perform 2 network requests one after another 8:56 Create Mock Data for the new model 11:08 Use Async Let for parallel, concurrent network requests 🚨 SPECIAL CWC+ OFFER FOR YOUTUBE: cwc.to/youtubeoffer MY FREE ONLINE COURSE: ⚑ How to make an app in 14 days - cwc.to/14days CWC+ PROGRAM: πŸ‘©β€πŸ’» All our courses in a learning path - cwc.to/plus WEEKLY UPDATES VIA EMAIL: βœ‰οΈ Every Saturday, receive an email digest of new content - cwc.to/newsletter CONNECT: 🌍 Website - codewithchris.com 😺 GitHub - github.com/codewithchris πŸ“Έ Instagram - instagram.com/codewithchris 🐦 Twitter - twitter.com/codewithchris ABOUT CODEWITHCHRIS: Hi I’m Chris! I’m dedicated to teaching fundamentals about how to make an app. This is important if you’re trying to land an iOS job, be a freelancer, increase or start a business with an app idea. On this channel and my website, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have learned to code and build apps on their own! cwc.to/reviews DID THESE LESSONS HELP YOU? Please let me know! - feedback.codewithchris.com ROADMAP: roadmap.codewithchris.com

Swipe Gestures On Overlay