throttleLatest

fun <T> Flow<T>.throttleLatest(window: Duration): Flow<T>

Emits the most recent value once per window, dropping intermediate values.

The first value emits immediately; while the window is open, newer upstream values replace each other and only the latest one emits when the window elapses.