Skip to content

Commit

Permalink
Replace GCD with Swift Concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Tsibulskiy authored and Dmitriy Tsibulskiy committed Nov 1, 2024
1 parent 3404070 commit 1a08319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ExtensionService/AuthStatusChecker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class AuthStatusChecker {
Task {
do {
let status = try await self.getCurrentAuthStatus()
DispatchQueue.main.async {
await MainActor.run {
notify(status.description, status == .ok)
}
} catch {
DispatchQueue.main.async {
await MainActor.run {
notify("\(error)", false)
}
}
Expand Down

0 comments on commit 1a08319

Please sign in to comment.