From a586afc5bfd4f7093b736d2f348be83522026df0 Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Wed, 5 Oct 2022 11:36:31 -0700 Subject: [PATCH] [Heap] Heap: Explicitly conform to Sendable when Element is Sendable --- Sources/PriorityQueueModule/Heap.swift | 4 ++++ 1 file changed, 4 insertions(+) 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. ///