Skip to content

DiGi.UI.WPF.Core.Classes

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.UI.WPF.Core.Classes Namespace

Classes

Debouncer Class

Provides functionality to debounce actions, ensuring that a specified action is executed only after a certain amount of time has passed since the last request.

public sealed class Debouncer

Inheritance System.Object → Debouncer

Constructors

Debouncer(int) Constructor

Initializes a new instance of the Debouncer class.

public Debouncer(int delay=1000);

Parameters

delay System.Int32

The interval in milliseconds to wait before executing the debounced action.

Methods

Debouncer.Run(Action) Method

Schedules the specified action for execution after the debounce interval has elapsed. If this method is called again before the timer expires, the previous request is canceled and the timer resets.

public void Run(System.Action action);

Parameters

action System.Action

The action to be executed once the debounce period completes.

Clone this wiki locally