libb.debounce

debounce(wait)[source]

Decorator to debounce function calls.

Waits wait seconds before calling function, cancels if called again.

Parameters:

wait (float) – Seconds to wait before executing.

Returns:

Decorator function.