
forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453/2
Preview meta tags from the forums.swift.org website.
Linked Hostnames
3Thumbnail

Search Engine Appearance
Consuming an AsyncStream from multiple Tasks
Hello! I am currently experimenting replacing our use of ReactiveSwift with async/await. One pattern we use in RS is to have a "Signal" type which is shared between a few different consumers to run different pipelines. …
Bing
Consuming an AsyncStream from multiple Tasks
Hello! I am currently experimenting replacing our use of ReactiveSwift with async/await. One pattern we use in RS is to have a "Signal" type which is shared between a few different consumers to run different pipelines. …
DuckDuckGo

Consuming an AsyncStream from multiple Tasks
Hello! I am currently experimenting replacing our use of ReactiveSwift with async/await. One pattern we use in RS is to have a "Signal" type which is shared between a few different consumers to run different pipelines. …
General Meta Tags
10- titleConsuming an AsyncStream from multiple Tasks - #2 by Jon_Shier - Using Swift - Swift Forums
- charsetutf-8
- descriptionHello! I am currently experimenting replacing our use of ReactiveSwift with async/await. One pattern we use in RS is to have a "Signal" type which is shared between a few different consumers to run different pipelines. …
- generatorDiscourse 3.5.0.beta9-dev - https://github.com/discourse/discourse version b479f8957284e7513fd62a645e8832e22c151404
- theme-color#fff
Open Graph Meta Tags
10- og:site_nameSwift Forums
- og:typewebsite
- og:imagehttps://global.discourse-cdn.com/swift/original/1X/0a90dde98a223f5841eeca49d89dc9f57592e8d6.png
- og:urlhttps://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453/2
- og:titleConsuming an AsyncStream from multiple Tasks
Twitter Meta Tags
5- twitter:cardsummary_large_image
- twitter:imagehttps://global.discourse-cdn.com/swift/original/3X/a/8/a897e24d0ae9f4c1db17724959bb441d87d6c778.png
- twitter:urlhttps://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453/2
- twitter:titleConsuming an AsyncStream from multiple Tasks
- twitter:descriptionI'm not sure any AsyncSequence is meant to have multiple consumers or whether that's left up to the sequence, but as you've found, AsyncStream doesn't support it. (@Philippe_Hausler or @David_Smith can speak to that more directly.) I believe the suggested solution is usually to vend separate streams for each consumer. I think creating your own wrapping sequence which supports multiple consumers may also work, if that's not a violation of the AsyncSequence contract.
Item Prop Meta Tags
12- position1
- headlineConsuming an AsyncStream from multiple Tasks
- datePublished2022-01-05T21:50:46Z
- articleSectionUsing Swift
- keywordsconcurrency
Link Tags
31- alternate nofollowhttps://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453.rss
- apple-touch-iconhttps://global.discourse-cdn.com/swift/optimized/1X/0a90dde98a223f5841eeca49d89dc9f57592e8d6_2_180x180.png
- canonicalhttps://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453
- iconhttps://global.discourse-cdn.com/swift/optimized/2X/6/610ef4c64700c53fad713dda8c9563c461d82e41_2_32x32.ico
- urlhttps://forums.swift.org/u/gabeshahbazian
Links
13- https://forums.swift.org
- https://forums.swift.org/c/swift-users/15
- https://forums.swift.org/categories
- https://forums.swift.org/guidelines
- https://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453