Skip to content

Conversation

ktoso
Copy link
Member

@ktoso ktoso commented Jun 18, 2025

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 functions

rdar://153688123

**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 functions
@ktoso ktoso added the 🆕 semver/minor Adds new public API. label Jun 18, 2025
@ktoso ktoso enabled auto-merge (squash) June 18, 2025 02:30
@ktoso ktoso added 🔨 semver/patch No public API change. and removed 🆕 semver/minor Adds new public API. labels Jun 18, 2025
@ktoso ktoso added this to the 1.2.1 milestone Jun 18, 2025
@ktoso ktoso merged commit d3ecc94 into main Jun 18, 2025
30 of 31 checks passed
@ktoso ktoso deleted the wip-isolated-param-in-protocol branch June 18, 2025 05:01
@ktoso
Copy link
Member Author

ktoso commented Jun 18, 2025

Gonna tag a patch with this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants