switched to new way
This commit is contained in:
parent
f22d182c8f
commit
4a65c8e17b
96 changed files with 4991 additions and 10025 deletions
14
src/Poe2Trade.Core/Helpers.cs
Normal file
14
src/Poe2Trade.Core/Helpers.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
namespace Poe2Trade.Core;
|
||||
|
||||
public static class Helpers
|
||||
{
|
||||
private static readonly Random Rng = new();
|
||||
|
||||
public static Task Sleep(int ms) => Task.Delay(ms);
|
||||
|
||||
public static Task RandomDelay(int minMs, int maxMs)
|
||||
{
|
||||
var delay = Rng.Next(minMs, maxMs + 1);
|
||||
return Task.Delay(delay);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue