Skip to content

Commit a1d17b0

Browse files
committed
changed: swift concurrency
1 parent 6717df8 commit a1d17b0

7 files changed

+705
-608
lines changed

Package.resolved

+47-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,50 @@
11
{
2-
"object": {
3-
"pins": [
4-
{
5-
"package": "swift-nio",
6-
"repositoryURL": "https://github.com/apple/swift-nio.git",
7-
"state": {
8-
"branch": null,
9-
"revision": "51c3fc2e4a0fcdf4a25089b288dd65b73df1b0ef",
10-
"version": "2.37.0"
11-
}
2+
"pins" : [
3+
{
4+
"identity" : "async-collections",
5+
"kind" : "remoteSourceControl",
6+
"location" : "https://github.com/adam-fowler/async-collections",
7+
"state" : {
8+
"revision" : "5acf565880079a808282889995d901637f3281a0",
9+
"version" : "0.0.1"
1210
}
13-
]
14-
},
15-
"version": 1
11+
},
12+
{
13+
"identity" : "swift-algorithms",
14+
"kind" : "remoteSourceControl",
15+
"location" : "https://github.com/apple/swift-algorithms.git",
16+
"state" : {
17+
"revision" : "f6919dfc309e7f1b56224378b11e28bab5bccc42",
18+
"version" : "1.2.0"
19+
}
20+
},
21+
{
22+
"identity" : "swift-async-algorithms",
23+
"kind" : "remoteSourceControl",
24+
"location" : "https://github.com/apple/swift-async-algorithms",
25+
"state" : {
26+
"revision" : "cb417003f962f9de3fc7852c1b735a1f1152a89a",
27+
"version" : "1.0.0-beta.1"
28+
}
29+
},
30+
{
31+
"identity" : "swift-collections",
32+
"kind" : "remoteSourceControl",
33+
"location" : "https://github.com/apple/swift-collections.git",
34+
"state" : {
35+
"revision" : "a902f1823a7ff3c9ab2fba0f992396b948eda307",
36+
"version" : "1.0.5"
37+
}
38+
},
39+
{
40+
"identity" : "swift-numerics",
41+
"kind" : "remoteSourceControl",
42+
"location" : "https://github.com/apple/swift-numerics.git",
43+
"state" : {
44+
"revision" : "0a5bc04095a675662cf24757cc0640aa2204253b",
45+
"version" : "1.0.2"
46+
}
47+
}
48+
],
49+
"version" : 2
1650
}

Package.swift

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
1-
// swift-tools-version:5.0
1+
// swift-tools-version:5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
55

66
let package = Package(
77
name: "DataLoader",
8+
platforms: [.macOS(.v12), .iOS(.v15), .tvOS(.v15), .watchOS(.v8)],
89
products: [
910
.library(name: "DataLoader", targets: ["DataLoader"]),
1011
],
1112
dependencies: [
12-
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
13+
.package(url: "https://github.com/apple/swift-algorithms.git", from: "1.0.0"),
14+
.package(url: "https://github.com/apple/swift-async-algorithms", from: "1.0.0-beta.1"),
15+
.package(url: "https://github.com/adam-fowler/async-collections", from: "0.0.1"),
1316
],
1417
targets: [
15-
.target(name: "DataLoader", dependencies: ["NIO", "NIOConcurrencyHelpers"]),
18+
.target(
19+
name: "DataLoader",
20+
dependencies: [
21+
.product(name: "Algorithms", package: "swift-algorithms"),
22+
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
23+
.product(name: "AsyncCollections", package: "async-collections"),
24+
]
25+
),
1626
.testTarget(name: "DataLoaderTests", dependencies: ["DataLoader"]),
17-
],
18-
swiftLanguageVersions: [.v5]
27+
]
1928
)

0 commit comments

Comments
 (0)