Skip to content

Commit 74ec90b

Browse files
authored
Merge pull request #103 from guillaumealgis/sendable-path
Add 'Sendable' conformance to Path
2 parents afe25cd + b0f50b7 commit 74ec90b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Sources/Path.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ let _realpath = Glibc.realpath
99

1010
public typealias PathStruct = Path
1111

12+
#if !swift(>=5.5)
13+
private protocol Sendable {}
14+
#endif
15+
1216
/**
1317
A `Path` represents an absolute path on a filesystem.
1418

@@ -40,7 +44,7 @@ public typealias PathStruct = Path
4044
- Note: A `Path` does not necessarily represent an actual filesystem entry.
4145
- SeeAlso: `Pathish` for most methods you will use on `Path` instances.
4246
*/
43-
public struct Path: Pathish {
47+
public struct Path: Pathish, Sendable {
4448

4549
/// The normalized string representation of the underlying filesystem path
4650
public let string: String

0 commit comments

Comments
 (0)