isParallel abstract method

bool isParallel()

Returns whether this stream, if a terminal operation were to be executed, would execute in parallel.

Calling this method after invoking a terminal stream operation method may yield unpredictable results.

Example

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

final parallelStream = stream.parallel();
print(parallelStream.isParallel()); // true

Implementation

bool isParallel();