| SourceFromEnumeratorT Method |
Helper to create
SourceTOut, TMat from
IEnumeratorT.
Example usage: Source.FromEnumerator(() => Enumerable.Range(1, 10))
Start a new
SourceTOut, TMat from the given function that produces an
IEnumerableT.
The produced stream of elements will continue until the enumerator runs empty
or fails during evaluation of the
[!:IEnumerator<T>.MoveNext] method.
Elements are pulled out of the enumerator in accordance with the demand coming
from the downstream transformation steps.
Namespace:
Akka.Streams.Dsl
Assembly:
Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public static Source<T, NotUsed> FromEnumerator<T>(
Func<IEnumerator<T>> enumeratorFactory
)
static member FromEnumerator :
enumeratorFactory : Func<IEnumerator<'T>> -> Source<'T, NotUsed>
Parameters
- enumeratorFactory
- Type: SystemFuncIEnumeratorT
TBD
Type Parameters
- T
- TBD
Return Value
Type:
SourceT,
NotUsedTBD
See Also