sequential abstract method

S sequential()

Returns an equivalent stream that is sequential.

May return itself, either because the stream was already sequential, or because the underlying stream state was modified to be sequential.

This is an intermediate operation.

Example

final parallelStream = DartStream.of([1, 2, 3, 4, 5]).parallel();
final sequentialStream = parallelStream.sequential();
print(sequentialStream.isParallel()); // false

Implementation

S sequential();