Commit d60f2ce
refactor: conform Task to Loggable instead of using a stub enum
Replace the private `DiscardingTask: Loggable` stub with a constrained
conformance `Task: Loggable where Success == Void, Failure == Never`,
and switch the helpers' logging calls to `Self.log(...)`.
Side benefit: log lines now correctly report the originating type as
`Task<Void, Never>` rather than the leaking-implementation `DiscardingTask`.
The conformance is constrained to the same Task variant the helpers
operate on, so the addition doesn't pollute the general Task type.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4d39be8 commit d60f2ce
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments