Skip to content

Commit a3f74bb

Browse files
committed
Fix macOS 13 compatibility
Remove asyncAndWait which is unavailable on macOS < 14. Using sync instead, which has equivalent behavior.
1 parent 4a3cb13 commit a3f74bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CodeEditSourceEditor/Extensions/DispatchQueue+dispatchMainIfNot.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extension DispatchQueue {
3131
if Thread.isMainThread {
3232
return item()
3333
} else {
34-
return DispatchQueue.main.asyncAndWait(execute: item)
34+
return DispatchQueue.main.sync(execute: item)
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)