onStop method

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

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

Implementation

@override
@mustCallSuper
Future<bool> onStop() async {
  timer?.cancel();
  return true;
}