How to use Async Let to perform concurrent methods in Swift | Swift Concurrency #5

  Рет қаралды 16,269

Swiftful Thinking

Swiftful Thinking

Күн бұрын

Пікірлер: 23
@bruhmoment3731
@bruhmoment3731 2 жыл бұрын
Excellent tutorial! You're the best Swift teacher on KZbin
@alfredohdev
@alfredohdev 10 ай бұрын
That info about checkCancellation is so important to know, thank you for giving the time to add that info in this video!
@lincolndickerson1293
@lincolndickerson1293 2 жыл бұрын
Excellent presentation! This is a very useful feature. So many possibilities
@clewis9223
@clewis9223 2 жыл бұрын
Only question, why didn’t you have to switch back to the main thread as in the other videos?
@mykosen5679
@mykosen5679 6 ай бұрын
He hasn't covered actors yet, but basically the body property is already on the main thread due to it having the @MainActor annotation because of the View protocol. And since the Task gets its context from that, you know that you will be on the main thread. Note that fetchImage() will (most likely) be run on another thread because of it being marked as async, but after that returns, you'll be back on the main thread inside the Task
@光莒
@光莒 2 жыл бұрын
I love this video~ It's so clear to explain the detail of async-let ~~ thanks!
@josemanuelortizsanchez4983
@josemanuelortizsanchez4983 2 жыл бұрын
Excellent tutorial, thanks!!
@federicoramos
@federicoramos 2 жыл бұрын
Thank you Nick! awesome Work!
@sbuquet
@sbuquet Жыл бұрын
Hi I am new in swift, I would like to ask you. why are you doing a do catch on fetchImage if you are only throwing the same error? why not just let the error bubble up? great videos. thanks
@mhmtkrnlk
@mhmtkrnlk 2 жыл бұрын
Wish they did this syntax like how we chain guard let .
@PiyushSharma-hs6zp
@PiyushSharma-hs6zp 2 жыл бұрын
Thanks a lot, your videos helps alot.
@pmjss
@pmjss 2 жыл бұрын
why you prefer for each more than for in loop ?
@JeffreyShao-qiao
@JeffreyShao-qiao Жыл бұрын
ForEach I believe is a View
@BenjaminEggerstedt
@BenjaminEggerstedt 2 жыл бұрын
I should treat myself with some sweet each time my pre-typed filename matches what you do.... :D Thank you!
@mehedi-angkur
@mehedi-angkur Жыл бұрын
how can i use async let for a void type function?
@subinsuresh
@subinsuresh 2 жыл бұрын
Similar to dispatchgroup right?
@andresraigoza2082
@andresraigoza2082 2 жыл бұрын
Thank you so much!! 😀
@daviddavud761
@daviddavud761 2 жыл бұрын
Thank you so much
@faikcoskuncakr7418
@faikcoskuncakr7418 2 жыл бұрын
Thanks a lot
@AntonR8
@AntonR8 7 ай бұрын
Looks like Nick is writing all the comments by himself 😆
@kavinda_dilshan_paramsoodi
@kavinda_dilshan_paramsoodi Жыл бұрын
No jokes in this video. :(
@SiamakAshrafi
@SiamakAshrafi 2 жыл бұрын
you just write "try await" for all the lets. Like this ... `let (image1, image2, image3, image4) = try await ( fetchImage1, fetchImage2, fetchImage3, fetchImage4)`
When You Shouldn't Use Await Async in .NET
7:51
Nick Chapsas
Рет қаралды 54 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
Swift Concurrency Manifesto | Chris Lattner and Lex Fridman
10:59
Swift Concurrency | How To Use async/await Like The PROS
14:12
These Swift 6 Features Change a Lot! | @SwiftBird
17:10
The Swift Bird
Рет қаралды 6 М.
Fixing Your Dictionary Problem in .NET
9:19
Nick Chapsas
Рет қаралды 28 М.
How to use Global Actors in Swift (@globalActor) | Swift Concurrency #10
23:50
How to use async / await keywords in Swift  | Swift Concurrency #3
20:40
Swiftful Thinking
Рет қаралды 29 М.