How to accomplish the equivalent of SelectManyAsync in a Flow #6933
Replies: 1 comment 1 reply
-
I think a lot of this depends on what you mean by 'asynchronusly emit multiple output elements of type S'. Are you talking about a stage that Gets 1 |
Beta Was this translation helpful? Give feedback.
-
Hello. I am just starting into learning Akka.NET streams and am looking for help particularly with async/await and creating Sources and Flows.
My scenario is I will have one or more Source stages that need to emit multiple output elements of type N asynchronously, as they will be using async/await calls. Those will lead to a second Flow stage which will accept the input elements of type N and asychronously emit multiple output elements of type S for each input element. I currently have both of these operations implemented as IAsyncEnumerable functions.
RunAsAsyncEnumerable
on Source and it sounds like that would work, but what if I have multiple Sources?SelectManyAsync
Flow stage but I do not see one. Am I missing an easy way to transform one input type to a different type of many outputs asynchronously?Thank you for any help you can provide!
Beta Was this translation helpful? Give feedback.
All reactions