GitHub user He-Pin deleted a comment on the discussion: Memory leak when using 
`flatMapPrefix`/`prefixAndTail` with `Concat`

@queimadus Happy New Year, I have come out with an idea.

```scala
  def concatAllDeferred[U >: Out](those: Graph[SourceShape[U], _]*): Repr[U] =
    concatLazy(Source.lazySource(
      () => Source(those)
        .flatMapConcat(ConstantFun.scalaIdentityFunction)),
      detached = false)
```

<img width="1175" alt="image" 
src="https://github.com/user-attachments/assets/c39fdccd-31f7-4f72-b5b4-3a7a6ec1a499";
 />


GitHub link: 
https://github.com/apache/pekko/discussions/1566#discussioncomment-11705152

----
This is an automatically sent email for notifications@pekko.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@pekko.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to