Really quickly this morning, I pulled out some swift async helpers I've been using in some personal apps into a separate repo, mostly to make it easier to keep them all in sync. I published it at https://forge.younata.com/you/AsyncExtensions

Probably the most interesting thing there is AsyncMultiChannel. Which is like https://github.com/apple/swift-async-algorithms/blob/main/Sources/AsyncAlgorithms/AsyncAlgorithms.docc/Guides/Channel.md, but it supports multiple subscribers. I should rename it, because it's intended to be used in more of a pub-sub architecture than as 1-1 communication.

#SwiftLang #SwiftConcurrency

AsyncExtensions

Async Extensions for Swift

forge.younata.com
index.htmx/Sources/index_htmx/Services/Publisher.swift at master

index.htmx - Lightweight server-side rendered dashboard.

Codeberg.org