Convert functions in CloudKitAccountDelegate to async await.

This commit is contained in:
Brent Simmons
2024-04-15 21:02:35 -07:00
parent ab7c594f3e
commit fbfb00cd05
5 changed files with 432 additions and 776 deletions

View File

@@ -63,6 +63,10 @@ public extension Notification.Name {
numberOfTasks = numberOfTasks + n
}
public func addTask() {
addToNumberOfTasks(1)
}
public func addToNumberOfTasksAndRemaining(_ n: Int) {
assert(Thread.isMainThread)
numberOfTasks = numberOfTasks + n