[Heap] Heap: Explicitly conform to Sendable when Element is Sendable

This commit is contained in:
Karoy Lorentey committed 2022-10-05 11:36:31 -07:00
1 parent da5284d433
commit a586afc5bf
1 file changed
+4
+4
View File
@@ -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.
///