Make file handle sendable (#3300)

Solve Issue-3295

### Motivation:

Solve https://github.com/apple/swift-nio/issues/3295

### Modifications:

Make a few objects send able. 

### Result:

WriteFileHandle will be sendable

---------

Co-authored-by: George Barnett <gbarnett@apple.com>
This commit is contained in:
Ali AliandGeorge Barnett authored and GitHub committed 2025-07-15 12:43:22 +00:00
1 parent 933b9d738d
commit fe923bbbe6
2 files changed
+5 -5

No files matched your search

@@ -33,7 +33,7 @@ import CNIOLinux
/// descriptor.
@_spi(Testing)
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
public final class SystemFileHandle {
public final class SystemFileHandle: Sendable {
/// The executor on which to execute system calls.
internal var threadPool: NIOThreadPool { self.sendableView.threadPool }