initialize method

Future<bool> initialize()

Implementation

Future<bool> initialize() async {
  // ignore: unawaited_futures
  process.exitCode.then(_setExitCode);

  var anyOutputReadyCompleter = Completer<bool>();

  setupStdout(_buildOutputStream(OutputStreamType.stdout, process.stdout,
      _stdoutReadyFunction, anyOutputReadyCompleter));
  setupStderr(_buildOutputStream(OutputStreamType.stderr, process.stderr,
      _stderrReadyFunction, anyOutputReadyCompleter));
  setupOutputReadyType(_outputReadyType);

  return true;
}