Fixes all warnings when -require-explicit-sendable flag is enabled (#3320)

Fixes all warnings when `-require-explicit-sendable` flag is enabled and
enables the flag on macOS CI.

### Motivation:

We want to ensure our public API is either explicitly marked as
`Sendable` or not.

### Modifications:

Marked appropriate public types as `Sendable`, or explicitly defined
their conformance to the `Sendable` protocol as unavailable.

### Result:

We can now enable `-require-explicit-sendable` compiler flag in our
codebase.
This commit is contained in:
Rafael Cepeda authored and GitHub committed 2025-07-30 11:50:28 +01:00
1 parent 95c91a42a9
commit 02be63c7f4
34 files changed
+99 -45

No files matched your search

@@ -371,7 +371,7 @@ extension SystemFileHandle: FileHandleProtocol {
}
@_spi(Testing)
public enum UpdatePermissionsOperation { case set, add, remove }
public enum UpdatePermissionsOperation: Sendable { case set, add, remove }
}
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)