mirror of
https://github.com/azaion/annotations.git
synced 2026-04-23 02:46:30 +00:00
gallery manager WIP
This commit is contained in:
@@ -10,7 +10,10 @@ public static class ThrottleExt
|
||||
|
||||
_throttleOn = true;
|
||||
await func();
|
||||
await Task.Delay(throttleTime ?? TimeSpan.FromMilliseconds(500));
|
||||
_throttleOn = false;
|
||||
_ = Task.Run(() =>
|
||||
{
|
||||
Task.Delay(throttleTime ?? TimeSpan.FromMilliseconds(500));
|
||||
_throttleOn = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user