onPause method

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

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

Implementation

@override
Future<bool> onPause() async {
  for (var executor in executors) {
    executor.pause();
  }
  return true;
}