-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix more
Sendable
warnings and flaky test
# Motivation We still had some `Sendable` warnings left under strict Concurrency checking. # Modification This PR fixes a bunch of `Sendable` warnings but we still have some left in the validation tests. Additionally, I fixed a flaky test.
- Loading branch information
1 parent
df46b4c
commit 5e2361f
Showing
6 changed files
with
77 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// swift-tools-version: 5.6 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "swift-async-algorithms", | ||
platforms: [ | ||
.macOS("10.15"), | ||
.iOS("13.0"), | ||
.tvOS("13.0"), | ||
.watchOS("6.0") | ||
], | ||
products: [ | ||
.library(name: "AsyncAlgorithms", targets: ["AsyncAlgorithms"]), | ||
.library(name: "AsyncSequenceValidation", targets: ["AsyncSequenceValidation"]), | ||
.library(name: "_CAsyncSequenceValidationSupport", type: .static, targets: ["AsyncSequenceValidation"]), | ||
.library(name: "AsyncAlgorithms_XCTest", targets: ["AsyncAlgorithms_XCTest"]), | ||
], | ||
dependencies: [.package(url: "https://github.com/apple/swift-collections.git", .upToNextMajor(from: "1.0.4"))], | ||
targets: [ | ||
.target( | ||
name: "AsyncAlgorithms", | ||
dependencies: [.product(name: "Collections", package: "swift-collections")] | ||
), | ||
.target( | ||
name: "AsyncSequenceValidation", | ||
dependencies: ["_CAsyncSequenceValidationSupport", "AsyncAlgorithms"]), | ||
.systemLibrary(name: "_CAsyncSequenceValidationSupport"), | ||
.target( | ||
name: "AsyncAlgorithms_XCTest", | ||
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation"]), | ||
.testTarget( | ||
name: "AsyncAlgorithmsTests", | ||
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation", "AsyncAlgorithms_XCTest"]), | ||
] | ||
) | ||
|
||
#if canImport(Darwin) | ||
import Darwin | ||
let buildingDocs = getenv("BUILDING_FOR_DOCUMENTATION_GENERATION") != nil | ||
#elseif canImport(Glibc) | ||
import Glibc | ||
let buildingDocs = getenv("BUILDING_FOR_DOCUMENTATION_GENERATION") != nil | ||
#else | ||
let buildingDocs = false | ||
#endif | ||
|
||
// Only require the docc plugin when building documentation | ||
package.dependencies += buildingDocs ? [ | ||
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"), | ||
] : [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters