We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2e9fa commit ae4b50fCopy full SHA for ae4b50f
Sources/Subprocess/IO/AsyncIO+Dispatch.swift
@@ -166,8 +166,16 @@ final class AsyncIO: Sendable {
166
}
167
168
169
-#if !canImport(Darwin)
+#if canImport(Darwin)
170
+// Dispatch has a -user-module-version of 54 in the macOS 15.3 SDK
171
+#if canImport(Dispatch, _version: "54")
172
+// DispatchData is annotated as Sendable
173
+#else
174
+// Retroactively conform DispatchData to Sendable
175
extension DispatchData: @retroactive @unchecked Sendable {}
-#endif
176
+#endif // canImport(Dispatch, _version: "54")
177
178
+extension DispatchData: @retroactive @unchecked Sendable {}
179
+#endif // canImport(Darwin)
180
181
+#endif // SUBPROCESS_ASYNCIO_DISPATCH
0 commit comments