with Debounce
fun <T : Any> withDebounce(delayDuration: Duration, scope: CoroutineScope, destinationFunction: suspend (T) -> Unit): (T) -> Unit
Return
destinationFunction wrapped with param value tracking for debouncing
Parameters
delay Duration
debounce period as Duration
scope
CoroutineScope for async task processing
destination Function
suspend function to debounce