The Realm Swift documentation mentions this repeatedly
If your app accesses Realm in an
async/awaitcontext, mark the code with
@MainActorto avoid threading-related crashes.
But there are no examples of where/when to use @MainActor.
Is there a best practice of how to integrate @MainActor with async/await calls? Maybe some code examples would help clarify the usage.