diff --git a/Sources/System/FileDescriptor.swift b/Sources/System/FileDescriptor.swift index 5cf0e07f..a152b098 100644 --- a/Sources/System/FileDescriptor.swift +++ b/Sources/System/FileDescriptor.swift @@ -475,10 +475,11 @@ extension FileDescriptor.OpenOptions } #if compiler(>=5.5) && canImport(_Concurrency) -// The decision on whether to make FileDescriptor Sendable or not -// is currently being discussed in https://github.com/apple/swift-system/pull/112 -//@available(*, unavailable, message: "File descriptors are not completely thread-safe.") -//extension FileDescriptor: Sendable {} +// File descriptors aren't necessarily safe to use across threads. +// However, since they can be used in a safe way, +// we do make them `Sendable` to not make it unnecessarily complicated to +// use them across concurrency boundaries in a safe way. +extension FileDescriptor: Sendable {} extension FileDescriptor.AccessMode: Sendable {} extension FileDescriptor.OpenOptions: Sendable {}