kill method

  1. @override
Future<void> kill()
override

Forcibly terminates the process and releases resources.

Implementation

@override
Future<void> kill() async {
  try {
    _process.kill(ProcessSignal.sigkill);
  } on Object {
    // Ignore.
  }
  try {
    await _process.stdin.close();
  } on Object {
    // Ignore: stdin already closed.
  }
}