submit

fun submit(work: () -> Unit)

Cancels the previous work and launches a new coroutine containing the new work.


fun submit(debounceMs: Long, work: () -> Unit)

Like submit, but debounced by the given period instead of the one this Debouncer was created with.