want to see more real world examples of using detached tasks !!!
@iOSAcademy Жыл бұрын
Coming soon
@baievertebagscompany Жыл бұрын
I have zero idea what this is, so I was intrigued so I clicked to view.
@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 Жыл бұрын
Glad it was helpful! And yes
@MassimilianoBonafede3 ай бұрын
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Ай бұрын
How are you able to call thing.printAsync before you instantiate thing??
@ix901x Жыл бұрын
Great video!, if you create a course about Await/Async Concurrency I will be interested
@iOSAcademy Жыл бұрын
Great suggestion!
@AmitBiswastunebox Жыл бұрын
Well explained. Hi Afraz can you please make a tutorial on “ State Machine Design in Swift” ?
@iOSAcademy Жыл бұрын
Sure thing
@AmitBiswastunebox Жыл бұрын
@@iOSAcademy Thank You Afraz
@ChristopherCricketWallace Жыл бұрын
can these async tasks return a value? Can a background task return a value?
@itoptisweets9001 Жыл бұрын
Спасибо! Продолжай в том же духе! =)
@iOSAcademy Жыл бұрын
Youre welcome
@vasudevaippili Жыл бұрын
Informative
@iOSAcademy Жыл бұрын
thanks
@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 Жыл бұрын
Correct
@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() }