stderr property
override
The standard error stream of the process as a Stream
.
NOTE:
stdin
, stdout
, and stderr
are implemented using pipes between
the parent process and the spawned subprocess. These pipes have limited
capacity. If the subprocess writes to stderr or stdout in excess of that
limit without the output being read, the subprocess blocks waiting for
the pipe buffer to accept more data. For example:
import 'dart:io';
main() async {
var process = await Process.start('cat', ['largefile.txt']);
// The following await statement will never complete because the
// subprocess never exits since it is blocked waiting for its
// stdout to be read.
await process.stderr.forEach(print);
}
Implementation
@override
Stream<List<int>> get stderr => _stderr.stream;