The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of ConcurrencyPlus, reference 0.4.2 (8dc564), with Swift 6.0 for Linux on 29 Nov 2024 12:47:49 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChimeHQ/ConcurrencyPlus.git
Reference: 0.4.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ChimeHQ/ConcurrencyPlus
 * tag               0.4.2      -> FETCH_HEAD
HEAD is now at 8dc5649 fix indentation for github
Cloned https://github.com/ChimeHQ/ConcurrencyPlus.git
Revision (git rev-parse @):
8dc56499412a373d617d50d059116bccf44b9874
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ChimeHQ/ConcurrencyPlus.git at 0.4.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ChimeHQ/ConcurrencyPlus.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling ConcurrencyPlus Continuation+Resuming.swift
/host/spi-builder-workspace/Sources/ConcurrencyPlus/Continuation+Resuming.swift:17:13: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
15 |         switch (value, error) {
16 |         case (let value?, nil):
17 |             resume(returning: value)
   |             |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |             `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
18 |         case (_, let error?):
19 |             resume(throwing: error)
[4/12] Compiling ConcurrencyPlus Task+Relay.swift
/host/spi-builder-workspace/Sources/ConcurrencyPlus/Task+Relay.swift:10:41: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 8 |     @discardableResult
 9 |     static func relayResult(priority: TaskPriority? = nil, to block: @escaping (Success?, Failure?) -> Void, operation: @escaping @Sendable () async throws -> Success) -> Self {
10 |         return Task(priority: priority) {
   |                                         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
11 |             do {
12 |                 let value = try await operation()
13 |
14 |                 block(value, nil)
   |                 `- note: closure captures 'block' which is accessible to code in the current task
15 |
16 |                 return value
/host/spi-builder-workspace/Sources/ConcurrencyPlus/Task+Relay.swift:31:41: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
29 |     @discardableResult
30 |     static func relayResult(priority: TaskPriority? = nil, to block: @escaping (Result<Success, Failure>) -> Void, operation: @escaping @Sendable () async throws -> Success) -> Self {
31 |         return Task(priority: priority) {
   |                                         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
32 |             do {
33 |                 let value = try await operation()
34 |
35 |                 block(.success(value))
   |                 `- note: closure captures 'block' which is accessible to code in the current task
36 |
37 |                 return value
/host/spi-builder-workspace/Sources/ConcurrencyPlus/Task+Relay.swift:54:41: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
52 |     @discardableResult
53 |     static func relayResult(priority: TaskPriority? = nil, to block: @escaping (Failure?) -> Void, operation: @escaping @Sendable () async throws -> Success) -> Self {
54 |         return Task(priority: priority) {
   |                                         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
55 |             do {
56 |                 try await operation()
57 |
58 |                 block(nil)
   |                 `- note: closure captures 'block' which is accessible to code in the current task
59 |             } catch {
60 |                 block(error)
[5/12] Compiling ConcurrencyPlus SendableContainers.swift
[6/12] Emitting module ConcurrencyPlus
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncSubject.swift:49:11: warning: 'AsyncSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
47 | }
48 |
49 | extension AsyncSubject: Sendable where Element: Sendable {
   |           `- warning: 'AsyncSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
50 | }
51 |
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncThrowingSubject.swift:54:11: warning: 'AsyncThrowingSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
52 | }
53 |
54 | extension AsyncThrowingSubject: Sendable where Element: Sendable {
   |           `- warning: 'AsyncThrowingSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
55 | }
56 |
/host/spi-builder-workspace/Sources/ConcurrencyPlus/MainActor+Unsafe.swift:9:2: warning: '(unsafe)' global actors are deprecated; use '@preconcurrency' instead; this is an error in the Swift 6 language mode
 7 | 	///
 8 | 	/// It will crash if run on any non-main thread.
 9 | 	@MainActor(unsafe)
   |  `- warning: '(unsafe)' global actors are deprecated; use '@preconcurrency' instead; this is an error in the Swift 6 language mode
10 | 	static func runUnsafely<T>(_ body: @MainActor () throws -> T) rethrows -> T {
11 | 		dispatchPrecondition(condition: .onQueue(.main))
/host/spi-builder-workspace/Sources/ConcurrencyPlus/TaskQueue.swift:139:32: warning: generic parameter 'Success' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
137 |     /// Submit a throwing operation to the global queue.
138 |     @discardableResult
139 |     public static func ordered<Success>(
    |                                `- warning: generic parameter 'Success' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
140 |         priority: TaskPriority? = nil,
141 |         operation: @escaping @Sendable () async throws -> Success)
/host/spi-builder-workspace/Sources/ConcurrencyPlus/TaskQueue.swift:148:32: warning: generic parameter 'Success' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
146 |     /// Submit an operation to the global queue.
147 |     @discardableResult
148 |     public static func ordered<Success>(
    |                                `- warning: generic parameter 'Success' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
149 |         priority: TaskPriority? = nil,
150 |         operation: @escaping @Sendable () async -> Success)
[7/12] Compiling ConcurrencyPlus AsyncSubject.swift
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncSubject.swift:49:11: warning: 'AsyncSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
47 | }
48 |
49 | extension AsyncSubject: Sendable where Element: Sendable {
   |           `- warning: 'AsyncSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
50 | }
51 |
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncThrowingSubject.swift:54:11: warning: 'AsyncThrowingSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
52 | }
53 |
54 | extension AsyncThrowingSubject: Sendable where Element: Sendable {
   |           `- warning: 'AsyncThrowingSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
55 | }
56 |
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncSubject.swift:25:16: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
23 | 	/// Add values to the sequence
24 | 	public func send(_ element: Element) {
25 | 		continuation.yield(element)
   |                |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
26 | 	}
27 |
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncThrowingSubject.swift:25:16: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
23 | 	/// Add results to the sequence
24 | 	public func send(_ result: Result<Element, Error>) {
25 | 		continuation.yield(with: result)
   |                |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
26 | 	}
27 |
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncThrowingSubject.swift:30:16: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
28 | 	/// Add values to the sequence
29 | 	public func send(_ element: Element) {
30 | 		continuation.yield(element)
   |                |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
31 | 	}
32 |
[8/12] Compiling ConcurrencyPlus AsyncThrowingSubject.swift
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncSubject.swift:49:11: warning: 'AsyncSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
47 | }
48 |
49 | extension AsyncSubject: Sendable where Element: Sendable {
   |           `- warning: 'AsyncSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
50 | }
51 |
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncThrowingSubject.swift:54:11: warning: 'AsyncThrowingSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
52 | }
53 |
54 | extension AsyncThrowingSubject: Sendable where Element: Sendable {
   |           `- warning: 'AsyncThrowingSubject' is deprecated: Please see the project README for alternative libraries that provide this functionality
55 | }
56 |
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncSubject.swift:25:16: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
23 | 	/// Add values to the sequence
24 | 	public func send(_ element: Element) {
25 | 		continuation.yield(element)
   |                |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
26 | 	}
27 |
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncThrowingSubject.swift:25:16: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
23 | 	/// Add results to the sequence
24 | 	public func send(_ result: Result<Element, Error>) {
25 | 		continuation.yield(with: result)
   |                |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
26 | 	}
27 |
/host/spi-builder-workspace/Sources/ConcurrencyPlus/AsyncThrowingSubject.swift:30:16: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
28 | 	/// Add values to the sequence
29 | 	public func send(_ element: Element) {
30 | 		continuation.yield(element)
   |                |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
31 | 	}
32 |
[9/12] Compiling ConcurrencyPlus NSXPCConnection+Continuation.swift
[10/12] Compiling ConcurrencyPlus MainActor+Unsafe.swift
/host/spi-builder-workspace/Sources/ConcurrencyPlus/MainActor+Unsafe.swift:9:2: warning: '(unsafe)' global actors are deprecated; use '@preconcurrency' instead; this is an error in the Swift 6 language mode
 7 | 	///
 8 | 	/// It will crash if run on any non-main thread.
 9 | 	@MainActor(unsafe)
   |  `- warning: '(unsafe)' global actors are deprecated; use '@preconcurrency' instead; this is an error in the Swift 6 language mode
10 | 	static func runUnsafely<T>(_ body: @MainActor () throws -> T) rethrows -> T {
11 | 		dispatchPrecondition(condition: .onQueue(.main))
[11/12] Compiling ConcurrencyPlus RelaxedDispatchQueue.swift
/host/spi-builder-workspace/Sources/ConcurrencyPlus/RelaxedDispatchQueue.swift:24:32: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
21 | 	}
22 |
23 | 	public func async(_ block: @escaping () -> Void) {
   |                      `- note: parameter 'block' is implicitly non-sendable
24 | 		internalQueue.async(execute: block)
   |                                `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
25 | 	}
26 |
[12/12] Compiling ConcurrencyPlus TaskQueue.swift
/host/spi-builder-workspace/Sources/ConcurrencyPlus/TaskQueue.swift:139:32: warning: generic parameter 'Success' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
137 |     /// Submit a throwing operation to the global queue.
138 |     @discardableResult
139 |     public static func ordered<Success>(
    |                                `- warning: generic parameter 'Success' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
140 |         priority: TaskPriority? = nil,
141 |         operation: @escaping @Sendable () async throws -> Success)
/host/spi-builder-workspace/Sources/ConcurrencyPlus/TaskQueue.swift:148:32: warning: generic parameter 'Success' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
146 |     /// Submit an operation to the global queue.
147 |     @discardableResult
148 |     public static func ordered<Success>(
    |                                `- warning: generic parameter 'Success' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
149 |         priority: TaskPriority? = nil,
150 |         operation: @escaping @Sendable () async -> Success)
Build complete! (12.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ConcurrencyPlus",
  "name" : "ConcurrencyPlus",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "ConcurrencyPlus",
      "targets" : [
        "ConcurrencyPlus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ConcurrencyPlusTests",
      "module_type" : "SwiftTarget",
      "name" : "ConcurrencyPlusTests",
      "path" : "Tests/ConcurrencyPlusTests",
      "sources" : [
        "AsyncSubjectTests.swift",
        "CancellingContinuationTests.swift",
        "MainActorTests.swift",
        "SendableContainerTests.swift",
        "TaskQueueTests.swift",
        "TaskTests.swift"
      ],
      "target_dependencies" : [
        "ConcurrencyPlus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ConcurrencyPlus",
      "module_type" : "SwiftTarget",
      "name" : "ConcurrencyPlus",
      "path" : "Sources/ConcurrencyPlus",
      "product_memberships" : [
        "ConcurrencyPlus"
      ],
      "sources" : [
        "AsyncSubject.swift",
        "AsyncThrowingSubject.swift",
        "Continuation+Resuming.swift",
        "MainActor+Unsafe.swift",
        "NSXPCConnection+Continuation.swift",
        "RelaxedDispatchQueue.swift",
        "SendableContainers.swift",
        "Task+Relay.swift",
        "TaskQueue.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.