home.social

#notificationcenter — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #notificationcenter, aggregated by home.social.

fetched live
  1. #Swift #CoreData #Combine #Concurrency #AsyncSequence #NotificationCenter

    Can anyone more familiar with above topics help me understand what’s going on here?

    I thought that NotificationCenter Combine-based and AsyncSequence-based API-s behave exactly the same. Now I hit a case where they don’t. Their behavior differs based on whether I give it the sending object or not.

    Why?

  2. #Swift #CoreData #Combine #Concurrency #AsyncSequence #NotificationCenter

    Can anyone more familiar with above topics help me understand what’s going on here?

    I thought that NotificationCenter Combine-based and AsyncSequence-based API-s behave exactly the same. Now I hit a case where they don’t. Their behavior differs based on whether I give it the sending object or not.

    Why?

  3. #Swift #SwiftUI #Concurrency #StateObject #NotificationCenter

    Just ran into a question on how to implement NotificationCenter long-running listeners with modern AsyncSequence API, and have them torn down correctly. This seems to work.

    forums.swift.org/t/deinit-not-

  4. #Swift #SwiftUI #Concurrency #StateObject #NotificationCenter

    Just ran into a question on how to implement NotificationCenter long-running listeners with modern AsyncSequence API, and have them torn down correctly. This seems to work.

    forums.swift.org/t/deinit-not-