File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -476,12 +476,10 @@ extension FileDescriptor.OpenOptions
476476
477477#if compiler(>=5.5) && canImport(_Concurrency)
478478// File descriptors aren't necessarily safe to use across threads.
479- // Thus no explicit `Sendable` conformance.
480- // They can be used in a safe way, however,
481- // which is why the conformance cannot be marked with `@available(*, unavailable)`.
482-
483- // extension FileDescriptor: Sendable {}
484-
479+ // However, since they can be used in a safe way,
480+ // we do make them `Sendable` to not make it unnecessarily complicated to
481+ // use them across concurrency boundaries in a safe way.
482+ extension FileDescriptor : Sendable { }
485483extension FileDescriptor . AccessMode : Sendable { }
486484extension FileDescriptor . OpenOptions : Sendable { }
487485extension FileDescriptor . SeekOrigin : Sendable { }
You can’t perform that action at this time.
0 commit comments