debounce

fun debounce(action: () -> Unit)

Debounces the given action by delaying its execution for the specified delay time. If the action is called before the delay time has passed since the last call, the action is not executed.

Parameters

action

The action to be executed after the delay has passed.