Elektrine lite

← Feed

@younata@hachyderm.io

Post #1183469

2026-04-05 17:15 UTC

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

Replies (1)

  • @Cyberbeni@mastodon.art 2026-04-05 17:39

    @younata This is my version for "AsyncMultiChannel": https://codeberg.org/Cyberbeni/index.htmx/src/branch/master/Sources/index_htmx/Services/Publisher.swift

    Open ##1287367