onStop method

  1. @override
Future<bool> onStop()
override

Callback when this executor is stopped. Returns true if successfully stopped, false otherwise.

Implementation

@override
Future<bool> onStop() async {
  // stop the trigger executor so it don't trigger any more.
  triggerExecutor?.stop();

  // stop the task executor
  taskExecutor?.stop();

  return true;
}