in core/src/main/java/org/apache/commons/functor/aggregator/AbstractTimedAggregator.java [461:477]
public final void stop() {
// cancel the task first
if (task != null) {
task.cancel();
task = null;
timer.purge(); // remove the reference to this task
}
// then the timer if needed
if (timer != null && timer != MAIN_TIMER) {
timer.cancel();
}
timer = null;
// finally remove the elements from the listeners list
if (timerListeners != null) {
timerListeners.clear();
}
}