Commit ebe1873
committed
Stop swallowing CancellationException on rename
runCatching catches Throwable, so the previous shape silently absorbed
CancellationException and surfaced it as a RenameResult.Error. That
breaks structured concurrency: a cancelled scope should propagate
upwards, not be reported as a rename failure. Swap to a try/catch
that rethrows CancellationException and only converts Exception into
the user-visible error state.1 parent fd27916 commit ebe1873
1 file changed
Lines changed: 9 additions & 3 deletions
File tree
- duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/history
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
0 commit comments