Skip to content

Support NonisolatedNonsendingByDefault #1570

@0xTim

Description

@0xTim

Motivation

If you enabled the upcoming feature flag NonisolatedNonsendingByDefault in your package and use Swift Testing with a Suite Trait, you'll probably hit upon the issue that provideScope(for:testCase:performing:) doesn't conform to the protocol, even though from the error message they're the same. The fix is to annotate the closure with @concurrent but this should be done in the framework

Proposed solution

Support NonisolatedNonsendingByDefault by default

Alternatives considered

Make users fix it, a workaround but not ideal

Additional information

No response

Metadata

Metadata

Labels

concurrency🔀 Swift concurrency/sendability issuesenhancementNew feature or requesttech-debt💾 reduces technical debt

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions