diff --git a/Sources/PriorityQueueModule/Heap.swift b/Sources/PriorityQueueModule/Heap.swift index 1f6f3d83..b817e9c4 100644 --- a/Sources/PriorityQueueModule/Heap.swift +++ b/Sources/PriorityQueueModule/Heap.swift @@ -35,6 +35,10 @@ public struct Heap { } } +#if swift(>=5.5) +extension Heap: Sendable where Element: Sendable {} +#endif + extension Heap { /// A Boolean value indicating whether or not the heap is empty. ///