Skip to content

Instantly share code, notes, and snippets.

@hayleyxyz
hayleyxyz / Debouncer.cs
Last active July 26, 2020 20:41 — forked from pmunin/Debouncer.cs
Action Debouncer for C#
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
using System.Timers;
using System.Threading;
using System.Windows.Threading;
/// <summary>
/// Event debouncer helps to prevent calling the same event handler too often (like mark Dirty or Invalidate)