Swift: Actors Introduction (2023, Xcode 13) - iOS

preview_player
Показать описание
In this video we will do a brief introduction of Actors in Swift. Recently introduced alongside async await patterns, actors help simplify concurrency in your iOS projects. They help to synchronize calls, enforce threads/queues, and a whole lot more. We will work in Xcode 13 with the latest version of Swift.

** Popular Series

** Get Skillshare free for 2 Months and learn iOS

** Manage all your investments from app earnings on Betterment!

** Grow your own Youtube tech channel with TubeBuddy:

#swift #actors #asyncAwait
Рекомендации по теме
Комментарии
Автор

"we're gonna call this 'Actor' because we're super creative on this channel" got me 😂😂

BABEENGINEER
Автор

I'm not using async await for our app yet because of backwards compatibility of previous ios versions, however I have used it in personal projects and I love it.
Actors seem really powerful so thanks for the video, seeing a new concept pop up on my recommended is a good way to learn when you don't have time to watch all the wwdc videos.

CombuskenKid
Автор

Please add more detailed tutorial for this bro! Its amazing… i want to learn more from you how to implement actors practically in real project

timotiusleonardo
Автор

Love the content and your channel’s consistency, bro! 👍🏼

DoubleCheapBurger
Автор

Do we have to use async/await with actors? or can we use actors without it?

BABEENGINEER
Автор

Hi Afraz I think we need more video regarding Async, Actor.

AmitBiswastunebox
Автор

Actor is more complex than using serial queue and async.

RXGLine
Автор

Hey, thanks for the video! Just a little note (hopefully I'm not mistaken): the queue that you've created is serial by default so there's no need to use sync

sshnee
Автор

Question...


Thanks, great vids 🙏

dream_emulator
Автор

Thanks, man..
Keep up the good work! 🤟🏻

njunior
Автор

race condition in serial queue? im not sure there was any problem, if you store a, b, c and then want to get c, your task will be executed in order(because that is a Serial Queue, first in first out), and you will get a right c value.

andreygluhih
Автор

almost 46K subs! You're going to the moon, baby!

ChristopherCricketWallace
Автор

So this basically replaces the semaphores? Also your teaching is very great.

xBiscuit
Автор

so basically actor encapsulates a class and convert every method to async?

MrTalhakhan
Автор

Is there a reason you did not define User as a struct to get the initialiser for free, remove mutation etc? Is there some limitation here around actor or async await?

seamieshame
Автор

I just like to know how the AsyncStream can replace Combine' Pub/sub pattern, If you can make a video on it, that would be really helpful.

Also please include ads in your video, just to support you I ll watch entire ads on your videos. Thanks

nasir
Автор

Hey! Could you please do a video on how to add swipe actions to a collection view? I searched everywhere but I can’t find it 😭

luki
Автор

Playground execution failed:

error: execution stopped with unexpected state.
error: Execution was interrupted.
The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.

momentoelectrico
Автор

I get this warning:No 'async' operations occur within 'await' expression. Xcode 13.2

khaledannajar