I use await MainActor.run { main thread stuff } instead of DispatchQueue.main.async when I am in an async func. Is this comparable to Task { @MainActor in main thread stuff }, which is really new to me, or are there differences?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: