mirror of
https://github.com/apple/swift-nio
synced 2026-11-29 05:24:21 +00:00
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:
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 }
|
||||
|
||||
|
||||
Reference in new issue
Block a user