Adopt `Sendable` for `NIONetworkDevice` (#2103)
Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
parent
54aadfaf38
commit
291143d83d
|
@ -312,6 +312,10 @@ public struct NIONetworkDevice {
|
|||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5) && canImport(_Concurrency)
|
||||
extension NIONetworkDevice: @unchecked Sendable {}
|
||||
#endif
|
||||
|
||||
extension NIONetworkDevice {
|
||||
fileprivate final class Backing {
|
||||
/// The name of the network interface.
|
||||
|
|
Loading…
Reference in New Issue