ProcessWrapper constructor

ProcessWrapper(Process _delegate)

Constructs a ProcessWrapper object that delegates to the specified underlying object.

Implementation

ProcessWrapper(this._delegate)
    : _stdout = new StreamController<List<int>>(),
      _stderr = new StreamController<List<int>>(),
      _stdoutDone = new Completer<void>(),
      _stderrDone = new Completer<void>() {
  _monitorStdioStream(_delegate.stdout, _stdout, _stdoutDone);
  _monitorStdioStream(_delegate.stderr, _stderr, _stderrDone);
}