onRestart method

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

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

Implementation

@override
Future<bool> onRestart() async {
  await subscription?.cancel();
  return true;
}