Skip to content

Commit d504702

Browse files
committed
Added Sendable conformance back to Iterators.
1 parent 263175b commit d504702

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Sources/GRPCCore/Call/Client/Internal/RetryDelaySequence.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct RetryDelaySequence: Sequence, Sendable {
4545
}
4646

4747
@usableFromInline
48-
struct Iterator: IteratorProtocol {
48+
struct Iterator: IteratorProtocol, Sendable {
4949
@usableFromInline
5050
let policy: RetryPolicy
5151
@usableFromInline
@@ -99,6 +99,3 @@ struct RetryDelaySequence: Sequence, Sendable {
9999
}
100100
}
101101
}
102-
103-
@available(*, unavailable)
104-
extension RetryDelaySequence.Iterator: Sendable {}

Sources/GRPCCore/Coding/CompressionAlgorithm.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ extension CompressionAlgorithmSet {
107107
return Iterator(algorithmSet: self.algorithmSet)
108108
}
109109

110-
public struct Iterator: IteratorProtocol {
110+
public struct Iterator: IteratorProtocol, Sendable {
111111
private let algorithmSet: CompressionAlgorithmSet
112112
private var iterator: IndexingIterator<[CompressionAlgorithm.Value]>
113113

@@ -128,6 +128,3 @@ extension CompressionAlgorithmSet {
128128
}
129129
}
130130
}
131-
132-
@available(*, unavailable)
133-
extension CompressionAlgorithmSet.Elements.Iterator: Sendable {}

0 commit comments

Comments
 (0)