Excellent tutorial! You're the best Swift teacher on KZbin
@alfredohdev10 ай бұрын
That info about checkCancellation is so important to know, thank you for giving the time to add that info in this video!
@lincolndickerson12932 жыл бұрын
Excellent presentation! This is a very useful feature. So many possibilities
@clewis92232 жыл бұрын
Only question, why didn’t you have to switch back to the main thread as in the other videos?
@mykosen56796 ай бұрын
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!
@josemanuelortizsanchez49832 жыл бұрын
Excellent tutorial, thanks!!
@federicoramos2 жыл бұрын
Thank you Nick! awesome Work!
@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
@mhmtkrnlk2 жыл бұрын
Wish they did this syntax like how we chain guard let .
@PiyushSharma-hs6zp2 жыл бұрын
Thanks a lot, your videos helps alot.
@pmjss2 жыл бұрын
why you prefer for each more than for in loop ?
@JeffreyShao-qiao Жыл бұрын
ForEach I believe is a View
@BenjaminEggerstedt2 жыл бұрын
I should treat myself with some sweet each time my pre-typed filename matches what you do.... :D Thank you!
@mehedi-angkur Жыл бұрын
how can i use async let for a void type function?
@subinsuresh2 жыл бұрын
Similar to dispatchgroup right?
@andresraigoza20822 жыл бұрын
Thank you so much!! 😀
@daviddavud7612 жыл бұрын
Thank you so much
@faikcoskuncakr74182 жыл бұрын
Thanks a lot
@AntonR87 ай бұрын
Looks like Nick is writing all the comments by himself 😆
@kavinda_dilshan_paramsoodi Жыл бұрын
No jokes in this video. :(
@SiamakAshrafi2 жыл бұрын
you just write "try await" for all the lets. Like this ... `let (image1, image2, image3, image4) = try await ( fetchImage1, fetchImage2, fetchImage3, fetchImage4)`