streamFromInputStream method
Stream<RunOutput>
streamFromInputStream(
- Stream<
RunInput> inputStream, { - RunnableOptions? options,
override
Streams the output of invoking the Runnable on the given inputStream
.
Implementation
@override
Stream<RunOutput> streamFromInputStream(
final Stream<RunInput> inputStream, {
final RunnableOptions? options,
}) async* {
if (_streamFunc != null) {
yield* _streamFunc(inputStream, options);
} else {
yield* inputStream.asyncMap((final input) async {
return invoke(input, options: options);
});
}
}