| SubFlowOperationsStatefulSelectManyTOut1, TOut2, TMat, TClosed Method |
Transform each input element into an Enumerable of output elements that is
then flattened into the output stream. The transformation is meant to be stateful,
which is enabled by creating the transformation function
mapConcaterFactory a new for every materialization —
the returned function will typically close over mutable objects to store state between
invocations. For the stateless variant see
SelectManyTOut1, TOut2, TMat, TClosed(SubFlowTOut1, TMat, TClosed, FuncTOut1, IEnumerableTOut2).
The returned Enumerable MUST NOT contain null values,
as they are illegal as stream elements - according to the Reactive Streams specification.
Emits when the mapping function returns an element or there are still remaining elements
from the previously calculated collection
Backpressures when downstream backpressures or there are still remaining elements from the
previously calculated collection
Completes when upstream completes and all remaining elements has been emitted
Cancels when downstream cancels
See also
SelectManyTOut1, TOut2, TMat, TClosed(SubFlowTOut1, TMat, TClosed, FuncTOut1, IEnumerableTOut2)
Namespace:
Akka.Streams.Dsl
Assembly:
Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public static SubFlow<TOut2, TMat, TClosed> StatefulSelectMany<TOut1, TOut2, TMat, TClosed>(
this SubFlow<TOut1, TMat, TClosed> flow,
Func<Func<TOut1, IEnumerable<TOut2>>> mapConcaterFactory
)
[<ExtensionAttribute>]
static member StatefulSelectMany :
flow : SubFlow<'TOut1, 'TMat, 'TClosed> *
mapConcaterFactory : Func<Func<'TOut1, IEnumerable<'TOut2>>> -> SubFlow<'TOut2, 'TMat, 'TClosed>
Parameters
- flow
- Type: Akka.Streams.DslSubFlowTOut1, TMat, TClosed
TBD - mapConcaterFactory
- Type: SystemFuncFuncTOut1, IEnumerableTOut2
TBD
Type Parameters
- TOut1
- TBD
- TOut2
- TBD
- TMat
- TBD
- TClosed
- TBD
Return Value
Type:
SubFlowTOut2,
TMat,
TClosedTBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SubFlowTOut1,
TMat,
TClosed. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also