mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
[Heap] Heap: Explicitly conform to Sendable when Element is Sendable
This commit is contained in:
1 parent
da5284d433
commit
a586afc5bf
1 file changed
+4
@@ -35,6 +35,10 @@ public struct Heap<Element: Comparable> {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension Heap: Sendable where Element: Sendable {}
|
||||
#endif
|
||||
|
||||
extension Heap {
|
||||
/// A Boolean value indicating whether or not the heap is empty.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user