submit

fun submit(block: suspend () -> Unit)

Submits block, replacing any pending submission and restarting the window.

The block runs only if no newer submission and no cancel call arrives before the window elapses.

Cancellation: this function does not suspend and performs no cancellation checks. If the hosting scope is already cancelled, the submission is dropped.