UniCoreFW

debounce_()

Enhanced debounce with max_wait support.

Implementation

Example

Expected output:

Source Code

def debounce_(func: Callable, wait: int, *, max_wait: Optional[int] = None, use_main_thread: bool = False) -> Callable: if max_wait is not None: return enhanced_debounce(func, wait, max_wait) else: # Use original implementation for backward compatibility return enhanced_debounce(func, wait)