We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents afe25cd + b0f50b7 commit 74ec90bCopy full SHA for 74ec90b
1 file changed
Sources/Path.swift
@@ -9,6 +9,10 @@ let _realpath = Glibc.realpath
9
10
public typealias PathStruct = Path
11
12
+#if !swift(>=5.5)
13
+ private protocol Sendable {}
14
+#endif
15
+
16
/**
17
A `Path` represents an absolute path on a filesystem.
18
@@ -40,7 +44,7 @@ public typealias PathStruct = Path
40
44
- Note: A `Path` does not necessarily represent an actual filesystem entry.
41
45
- SeeAlso: `Pathish` for most methods you will use on `Path` instances.
42
46
*/
43
-public struct Path: Pathish {
47
+public struct Path: Pathish, Sendable {
48
49
/// The normalized string representation of the underlying filesystem path
50
public let string: String
0 commit comments