onDispose method
Callback when this executor is disposed.
Subclasses should override this, to implement any cleanup to be done before disposing.
Implementation
@override
Future<void> onDispose() async {
// dispose both trigger and task executors so it don't trigger any more.
triggerExecutor?.dispose();
taskExecutor?.dispose();
}