Skip to content

Commit

Permalink
Merge pull request #41 from allaboutapps/add-AsyncAlgorithms
Browse files Browse the repository at this point in the history
add AsyncAlgorithms dependency
  • Loading branch information
aaa-developer authored Jan 14, 2025
2 parents 761e067 + 783589e commit 3648113
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"]),
Expand Down
2 changes: 0 additions & 2 deletions Sources/Toolbox/Utilities/SharedAsyncChannel.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if canImport(AsyncAlgorithms)
import AsyncAlgorithms
import Foundation

Expand Down Expand Up @@ -45,4 +44,3 @@ public final class SharedAsyncChannel<Element: Sendable>: AsyncSequence, @unchec
}
}
}
#endif

0 comments on commit 3648113

Please sign in to comment.