GitHub - gh123man/Async-Channels: Channels for Swift concurrency
Async Channels
Performant channels for Swift concurrency.
Don't communicate by sharing memory; share memory by communicating
- Rob Pike
If you are familiar with golang and the go ecosystem, you can skip to the go comparisons section.
Channels are a typed conduit through which you can send and receive values - usually across threads or in this case, Swift async tasks. This library is modeled after go's channel behaviors.
Example
let msg = Channel<String>(capacity: 3)
let done = Channel<Bool>()
aw...
Read more at github.com