Created
August 16, 2025 08:50
-
-
Save jacobsapps/da2829fe0ae55c08c142a63a4a4e9438 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@MainActor | |
func setupUI() async { | |
await someAsyncWork() | |
} | |
func someAsyncWork() async { | |
// Add breakpoint to test this at runtime - it's on the main thread! | |
try? await Task.sleep(for: .milliseconds(100)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment