Convert method to async.

This commit is contained in:
Brent Simmons 2024-05-05 22:35:18 -07:00
parent c46494de13
commit b4c8a6920f

View File

@ -52,10 +52,10 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
} }
} }
func windowScene(_ windowScene: UIWindowScene, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) { func windowScene(_ windowScene: UIWindowScene, performActionFor shortcutItem: UIApplicationShortcutItem) async -> Bool {
appDelegate.resumeDatabaseProcessingIfNecessary() appDelegate.resumeDatabaseProcessingIfNecessary()
handleShortcutItem(shortcutItem) handleShortcutItem(shortcutItem)
completionHandler(true) return true
} }
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) { func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {