Skip to content

Commit 5e45838

Browse files
authored
Merge pull request #902 from rconnell9/rconnell/dispatchfd-sendable
Make DispatchFD Sendable and address warnings
2 parents 1951243 + a3a23ec commit 5e45838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SWBUtil/SWBDispatch.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public import SystemPackage
2626
/// Represents a `dispatch_fd_t` which is a POSIX file descriptor on Unix-like platforms, or a HANDLE on Windows.
2727
///
2828
/// It performs non-owning conversions from FileDescriptors and FileHandles, but not the reverse. The raw fd/HANDLE value is inaccessible to callers and privately forwarded to relevant Dispatch APIs.
29-
public struct DispatchFD {
29+
public struct DispatchFD: Sendable {
3030
#if os(Windows)
3131
fileprivate let rawValue: Int
3232
#else

0 commit comments

Comments
 (0)