setOnClickListenerCooldown

inline fun View.setOnClickListenerCooldown(coolDown: Long = 1000, crossinline action: (view: View) -> Unit)

Sets an on click listener for a view, but ensures the action cannot be triggered more often than coolDown milliseconds.