mdedetrich commented on PR #2429: URL: https://github.com/apache/pekko/pull/2429#issuecomment-3490005734
Actually @He-Pin , I think you might be able to solve this issue by adding `def apply[T](elements: Array[T]*): javadsl.Source[T, NotUsed]` and `def apply[T](elements: immutable.Iterable[T]*): javadsl.Source[T, NotUsed]` which would then mean that `Source(Array(1, 2, 3), Array(4,5,6))` will translate to a stream that emits `1,2,3,4,5,6` as distinct elements, but the problem here would be in the very rare exception that someone wants to send raw Array's in a stream they are effectively unable to or they need to use `Source.single` with some extra operators. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
