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 {
  await _subscription?.cancel();
  await super.onPause();
  return true;
}