This commit is contained in:
TheXamlGuy
2024-04-26 23:05:36 +01:00
parent 9f90ef693d
commit bc55c4649b
206 changed files with 3106 additions and 3204 deletions
+3 -3
View File
@@ -2,8 +2,8 @@
namespace Toolkit.Foundation;
public class AsyncLock(int initial = 1,
int maximum = 1) :
public class AsyncLock(int initial = 1,
int maximum = 1) :
IDisposable
{
private readonly SemaphoreSlim semaphore = new(initial, maximum);
@@ -20,4 +20,4 @@ public class AsyncLock(int initial = 1,
await semaphore.WaitAsync();
return this;
}
}
}