onStop method

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

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

Implementation

@override
Future<bool> onStop() async {
  _durationTimer?.cancel();
  await _bufferingStreamSubscription?.cancel();

  return await super.onStop();
}