Skip to content

Commit f83b5d7

Browse files
committed
[concurrency] conform Deque.Iterator to Sendable
1 parent 38602cf commit f83b5d7

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

Sources/DequeModule/Deque+Collection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ extension Deque: Sequence {
164164
}
165165
}
166166

167-
extension Deque.Iterator: Sendable where Element: Sendable {}
167+
extension Deque.Iterator: @unchecked Sendable where Element: Sendable {}
168168

169169
extension Deque: RandomAccessCollection {
170170
public typealias Index = Int

Sources/DequeModule/Deque+Sendable.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.

Sources/DequeModule/Deque.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,5 @@ public struct Deque<Element> {
103103
self._storage = _Storage(minimumCapacity: minimumCapacity)
104104
}
105105
}
106+
107+
extension Deque: @unchecked Sendable where Element: Sendable {}

0 commit comments

Comments
 (0)