From f19ae2f4220fff23f052a06c99030d77e8bfec06 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Tue, 30 May 2023 13:00:18 -0500 Subject: [PATCH] =?UTF-8?q?Fixes=20=E2=80=9Cnon-sendable=20type=20'Notific?= =?UTF-8?q?ation=3F'=20cannot=20cross=20actor=20boundary=E2=80=9D=20warnin?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AltStore/My Apps/MyAppsViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AltStore/My Apps/MyAppsViewController.swift b/AltStore/My Apps/MyAppsViewController.swift index 4011fab4..56a1330c 100644 --- a/AltStore/My Apps/MyAppsViewController.swift +++ b/AltStore/My Apps/MyAppsViewController.swift @@ -1494,7 +1494,8 @@ private extension MyAppsViewController if #available(iOS 15, *) { - for await _ in NotificationCenter.default.notifications(named: AppManager.didFetchSourceNotification) + // .map { $0.name } to avoid "non-sendable type 'Notification?' cannot cross actor boundary" warning. + for await _ in NotificationCenter.default.notifications(named: AppManager.didFetchSourceNotification).map({ $0.name }) { // Wait until _after_ didFetchSourceNotification // to prevent incorrect update() animations.