forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453/2

Preview meta tags from the forums.swift.org website.

Linked Hostnames

3

Thumbnail

Search Engine Appearance

Google

https://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453/2

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

https://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453/2

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

https://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453/2

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
    • title
      Consuming an AsyncStream from multiple Tasks - #2 by Jon_Shier - Using Swift - Swift Forums
    • charset
      utf-8
    • description
      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. …
    • generator
      Discourse 3.5.0.beta9-dev - https://github.com/discourse/discourse version b479f8957284e7513fd62a645e8832e22c151404
    • theme-color
      #fff
  • Open Graph Meta Tags

    10
    • og:site_name
      Swift Forums
    • og:type
      website
    • og:image
      https://global.discourse-cdn.com/swift/original/1X/0a90dde98a223f5841eeca49d89dc9f57592e8d6.png
    • og:url
      https://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453/2
    • og:title
      Consuming an AsyncStream from multiple Tasks
  • Twitter Meta Tags

    5
    • twitter:card
      summary_large_image
    • twitter:image
      https://global.discourse-cdn.com/swift/original/3X/a/8/a897e24d0ae9f4c1db17724959bb441d87d6c778.png
    • twitter:url
      https://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453/2
    • twitter:title
      Consuming an AsyncStream from multiple Tasks
    • twitter:description
      I'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
    • position
      1
    • headline
      Consuming an AsyncStream from multiple Tasks
    • datePublished
      2022-01-05T21:50:46Z
    • articleSection
      Using Swift
    • keywords
      concurrency
  • Link Tags

    31
    • alternate nofollow
      https://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453.rss
    • apple-touch-icon
      https://global.discourse-cdn.com/swift/optimized/1X/0a90dde98a223f5841eeca49d89dc9f57592e8d6_2_180x180.png
    • canonical
      https://forums.swift.org/t/consuming-an-asyncstream-from-multiple-tasks/54453
    • icon
      https://global.discourse-cdn.com/swift/optimized/2X/6/610ef4c64700c53fad713dda8c9563c461d82e41_2_32x32.ico
    • url
      https://forums.swift.org/u/gabeshahbazian

Links

13