mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Fixes “non-sendable type 'Notification?' cannot cross actor boundary” warning
This commit is contained in:
@@ -1494,7 +1494,8 @@ private extension MyAppsViewController
|
|||||||
|
|
||||||
if #available(iOS 15, *)
|
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
|
// Wait until _after_ didFetchSourceNotification
|
||||||
// to prevent incorrect update() animations.
|
// to prevent incorrect update() animations.
|
||||||
|
|||||||
Reference in New Issue
Block a user