Skip to content

Commit 051a7c6

Browse files
committed
don't import Foundation if FoundationEssentials available
1 parent 06b1cfe commit 051a7c6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/AsyncQueue/CancellableQueue.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
2222

23+
#if canImport(FoundationEssentials)
24+
import FoundationEssentials
25+
import Dispatch
26+
#else
2327
import Foundation
28+
#endif
2429

2530
/// A queue wrapper that enables cancelling all currently executing and pending tasks.
2631
///

0 commit comments

Comments
 (0)