submitSuspendable

fun submitSuspendable(work: suspend () -> Unit)

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


fun submitSuspendable(debounceMs: Long, work: suspend () -> Unit)

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