pixel, “To use for await item in streamOfItems {...}, you need an AsyncStream. It is very common that you already have an existing Combine publisher, and you want to use the nice Swift Concurrency syntax.”
#Swift #Asynchronous #Programming #macOS #iOS
https://samwize.com/2024/05/06/how-to-create-asyncstream-with-a-publisher/