The Swift Package Index logo.Swift Package Index

Build Information

Successful build of AsyncExtensions, reference v4.4.0 (308847), with Swift 6.2 for macOS (SPM) on 23 Jun 2025 06:58:25 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shareup/async-extensions.git
Reference: v4.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/shareup/async-extensions
 * tag               v4.4.0     -> FETCH_HEAD
HEAD is now at 3088474 Add AnyAsyncSequence and tests (#26)
Cloned https://github.com/shareup/async-extensions.git
Revision (git rev-parse @):
3088474141debc75b78257a0db28adf734bcea0f
SUCCESS checkout https://github.com/shareup/async-extensions.git at v4.4.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/shareup/async-extensions.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-1EA4D86E10B52AF.txt
[5/8] Compiling Synchronized Locked.swift
[6/8] Compiling Synchronized RecursiveLock.swift
[7/8] Emitting module Synchronized
[8/8] Compiling Synchronized Lock.swift
[9/17] Compiling AsyncExtensions TimeoutError.swift
[10/17] Compiling AsyncExtensions SequenceExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncExtensions/SequenceExtensions.swift:20:11: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
18 |     func concurrentMap<T>(
19 |         priority: TaskPriority? = nil,
20 |         _ transform: @escaping @Sendable (Element) async throws -> T
   |           `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
21 |     ) async throws -> [T] where Element: Sendable, T: Sendable {
22 |         let tasks = map { element in
[11/17] Compiling AsyncExtensions AsyncThrowingFuture.swift
[12/17] Compiling AsyncExtensions Publisher+AsyncExtensions.swift
[13/17] Compiling AsyncExtensions TaskStore.swift
[14/17] Compiling AsyncExtensions AsyncOutputStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncExtensions/AsyncOutputStream.swift:35:29: warning: capture of 'self' with non-sendable type 'AsyncOutputStream' in a '@Sendable' closure [#SendableClosureCaptures]
  1 | import Foundation
  2 |
  3 | public final class AsyncOutputStream {
    |                    `- note: class 'AsyncOutputStream' does not conform to the 'Sendable' protocol
  4 |     private var state: State
  5 |
    :
 33 |                     var value = value
 34 |                     let bytesWritten = try withUnsafeBytes(of: &value) { ptr in
 35 |                         try self.state.write(
    |                             `- warning: capture of 'self' with non-sendable type 'AsyncOutputStream' in a '@Sendable' closure [#SendableClosureCaptures]
 36 |                             ptr.baseAddress!.assumingMemoryBound(to: UInt8.self),
 37 |                             length: size
/Users/admin/builder/spi-builder-workspace/Sources/AsyncExtensions/AsyncOutputStream.swift:33:33: warning: capture of non-sendable type 'I.Type' in an isolated closure
 31 |             queue.async {
 32 |                 do {
 33 |                     var value = value
    |                                 `- warning: capture of non-sendable type 'I.Type' in an isolated closure
 34 |                     let bytesWritten = try withUnsafeBytes(of: &value) { ptr in
 35 |                         try self.state.write(
/Users/admin/builder/spi-builder-workspace/Sources/AsyncExtensions/AsyncOutputStream.swift:25:47: warning: capture of non-sendable type 'I.Type' in an isolated closure
 23 |
 24 |     @discardableResult
 25 |     public func write<I: FixedWidthInteger>(_ value: I) async throws -> Int {
    |                                               `- warning: capture of non-sendable type 'I.Type' in an isolated closure
 26 |         let size = MemoryLayout<I>.size
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncExtensions/AsyncOutputStream.swift:63:33: warning: capture of 'self' with non-sendable type 'AsyncOutputStream' in a '@Sendable' closure [#SendableClosureCaptures]
  1 | import Foundation
  2 |
  3 | public final class AsyncOutputStream {
    |                    `- note: class 'AsyncOutputStream' does not conform to the 'Sendable' protocol
  4 |     private var state: State
  5 |
    :
 61 |                     let bytesWritten = try data
 62 |                         .withUnsafeBytes { (ptr: UnsafeRawBufferPointer) in
 63 |                             try self.state.write(
    |                                 `- warning: capture of 'self' with non-sendable type 'AsyncOutputStream' in a '@Sendable' closure [#SendableClosureCaptures]
 64 |                                 ptr.baseAddress!.assumingMemoryBound(to: UInt8.self),
 65 |                                 length: data.count
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[15/17] Compiling AsyncExtensions AnyAsyncSequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncExtensions/AnyAsyncSequence.swift:9:32: warning: capture of non-sendable type 'Base.AsyncIterator.Type' in an isolated closure; this is an error in the Swift 6 language mode
 7 |         _ base: Base
 8 |     ) where Base.Element == Element, Base: Sendable {
 9 |         _makeAsyncIterator = { AnyAsyncIterator(base: base.makeAsyncIterator()) }
   |                                `- warning: capture of non-sendable type 'Base.AsyncIterator.Type' in an isolated closure; this is an error in the Swift 6 language mode
10 |     }
11 |
[16/17] Compiling AsyncExtensions AsyncInputStream.swift
[17/17] Emitting module AsyncExtensions
[18/20] Emitting module AsyncTestExtensions
[19/20] Compiling AsyncTestExtensions Assertions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncTestExtensions/Assertions.swift:121:40: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
119 |                     await Task.yield()
120 |
121 |                     async let _expr1 = expression1()
    |                                        `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
122 |                     async let _expr2 = expression2()
123 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncTestExtensions/Assertions.swift:105:7: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
103 |
104 | public func AssertEqualEventually<T: Equatable>(
105 |     _ expression1: @escaping @autoclosure () async throws -> T,
    |       `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
106 |     _ expression2: @escaping @autoclosure () async throws -> T,
107 |     _ timeout: TimeInterval = 5,
/Users/admin/builder/spi-builder-workspace/Sources/AsyncTestExtensions/Assertions.swift:136:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
134 |             // TODO: Replace with `Clock` once minimum supported version >= iOS 16
135 |             try? await Task.sleep(nanoseconds: UInt64(timeout * Double(NSEC_PER_SEC)))
136 |             return .failure(AssertionTimeoutError())
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
137 |         }
138 |
[20/20] Compiling AsyncTestExtensions XCTestCase+AsyncTestExtensions.swift
Build complete! (14.77s)
Fetching https://github.com/shareup/synchronized.git
[1/205] Fetching synchronized
Fetched https://github.com/shareup/synchronized.git from cache (0.72s)
Computing version for https://github.com/shareup/synchronized.git
Computed https://github.com/shareup/synchronized.git at 4.0.1 (3.21s)
Creating working copy for https://github.com/shareup/synchronized.git
Working copy of https://github.com/shareup/synchronized.git resolved at 4.0.1
Build complete.
{
  "dependencies" : [
    {
      "identity" : "synchronized",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/shareup/synchronized.git"
    }
  ],
  "manifest_display_name" : "AsyncExtensions",
  "name" : "AsyncExtensions",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncExtensions",
      "targets" : [
        "AsyncExtensions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AsyncTestExtensions",
      "targets" : [
        "AsyncTestExtensions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncTestExtensionsTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncTestExtensionsTests",
      "path" : "Tests/AsyncTestExtensionsTests",
      "sources" : [
        "AssertionsTests.swift",
        "XCTestCase+AsyncTestExtensionsTests.swift"
      ],
      "target_dependencies" : [
        "AsyncTestExtensions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncTestExtensions",
      "module_type" : "SwiftTarget",
      "name" : "AsyncTestExtensions",
      "path" : "Sources/AsyncTestExtensions",
      "product_dependencies" : [
        "Synchronized"
      ],
      "product_memberships" : [
        "AsyncTestExtensions"
      ],
      "sources" : [
        "Assertions.swift",
        "XCTestCase+AsyncTestExtensions.swift"
      ],
      "target_dependencies" : [
        "AsyncExtensions"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AsyncExtensionsTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncExtensionsTests",
      "path" : "Tests/AsyncExtensionsTests",
      "sources" : [
        "AnyAsyncSequenceTests.swift",
        "AsyncInputStreamTests.swift",
        "AsyncOutputStreamTests.swift",
        "AsyncThrowingFutureTests.swift",
        "Publisher+AsyncExtensionsTests.swift",
        "SequenceExtensionsTests.swift",
        "TaskStoreTests.swift"
      ],
      "target_dependencies" : [
        "AsyncExtensions",
        "AsyncTestExtensions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncExtensions",
      "module_type" : "SwiftTarget",
      "name" : "AsyncExtensions",
      "path" : "Sources/AsyncExtensions",
      "product_dependencies" : [
        "Synchronized"
      ],
      "product_memberships" : [
        "AsyncExtensions",
        "AsyncTestExtensions"
      ],
      "sources" : [
        "AnyAsyncSequence.swift",
        "AsyncInputStream.swift",
        "AsyncOutputStream.swift",
        "AsyncThrowingFuture.swift",
        "Publisher+AsyncExtensions.swift",
        "SequenceExtensions.swift",
        "TaskStore.swift",
        "TimeoutError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.