Commit 018def4
committed
Enhanced async cancellation handling
- Updated the expected exception type in `CancellationTests` from `OperationCanceledException` to `TaskCanceledException`, reflecting a more accurate expectation for task cancellation scenarios.
- Added a new extension method `WaitToReadOrCancelAsync` in `Extensions.Read.cs` to improve support for asynchronous read operations with cancellation.
- Refactored existing reading logic to utilize the new `WaitToReadOrCancelAsync` method, streamlining cancellation handling.
- Incremented the version of `Open.ChannelExtensions` to 8.4.0, indicating the introduction of new features and improvements.1 parent 85230ca commit 018def4
File tree
3 files changed
+45
-40
lines changed- Open.ChannelExtensions.Tests
- Open.ChannelExtensions
3 files changed
+45
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
9 | 27 | | |
10 | 28 | | |
11 | 29 | | |
| |||
117 | 135 | | |
118 | 136 | | |
119 | 137 | | |
120 | | - | |
| 138 | + | |
| 139 | + | |
121 | 140 | | |
122 | | - | |
| 141 | + | |
123 | 142 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 143 | | |
134 | 144 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 145 | + | |
140 | 146 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 147 | + | |
145 | 148 | | |
146 | | - | |
147 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
148 | 153 | | |
149 | | - | |
| 154 | + | |
150 | 155 | | |
151 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
152 | 164 | | |
153 | 165 | | |
154 | 166 | | |
| |||
373 | 385 | | |
374 | 386 | | |
375 | 387 | | |
376 | | - | |
| 388 | + | |
377 | 389 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
390 | 393 | | |
391 | 394 | | |
392 | 395 | | |
| 396 | + | |
393 | 397 | | |
394 | | - | |
| 398 | + | |
| 399 | + | |
395 | 400 | | |
396 | | - | |
| 401 | + | |
397 | 402 | | |
398 | 403 | | |
399 | 404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments