| FlowOperationsCollectTIn, TOut1, TOut2, TMat Method |
Transform this stream by applying the given function
collector to each of the elements
on which the function is defined (read: returns not null) as they pass through this processing step.
Non-matching elements are filtered out.
Emits when the provided function collector is defined for the element
Backpressures when the function
collector is defined for the element and downstream backpressures
Completes when upstream completes
Cancels when downstream cancels
Namespace:
Akka.Streams.Dsl
Assembly:
Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public static Flow<TIn, TOut2, TMat> Collect<TIn, TOut1, TOut2, TMat>(
this Flow<TIn, TOut1, TMat> flow,
Func<TOut1, TOut2> collector
)
[<ExtensionAttribute>]
static member Collect :
flow : Flow<'TIn, 'TOut1, 'TMat> *
collector : Func<'TOut1, 'TOut2> -> Flow<'TIn, 'TOut2, 'TMat>
Parameters
- flow
- Type: Akka.Streams.DslFlowTIn, TOut1, TMat
TBD - collector
- Type: SystemFuncTOut1, TOut2
TBD
Type Parameters
- TIn
- TBD
- TOut1
- TBD
- TOut2
- TBD
- TMat
- TBD
Return Value
Type:
FlowTIn,
TOut2,
TMatTBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
FlowTIn,
TOut1,
TMat. 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