You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
409 B
22 lines
409 B
1 year ago
|
using System;
|
||
|
using NzbDrone.Common.TPL;
|
||
|
|
||
|
namespace NzbDrone.Test.Common
|
||
|
{
|
||
|
public class MockDebouncer : Debouncer
|
||
|
{
|
||
|
public MockDebouncer(Action action, TimeSpan debounceDuration)
|
||
|
: base(action, debounceDuration)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public override void Execute()
|
||
|
{
|
||
|
lock (_timer)
|
||
|
{
|
||
|
_action();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|