From 783589ec93925c609c5689ef60e86a53134f7824 Mon Sep 17 00:00:00 2001 From: Stefan Wieland Date: Tue, 14 Jan 2025 14:03:37 +0100 Subject: [PATCH] add AsyncAlgorithms --- Package.swift | 5 ++++- Sources/Toolbox/Utilities/SharedAsyncChannel.swift | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index beb18ca..69bb8b6 100644 --- a/Package.swift +++ b/Package.swift @@ -14,11 +14,14 @@ let package = Package( targets: ["Toolbox"]), ], dependencies: [ + .package(url: "https://github.com/apple/swift-async-algorithms.git", from: "1.0.0"), ], targets: [ .target( name: "Toolbox", - dependencies: []), + dependencies: [ + .product(name: "AsyncAlgorithms", package: "swift-async-algorithms"), + ]), .testTarget( name: "ToolboxTests", dependencies: ["Toolbox"]), diff --git a/Sources/Toolbox/Utilities/SharedAsyncChannel.swift b/Sources/Toolbox/Utilities/SharedAsyncChannel.swift index 596860a..6f0f10f 100644 --- a/Sources/Toolbox/Utilities/SharedAsyncChannel.swift +++ b/Sources/Toolbox/Utilities/SharedAsyncChannel.swift @@ -1,4 +1,3 @@ -#if canImport(AsyncAlgorithms) import AsyncAlgorithms import Foundation @@ -45,4 +44,3 @@ public final class SharedAsyncChannel: AsyncSequence, @unchec } } } -#endif