Commit 52d3add
committed
Tracer.withSpan's isolation param should be 'isolated'
**Motivation:**
The intent of this parameter is to not cross an isolation boundary when
calling withSpan, thus, we were missing the isolated modifier in this
protocol.
**Modifications:**
Make the `isolation: (any Actor)? = #isolation,` parameter 'isolated',
as was originally intended
**Result:**
Not crossing actor boundary when calling this method means less errors
when adopting Swift 6 mode, and correct behavior of these functions1 parent eec7ac7 commit 52d3add
File tree
2 files changed
+4
-4
lines changed- Sources/Tracing
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
| 613 | + | |
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
0 commit comments