Commit 117c8e6
committed
disposes the cancellation token source
Ensures the cancellation token source is properly disposed of after cancellation.
Prevents potential resource leaks by explicitly disposing of the CancellationTokenSource after the Console.CancelKeyPress event is triggered.1 parent eea5296 commit 117c8e6
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
0 commit comments