We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66f25d commit 75735c9Copy full SHA for 75735c9
README.md
@@ -18,9 +18,9 @@ var d1 = await asyncLock.ReaderLockAsync("123");
18
d1.Dispose();
19
20
//set timeout
21
-using CancellationTokenSource cancellationToken = new CancellationTokenSource(TimeSpan.FromSeconds(10));
+using CancellationTokenSource cts = new CancellationTokenSource(TimeSpan.FromSeconds(10));
22
23
//acquire writer lock
24
-using var d2 = await asyncLock.WriterLockAsync("123", cancellationToken.Token);
+using var d2 = await asyncLock.WriterLockAsync("123", cts.Token);
25
26
```
0 commit comments