Skip to content

Commit 6177ba9

Browse files
committed
Refactor: Set default value for DebounceMs in DebouncerBase
1 parent 3768bbc commit 6177ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeOfChaos.Extensions/Debouncers/Regular/DebouncerBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CodeOfChaos.Extensions.Debouncers;
1010
// ---------------------------------------------------------------------------------------------------------------------
1111
public abstract class DebouncerBase<T> : IAsyncDisposable {
1212
protected const int DefaultDebounceMs = 100;
13-
protected int DebounceMs { get; init; }
13+
protected int DebounceMs { get; init; } = DefaultDebounceMs;
1414

1515
private readonly SemaphoreSlim _semaphore = new(1, 1);
1616
private readonly Lock _stateLock = new();

0 commit comments

Comments
 (0)