Skip to content

Commit 1a08319

Browse files
Dmitriy TsibulskiyDmitriy Tsibulskiy
authored andcommitted
Replace GCD with Swift Concurrency
1 parent 3404070 commit 1a08319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ExtensionService/AuthStatusChecker.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class AuthStatusChecker {
1515
Task {
1616
do {
1717
let status = try await self.getCurrentAuthStatus()
18-
DispatchQueue.main.async {
18+
await MainActor.run {
1919
notify(status.description, status == .ok)
2020
}
2121
} catch {
22-
DispatchQueue.main.async {
22+
await MainActor.run {
2323
notify("\(error)", false)
2424
}
2525
}

0 commit comments

Comments
 (0)