Adopt `Sendable` for `NIONetworkDevice` (#2103)

Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
David Nadoba 2022-05-10 18:01:56 +02:00 committed by GitHub
parent 54aadfaf38
commit 291143d83d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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.