shutdownNow method

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

Kill the spawned process immediately irrespective of weather the current inputs are processed or not.

Implementation

@override
Future<void> shutdownNow() async {
  _isActive = false;

  // Mass murder.
  _isolate.kill(priority: Isolate.immediate);
  _processingComplete.complete();

  // Clean up connections to allow Main Isolate to exit.
  _fromProcessPort.close();
}