Threads and Grand Central Dispatch in Swift
Вставка
- Опубліковано 15 лип 2024
- In this video, we are going to take at Threading and Grand Central Dispatch in Swift.
We will investigate what threads and Queues are as well as the Grand Central Dispatch or CGD, the API for managing your queues. In the process, we will also touch on synchronous vs asyncrhonous code and finish off with an overview of DispatchGroups.
Starter Project: www.createchsol.com/StarterPr...
******* Download my StewartLynch UA-cam Channel Application - Free **********
stewartlynch.gumroad.com/l/obsjz
Stewart Lynch's UA-cam Channel
/ stewartlynch
CreaTECH Solutions Website
www.createchsol.com
Stewart Lynch's GitHub
github.com/StewartLynch - Наука та технологія
Great explanation
Thanks
yess. he sounds like a friendly robot.
No one is forcing you to watch.
@@StewartLynch once again, a friendly compliment.
you are a great teacher. better than most I have come across.
@@StewartLynch and your right, nobdoy is forcing me to watch. but my mom is addicted to meth, and i dont have a father., i have to take care of my little brother and ive been coding since 14, so i do kiind of have to watch your videos! thanks for being a jerk tho!
At 4.51 in the video, I mistakenly say that the .default QoS is between .utility and .userInteractive. The slide is accurate though. .default is between .utility and .userInitiated. Sorry about that.
you turned the light on for me with respect to threading... thank you.
I really don't think anyone can explain it better then you did, Great job.
Thanks
You explain things so well, I feel like I'm at my favorite professor's lecture. Thank you so much, this is a fantastic resource!
Thank you for your kind words
Awesome! Your explanation is so clear!
This was an awesome explanation, thank you.
Really really intuitive. Thank you very much Stewart 🙏🏻
Amazing explanation, thanks!
Best explanation with actual examples. Thank you for making these kind of tutorials. Great job.
Great video, thanks very much!
Much appreciated video. Well done.
Very helpful and greatly explained!
Very detailed explanation. That log utility is useful.
Great content.. its rare to see that there is no single dislike... Keep it up..
Wonderful explanation. My long time doubts about GCD have been clarified. Thank you!!
The greatest explanation of GCD i've found so far, Thanks
Thank you for this awesome video !
Thanks for making it so simple
This will really help me
👍
One of the best explanations for this topic out there
great video! thank you
Very nice explanation. Thanks
Best video on swift threading thank you :))
I don't know how to thank you, for training very nice 👏👏👏
You won a subscription and like because this video has a wonderful content. Keep up the good work.
Awesome, thank you!
Great resources for preparing for iOS interviews
By far, the best Swift programming content on UA-cam. Thanks for this excellent explanation.
Thanks for your comment
Awesome thanks 🙏
best explanation I have seen so far! Thank you.
Thanks, Glad you liked this video.
It's very useful for me
This is such a useful video! Thank you so much!
You're so welcome!
So nice, keep working
I'm a total newbie and I could follow this. So many other presenters don't put space between their spoken sentences. A learner's brain falls behind fast and never quite catches up. Not here. Great cadence Stewart.
Thanks. I was a school teacher in another life so I think I understand. I taught math and learned that I had to pause to let things sink in.
This is one of finest explanations out there for Queues. Quick question, what is an operation queue and where does it fall in what you have just shown in this video.
fully watched
Большое спасибо !
You are welcome
Takk!
Simple and concise explanation, thanks a lot! Can you pls clarify what is task, what is resume, what is NSoperation queue that you used in demo?
great
👏🏻👏🏻👏🏻
👍🏼👍🏼👍🏼
Dear Stewart.
When you use groups and when you declare a queue variable as Global, it means the main thread or queue will be notify?
start a discord server. my channel has over 500 members, and around 10-15 active at any given time.
We work on projects, and solve leet-code questions.
your tutor style would attract a valuable crowd. many would be ingratiated to be under your tutelage.
semper fi brother.
Contextually, My YT channel averages under 1K views. there is potential in what you are doing and more should know about you.
Ps: i would conjecture, given your teaching style and the lack of swifty ds and algo on YT is a benefactor to you market-share positioning (audience) within this cesspool-algo-drive-YT-world we live in.
OMG, the explanation for synchronous vs asynchronous was very bad, although it was technically correct. You explain it in a way that will make new programmers conflate asynch vs synch with serial vs concurrent.
Thanks for taking the time to comment. Perhaps you could point us all to a clearer definition that would make sense in this context. I agree that the concepts often get confused and misrepresented. Again, thanks for any feedback you can give that would provide more clarity. And if there are other aspects of this video that are unclear, please comment as well. It is ot my intention to confuse.
Default case for QoS is shown to be between .userInitiated and.utility but you have said that it is between .userInteractive and .utility. Which one is it?
it is between .UserInitiated and .Utility as it shows, not what I said. I wish there was a way to go back and correct audio on UA-cam without having delete and repost the video. Thanks for catching that.
Stewart Lynch thanks.
You can try putting this correction in a pinned post.
@@alimehmood8654 Done. Thanks Ali
The ContentViews dogVM var should be @StateObject instead of @ObservedObject.
Also there is error in getDogWithSession() at 17:00 in line 59. There is Data(contentsOf:) but we should just use data from completion handler.
Agreed, but this video was created BEFORE @StateObject was available. @StateObjecet was introduced in iOS 14 and I crated this video while still. using iOS 13
so synchronously .sync means - FIFO first in first out?