AndyIbanez / andyibanez-com

Static website.
1 stars 0 forks source link

posts/mainactor-and-global-actors-in-swift/ #48

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

@MainActor and Global Actors in Swift • Andy Ibanez

https://www.andyibanez.com/posts/mainactor-and-global-actors-in-swift/

shurale85 commented 1 year ago

the @MainActor is the global actor that runs staff on main thread. And we can create custom global actor to implement some other logic, don't we? Or any global actor is about switching current thread? It is not clear for me why wemight need to create other global actor