Renamed afterNextFlush to afterNextTrigger to reflect its timing better.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>