Method WithCaptures
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
WithCaptures<TCaptures>(Func<LoopedStream<T>, (Stream<T> Stream, TCaptures Captures)>)
Loop a stream and return a value tuple containing the resulting stream and captures.
[Pure]
public (Stream<T> Stream, TCaptures Captures) WithCaptures<TCaptures>(Func<LoopedStream<T>, (Stream<T> Stream, TCaptures Captures)> f)
Parameters
fFunc<LoopedStream<T>, (Stream<T> Stream, TCaptures Captures)>A function which takes the stream loop and returns a value tuple containing the resulting stream and captures.
Returns
Type Parameters
TCapturesThe type of the captures to return.