-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Hello!
Maybe this is a stupid question but I haven't been able to solve it as of yet.
I have something like
async {
let report = try await(self.reportStore.getReport())
//update UI
}
As I am inside the async I am not in the main thread and get whacky behaviour on the UI. But if I call the await in the main thread I get a deadlock on the semaphore wait. what should I do if I want to get back to the main thread with my result?
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels