class TimeRefreshNotifier extends AnimationChangeAdapter implements QuietCloseable, ActiveTimeSpanChangeListener {

    @Override
    public void commit(AnimationState state, Phaser phaser)
    {
        phaser.register();
        ThreadUtilities.runBackground(() ->
        {
            try
            {
                myListener.refreshNow();
            }
            finally
            {
                phaser.arriveAndDeregister();
            }
        });
    }

    public  TimeRefreshNotifier(RefreshListener refreshListener, TimeManager timeManager, AnimationManager animationManager);

}