Async/Await and MainActor Strategies
Deciding where and how to update the main thread.
Published in
13 min readApr 23, 2023
Pretty much every article that discusses Swift async/await will throw in a comment regarding @MainActor
and how it can be used to ensure that any updates to the user interface will occur on the main thread.
That’s all well and good… but just where should the @MainActor
attribute go? On the…