Skip to content

Commit 15747c4

Browse files
authored
Conform to Sendable when Collection is Sendable (#52)
1 parent ad27868 commit 15747c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/NonEmpty/NonEmpty.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ extension NonEmpty: Comparable where Collection: Comparable {
8484
}
8585
}
8686

87+
#if canImport(_Concurrency) && compiler(>=5.5)
88+
extension NonEmpty: Sendable where Collection: Sendable {}
89+
#endif
90+
8791
extension NonEmpty: Encodable where Collection: Encodable {
8892
public func encode(to encoder: Encoder) throws {
8993
do {

0 commit comments

Comments
 (0)