Skip to content

Commit

Permalink
Conform to Sendable when Collection is Sendable (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrapperon authored Feb 24, 2023
1 parent ad27868 commit 15747c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/NonEmpty/NonEmpty.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ extension NonEmpty: Comparable where Collection: Comparable {
}
}

#if canImport(_Concurrency) && compiler(>=5.5)
extension NonEmpty: Sendable where Collection: Sendable {}
#endif

extension NonEmpty: Encodable where Collection: Encodable {
public func encode(to encoder: Encoder) throws {
do {
Expand Down

0 comments on commit 15747c4

Please sign in to comment.