flush

fun flush(newGeneration: Generation)

Marks the end of a generation. Everything queued is dropped and the schedule restarts.