Detached Tasks in Swift Explained (2023) - iOS Tips

  Рет қаралды 8,071

iOS Academy

iOS Academy

Күн бұрын

Пікірлер: 24
@iOSAcademy
@iOSAcademy Жыл бұрын
Lets connect linkedin.com/in/afrazsiddiqui
@marcoalonsoiosmar-academy
@marcoalonsoiosmar-academy Жыл бұрын
I´ll send you request :)
@raychen4458
@raychen4458 Жыл бұрын
want to see more real world examples of using detached tasks !!!
@iOSAcademy
@iOSAcademy Жыл бұрын
Coming soon
@baievertebagscompany
@baievertebagscompany Жыл бұрын
I have zero idea what this is, so I was intrigued so I clicked to view.
@portoalex
@portoalex Жыл бұрын
Thanks, with these new ways to set up code I always take a long time to actually understand which context to actually use it, do you plan on making simple examples with usage closer to real projects?
@iOSAcademy
@iOSAcademy Жыл бұрын
Glad it was helpful! And yes
@MassimilianoBonafede
@MassimilianoBonafede 3 ай бұрын
If you try to give some delays to the operation inside the printAsync function and you will add two printAsync inside the Task.detached at least one method (inside Task.detached) will be executed after the go method finishes. Can you explain why?
@benjiashamole610
@benjiashamole610 Ай бұрын
How are you able to call thing.printAsync before you instantiate thing??
@ix901x
@ix901x Жыл бұрын
Great video!, if you create a course about Await/Async Concurrency I will be interested
@iOSAcademy
@iOSAcademy Жыл бұрын
Great suggestion!
@AmitBiswastunebox
@AmitBiswastunebox Жыл бұрын
Well explained. Hi Afraz can you please make a tutorial on “ State Machine Design in Swift” ?
@iOSAcademy
@iOSAcademy Жыл бұрын
Sure thing
@AmitBiswastunebox
@AmitBiswastunebox Жыл бұрын
@@iOSAcademy Thank You Afraz
@ChristopherCricketWallace
@ChristopherCricketWallace Жыл бұрын
can these async tasks return a value? Can a background task return a value?
@itoptisweets9001
@itoptisweets9001 Жыл бұрын
Спасибо! Продолжай в том же духе! =)
@iOSAcademy
@iOSAcademy Жыл бұрын
Youre welcome
@vasudevaippili
@vasudevaippili Жыл бұрын
Informative
@iOSAcademy
@iOSAcademy Жыл бұрын
thanks
@KrassIankov
@KrassIankov Жыл бұрын
What if you change the priority of the detached task? I am guessing if it is a higher priority you might get 1,2,3
@iOSAcademy
@iOSAcademy Жыл бұрын
Correct
@jiajiu1631
@jiajiu1631 Жыл бұрын
why I get the result like this? 1 2 3 , not 1 3 2 class Thing { init() {} func printAsync(_ string: String) async { print(string) } func go() async { await thing.printAsync("thing 1") Task.detached(priority: .background) { await self.printAsync("thing 2") } await thing.printAsync("thing 3") } } let thing = Thing() Task { await thing.go() }
@victorriurean
@victorriurean Жыл бұрын
@iOSAcademy
@iOSAcademy Жыл бұрын
Thanks
Opaque Types in Swift Explained (2023) - iOS
7:48
iOS Academy
Рет қаралды 10 М.
How to use Task and .task in Swift | Swift Concurrency #4
34:24
Swiftful Thinking
Рет қаралды 26 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 33 МЛН
Каха и лужа  #непосредственнокаха
00:15
Indirect Enums in Swift - iOS Tutorial (2023)
9:37
iOS Academy
Рет қаралды 7 М.
Intro to Sendable in Swift 5 (2022)
11:23
iOS Academy
Рет қаралды 12 М.
Memory Leaks in iOS: Find, Diagnose, & Fix (2022)
12:44
iOS Academy
Рет қаралды 51 М.
Improve Xcode Build Speed By 10x (iOS Tips)
5:29
iOS Academy
Рет қаралды 10 М.
Your Brain 🧠 on Swift Concurrency - iOS Conf SG 2023
30:38
iOS Conf SG
Рет қаралды 10 М.
Type Erasure In Swift | iOS Development
15:19
iOS Academy
Рет қаралды 8 М.
How to use Actors and non-isolated in Swift  | Swift Concurrency #9
29:31
Swiftful Thinking
Рет қаралды 20 М.
Better Swift Closures Explained - Swift Tips (2023) - iOS
6:02
iOS Academy
Рет қаралды 7 М.
Log Analytics In Your iOS App (Swift)
16:51
iOS Academy
Рет қаралды 7 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29