onPause method

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

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

Implementation

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