Files
swift-async-algorithms/Package.swift
T
Philippe Hausler 1c11d4a7c8 Add an algorithm to obtain the first result of a list of tasks (#5)
* Add an algorithm to obtain the first result of a list of tasks

* A much simpler and less risky implementation of Task.first that supports cancellation propigation

* Slight whitespace fix for Package.swift

* Demote Task.first to internal - revisit for better naming later as public
2022-01-14 08:25:41 -08:00

28 lines
508 B
Swift

// swift-tools-version: 5.6
import PackageDescription
let package = Package(
name: "AsyncAlgorithms",
platforms: [
.macOS("10.15"),
.iOS("13.0"),
.tvOS("13.0"),
.watchOS("6.0")
],
products: [
.library(
name: "AsyncAlgorithms",
targets: ["AsyncAlgorithms"]),
],
dependencies: [],
targets: [
.target(
name: "AsyncAlgorithms",
dependencies: []),
.testTarget(
name: "AsyncAlgorithmsTests",
dependencies: ["AsyncAlgorithms"]),
]
)