mirror of
https://github.com/apple/swift-async-algorithms
synced 2026-11-24 04:17:52 +00:00
* 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
28 lines
508 B
Swift
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"]),
|
|
]
|
|
)
|