Skip to content

Commit 7087e67

Browse files
authored
Update README.md
1 parent d387eff commit 7087e67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var d1 = await asyncLock.ReaderLockAsync("123");
1414
d1.Dispose();
1515

1616
//set timeout
17-
CancellationTokenSource cancellationToken = new CancellationTokenSource(TimeSpan.FromSeconds(10));
17+
using CancellationTokenSource cancellationToken = new CancellationTokenSource(TimeSpan.FromSeconds(10));
1818

1919
//acquire writer lock
2020
using var d2 = await asyncLock.WriterLockAsync("123", cancellationToken.Token);

0 commit comments

Comments
 (0)