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 SwiftSessions, reference main (d10cac), with Swift 6.0 for macOS (SPM) on 22 Apr 2025 20:28:32 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.60.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alessiorubicini/SwiftSessions.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alessiorubicini/SwiftSessions
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d10caca Updated README
Cloned https://github.com/alessiorubicini/SwiftSessions.git
Revision (git rev-parse @):
d10cacac995c45952a00cdb899f2c897a2c49ba0
SUCCESS checkout https://github.com/alessiorubicini/SwiftSessions.git at main
Fetching https://github.com/apple/swift-async-algorithms
Fetching https://github.com/apple/swift-collections.git
[1/16175] Fetching swift-collections
[2/21138] Fetching swift-collections, swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms from cache (1.11s)
[2750/16175] Fetching swift-collections
Computing version for https://github.com/apple/swift-async-algorithms
Computed https://github.com/apple/swift-async-algorithms at 1.0.0 (0.48s)
Fetched https://github.com/apple/swift-collections.git from cache (1.69s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.0 (3.07s)
Creating working copy for https://github.com/apple/swift-async-algorithms
Working copy of https://github.com/apple/swift-async-algorithms resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swiftsessions",
      "name": "SwiftSessions",
      "url": "https://github.com/alessiorubicini/SwiftSessions.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftSessions",
      "dependencies": [
        {
          "identity": "swift-async-algorithms",
          "name": "swift-async-algorithms",
          "url": "https://github.com/apple/swift-async-algorithms",
          "version": "1.0.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-async-algorithms",
          "dependencies": [
            {
              "identity": "swift-collections",
              "name": "swift-collections",
              "url": "https://github.com/apple/swift-collections.git",
              "version": "1.1.4",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/alessiorubicini/SwiftSessions.git
[1/516] Fetching swiftsessions
Fetched https://github.com/alessiorubicini/SwiftSessions.git from cache (0.76s)
Fetching https://github.com/apple/swift-async-algorithms from cache
Fetched https://github.com/apple/swift-async-algorithms from cache (0.53s)
Computing version for https://github.com/apple/swift-async-algorithms
Computed https://github.com/apple/swift-async-algorithms at 1.0.3 (0.46s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.56s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.61s)
Creating working copy for https://github.com/apple/swift-async-algorithms
Working copy of https://github.com/apple/swift-async-algorithms resolved at 1.0.3
Creating working copy for https://github.com/alessiorubicini/SwiftSessions.git
Working copy of https://github.com/alessiorubicini/SwiftSessions.git resolved at main (d10caca)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
warning: '.resolve-product-dependencies': dependency 'swiftsessions' is not used by any target
Found 1 product dependencies
  - swift-async-algorithms
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/alessiorubicini/SwiftSessions.git
https://github.com/alessiorubicini/SwiftSessions.git
{
  "dependencies" : [
    {
      "identity" : "swift-async-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-async-algorithms"
    }
  ],
  "manifest_display_name" : "SwiftSessions",
  "name" : "SwiftSessions",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftSessions",
      "targets" : [
        "SwiftSessions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftSessionsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSessionsTests",
      "path" : "Tests",
      "product_dependencies" : [
        "AsyncAlgorithms"
      ],
      "sources" : [
        "BranchingTests.swift",
        "LinearityTests.swift",
        "LoopTests.swift",
        "MathTests.swift",
        "StandardTests.swift"
      ],
      "target_dependencies" : [
        "SwiftSessions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftSessions",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSessions",
      "path" : "Sources/SwiftSessions",
      "product_dependencies" : [
        "AsyncAlgorithms"
      ],
      "product_memberships" : [
        "SwiftSessions"
      ],
      "sources" : [
        "Client.swift",
        "Empty.swift",
        "Endpoint.swift",
        "Or.swift",
        "Server.swift",
        "Session/Session+Closures.swift",
        "Session/Session+Passing.swift",
        "Session/Session.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/11] Write sources
[10/11] Write swift-version-5BDAB9E9C0126B9D.txt
[12/29] Compiling _CollectionsUtilities RandomAccessCollection+Offsets.swift
[13/29] Compiling _CollectionsUtilities Specialize.swift
[14/30] Compiling _CollectionsUtilities UnsafeRawPointer extensions.swift
[15/30] Compiling _CollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[16/30] Compiling _CollectionsUtilities Debugging.swift
[17/30] Compiling _CollectionsUtilities Descriptions.swift
[18/30] Compiling _CollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[19/30] Emitting module _CollectionsUtilities
[20/30] Compiling _CollectionsUtilities _UnsafeBitSet+_Word.swift
[21/30] Compiling _CollectionsUtilities _UnsafeBitSet.swift
[22/30] Compiling _CollectionsUtilities Integer rank.swift
[23/30] Compiling _CollectionsUtilities UInt+first and last set bit.swift
[24/30] Compiling _CollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[25/30] Compiling _CollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[26/30] Compiling _CollectionsUtilities UnsafeBufferPointer+Extras.swift
[27/30] Compiling _CollectionsUtilities UInt+reversed.swift
[28/30] Compiling _CollectionsUtilities _UnsafeBitSet+Index.swift
[29/30] Compiling _CollectionsUtilities _SortedCollection.swift
[30/30] Compiling _CollectionsUtilities _UniqueCollection.swift
[31/313] Compiling DequeModule _DequeBufferHeader.swift
[32/314] Compiling HashTreeCollections TreeSet+Codable.swift
[33/314] Compiling HashTreeCollections TreeSet+Collection.swift
[34/314] Compiling DequeModule _DequeSlot.swift
[35/314] Compiling HeapModule _HeapNode.swift
[36/314] Compiling HeapModule Heap.swift
[37/314] Compiling HeapModule Heap+Invariants.swift
[38/314] Compiling HashTreeCollections _HashNode+Storage.swift
[39/314] Compiling HashTreeCollections _HashNode+Structural compactMapValues.swift
[40/314] Compiling HashTreeCollections _HashNode+Primitive Removals.swift
[41/314] Compiling HashTreeCollections _HashNode+Primitive Replacement.swift
[42/314] Compiling HashTreeCollections _HashNode+Structural filter.swift
[43/314] Compiling HashTreeCollections _HashNode+Structural intersection.swift
[44/314] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[45/314] Compiling HeapModule Heap+Descriptions.swift
[46/314] Compiling HeapModule Heap+UnsafeHandle.swift
[47/314] Compiling DequeModule _UnsafeWrappedBuffer.swift
[48/314] Compiling HashTreeCollections TreeSet+SetAlgebra formUnion.swift
[49/314] Compiling HashTreeCollections TreeSet+SetAlgebra intersection.swift
[50/314] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[51/314] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[52/314] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[53/314] Compiling HashTreeCollections _HashNode+Structural isEqualSet.swift
[55/320] Compiling HashTreeCollections _HashNode+Structural isSubset.swift
[56/320] Compiling HashTreeCollections _HashNode+Structural mapValues.swift
[57/320] Compiling HashTreeCollections _HashNode+Structural merge.swift
[58/320] Compiling HashTreeCollections _HashNode+Structural subtracting.swift
[59/320] Compiling HashTreeCollections _HashNode+Structural symmetricDifference.swift
[60/320] Compiling HashTreeCollections TreeSet+SetAlgebra formSymmetricDifference.swift
[66/325] Compiling HashTreeCollections _HashNode+Subtree Insertions.swift
[67/325] Compiling HashTreeCollections _HashNode+Subtree Modify.swift
[68/325] Compiling HashTreeCollections _AncestorHashSlots.swift
[69/325] Compiling HashTreeCollections _Bitmap.swift
[70/325] Compiling HashTreeCollections _Bucket.swift
[71/325] Compiling BitCollections BitSet.swift
[77/325] Compiling HashTreeCollections _HashNode+Structural union.swift
[78/325] Compiling HashTreeCollections TreeDictionary+Sendable.swift
[79/325] Compiling HashTreeCollections _RawHashNode.swift
[80/325] Compiling HashTreeCollections _UnmanagedHashNode.swift
[81/325] Compiling HashTreeCollections _UnsafePath.swift
[82/325] Compiling HashTreeCollections TreeDictionary+Codable.swift
[83/325] Compiling HashTreeCollections TreeDictionary+Collection.swift
[84/325] Compiling HashTreeCollections TreeDictionary+CustomReflectable.swift
[85/325] Compiling HashTreeCollections TreeDictionary+Debugging.swift
[86/325] Compiling HashTreeCollections TreeDictionary+Descriptions.swift
[87/325] Compiling HashTreeCollections TreeDictionary+Equatable.swift
[88/325] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[89/325] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[90/325] Emitting module HeapModule
[92/325] Compiling HashTreeCollections _HashNode+Structural isDisjoint.swift
[93/325] Compiling HashTreeCollections TreeDictionary+Sequence.swift
[94/325] Compiling HashTreeCollections TreeDictionary+Values.swift
[95/325] Compiling HashTreeCollections TreeDictionary.swift
[114/325] Compiling BitCollections Range+Utilities.swift
[115/325] Compiling BitCollections Slice+Utilities.swift
[116/325] Compiling BitCollections UInt+Tricks.swift
[117/325] Compiling BitCollections _Word.swift
[126/325] Compiling HashTreeCollections TreeSet+CustomReflectable.swift
[127/325] Compiling HashTreeCollections TreeSet+Debugging.swift
[128/325] Compiling HashTreeCollections TreeSet+Descriptions.swift
[129/325] Compiling HashTreeCollections TreeDictionary+ExpressibleByDictionaryLiteral.swift
[130/325] Compiling HashTreeCollections TreeDictionary+Filter.swift
[131/325] Compiling HashTreeCollections TreeDictionary+Hashable.swift
[132/325] Compiling HashTreeCollections TreeDictionary+Initializers.swift
[133/325] Compiling HashTreeCollections TreeDictionary+Keys.swift
[134/325] Compiling HashTreeCollections TreeDictionary+MapValues.swift
[135/325] Compiling HashTreeCollections TreeDictionary+Merge.swift
[136/325] Compiling HashTreeCollections _HashNode+Lookups.swift
[137/325] Compiling HashTreeCollections _HashNode+Primitive Insertions.swift
[167/325] Emitting module BitCollections
[192/332] Compiling HashTreeCollections TreeSet+Extras.swift
[193/332] Compiling HashTreeCollections TreeSet+Filter.swift
[194/332] Compiling HashTreeCollections TreeSet+Hashable.swift
[195/332] Compiling HashTreeCollections TreeSet+Sendable.swift
[196/332] Compiling HashTreeCollections TreeSet+Sequence.swift
[197/332] Compiling HashTreeCollections TreeSet+SetAlgebra Initializers.swift
[198/332] Compiling HashTreeCollections _HashNode+Subtree Removals.swift
[235/340] Emitting module DequeModule
[237/340] Compiling _RopeModule Rope+Remove.swift
[238/340] Compiling _RopeModule Rope+RemoveSubrange.swift
[239/340] Compiling _RopeModule Rope+Split.swift
[240/340] Compiling _RopeModule Optional Utilities.swift
[241/340] Compiling _RopeModule String Utilities.swift
[242/340] Compiling _RopeModule String.Index+ABI.swift
[243/340] Compiling _RopeModule _CharacterRecognizer.swift
[244/340] Compiling HashTreeCollections _RawHashNode+UnsafeHandle.swift
[245/340] Compiling OrderedCollections _UnsafeBitset.swift
[246/340] Compiling HashTreeCollections TreeSet+ExpressibleByArrayLiteral.swift
[257/340] Compiling OrderedCollections OrderedSet.swift
[259/340] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[260/340] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[261/340] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[262/340] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[263/340] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[264/340] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[265/340] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[266/340] Compiling HashTreeCollections TreeSet.swift
[338/340] Emitting module OrderedCollections
[339/340] Emitting module _RopeModule
[340/340] Emitting module HashTreeCollections
[341/342] Emitting module Collections
[342/342] Compiling Collections Collections.swift
[343/388] Compiling AsyncAlgorithms AsyncThrowingChannel.swift
[344/388] Compiling AsyncAlgorithms ChannelStateMachine.swift
[345/388] Compiling AsyncAlgorithms ChannelStorage.swift
[346/388] Compiling AsyncAlgorithms AsyncCombineLatest2Sequence.swift
[347/388] Compiling AsyncAlgorithms AsyncCombineLatest3Sequence.swift
[348/392] Compiling AsyncAlgorithms AsyncChunkedOnProjectionSequence.swift
[349/392] Compiling AsyncAlgorithms AsyncChunksOfCountOrSignalSequence.swift
[350/392] Compiling AsyncAlgorithms AsyncChunksOfCountSequence.swift
[351/392] Compiling AsyncAlgorithms AsyncCompactedSequence.swift
[352/392] Compiling AsyncAlgorithms AsyncExclusiveReductionsSequence.swift
[353/392] Compiling AsyncAlgorithms AsyncThrottleSequence.swift
[354/392] Compiling AsyncAlgorithms AsyncThrowingExclusiveReductionsSequence.swift
[355/392] Compiling AsyncAlgorithms AsyncThrowingInclusiveReductionsSequence.swift
[356/392] Compiling AsyncAlgorithms AsyncTimerSequence.swift
[357/392] Compiling AsyncAlgorithms AsyncBufferSequence.swift
[358/392] Compiling AsyncAlgorithms AsyncInclusiveReductionsSequence.swift
[359/392] Compiling AsyncAlgorithms AsyncJoinedBySeparatorSequence.swift
[360/392] Compiling AsyncAlgorithms AsyncJoinedSequence.swift
[361/392] Compiling AsyncAlgorithms AsyncRemoveDuplicatesSequence.swift
[362/392] Compiling AsyncAlgorithms AsyncSyncSequence.swift
[363/392] Compiling AsyncAlgorithms AsyncAdjacentPairsSequence.swift
[364/392] Compiling AsyncAlgorithms AsyncBufferedByteIterator.swift
[365/392] Compiling AsyncAlgorithms AsyncChain2Sequence.swift
[366/392] Compiling AsyncAlgorithms AsyncChain3Sequence.swift
[367/392] Compiling AsyncAlgorithms AsyncChunkedByGroupSequence.swift
[368/392] Emitting module AsyncAlgorithms
[369/392] Compiling AsyncAlgorithms MergeStateMachine.swift
[370/392] Compiling AsyncAlgorithms MergeStorage.swift
[371/392] Compiling AsyncAlgorithms RangeReplaceableCollection.swift
[372/392] Compiling AsyncAlgorithms Rethrow.swift
[373/392] Compiling AsyncAlgorithms SetAlgebra.swift
[374/392] Compiling AsyncAlgorithms BoundedBufferStateMachine.swift
[375/392] Compiling AsyncAlgorithms BoundedBufferStorage.swift
[376/392] Compiling AsyncAlgorithms UnboundedBufferStateMachine.swift
[377/392] Compiling AsyncAlgorithms UnboundedBufferStorage.swift
[378/392] Compiling AsyncAlgorithms AsyncChannel.swift
[379/392] Compiling AsyncAlgorithms Dictionary.swift
[380/392] Compiling AsyncAlgorithms AsyncInterspersedSequence.swift
[381/392] Compiling AsyncAlgorithms Locking.swift
[382/392] Compiling AsyncAlgorithms AsyncMerge2Sequence.swift
[383/392] Compiling AsyncAlgorithms AsyncMerge3Sequence.swift
[384/392] Compiling AsyncAlgorithms AsyncZip2Sequence.swift
[385/392] Compiling AsyncAlgorithms AsyncZip3Sequence.swift
[386/392] Compiling AsyncAlgorithms ZipStateMachine.swift
[387/392] Compiling AsyncAlgorithms ZipStorage.swift
[388/392] Compiling AsyncAlgorithms CombineLatestStateMachine.swift
[389/392] Compiling AsyncAlgorithms CombineLatestStorage.swift
[390/392] Compiling AsyncAlgorithms AsyncDebounceSequence.swift
[391/392] Compiling AsyncAlgorithms DebounceStateMachine.swift
[392/392] Compiling AsyncAlgorithms DebounceStorage.swift
[393/401] Compiling SwiftSessions Session+Passing.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSessions/Session/Session+Passing.swift:22:29: warning: type 'A' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
19 |     ///   - endpoint: The endpoint to which the payload is sent.
20 |     /// - Returns: The continuation endpoint
21 |     static func send<A, B, C>(_ payload: A, on endpoint: Endpoint<(A, Endpoint<B, C>), Empty>) async -> Endpoint<C, B> {
   |                      `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
22 |         await endpoint.send(payload)
   |                             `- warning: type 'A' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 |         return Endpoint<C, B>(from: endpoint)
24 |     }
[394/401] Compiling SwiftSessions Session.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSessions/Session/Session.swift:27:14: 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
25 |         let endpoint1 = Endpoint<A, B>(with: channel)
26 |         let endpoint2 = Endpoint<B, A>(with: channel)
27 |         Task {
   |              `- 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
28 |             await sideOne(endpoint2)
   |                   |       `- note: closure captures non-Sendable 'endpoint2'
   |                   `- note: closure captures non-Sendable 'sideOne'
29 |         }
30 |         Task {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSessions/Session/Session.swift:30:14: 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
28 |             await sideOne(endpoint2)
29 |         }
30 |         Task {
   |              `- 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
31 |             await sideTwo(endpoint1)
   |                   `- note: closure captures 'sideTwo' which is accessible to code in the current task
32 |         }
33 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSessions/Session/Session.swift:42:14: 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
40 |         let e1 = Endpoint<A, B>(with: channel)
41 |         let e2 = Endpoint<B, A>(with: channel)
42 |         Task {
   |              `- 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
43 |             await closure(e2)
   |                   `- note: closure captures 'closure' which is accessible to code in the current task
44 |         }
45 |         return e1
[395/401] Compiling SwiftSessions Session+Closures.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSessions/Session/Session+Closures.swift:23:29: warning: type 'A' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 |     ///   - continuation: A closure to be invoked after the send operation completes.
21 |     ///                    This closure receives the continuation endpoint for further communication.
22 |     static func send<A, B, C>(_ payload: A, on endpoint: Endpoint<(A, Endpoint<B, C>), Empty>, continuation: @escaping (Endpoint<C, B>) async -> Void) async {
   |                      `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
23 |         await endpoint.send(payload)
   |                             `- warning: type 'A' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
24 |         let continuationEndpoint = Endpoint<C, B>(from: endpoint)
25 |         await continuation(continuationEndpoint)
[396/401] Compiling SwiftSessions Empty.swift
[397/401] Compiling SwiftSessions Endpoint.swift
[398/401] Compiling SwiftSessions Client.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSessions/Client.swift:22:14: 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
20 |         await server.connect(with: channel)
21 |         let c = Endpoint<B, A>(with: channel)
22 |         Task {
   |              `- 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
23 |             await closure(c)
   |                   |       `- note: closure captures non-Sendable 'c'
   |                   `- note: closure captures non-Sendable 'closure'
24 |         }
25 |     }
[399/401] Compiling SwiftSessions Or.swift
[400/401] Compiling SwiftSessions Server.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSessions/Server.swift:21:14: 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
19 |     init(_ closure: @escaping (_: Endpoint<A, B>) async -> Void) async {
20 |         publicChannel = AsyncChannel()
21 |         Task {
   |              `- 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
22 |             while true {
23 |                 for await request in publicChannel {
   |                                      `- note: closure captures 'self' which is accessible to code in the current task
24 |                     let asyncChannel = request as! AsyncChannel<Sendable>
25 |                     let endpoint = Endpoint<A, B>(with: asyncChannel)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSessions/Server.swift:26:26: 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
24 |                     let asyncChannel = request as! AsyncChannel<Sendable>
25 |                     let endpoint = Endpoint<A, B>(with: asyncChannel)
26 |                     Task {
   |                          `- 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
27 |                         await closure(endpoint)
   |                               `- note: closure captures 'closure' which is accessible to code in the current task
28 |                     }
29 |                 }
[401/401] Emitting module SwiftSessions
Build complete! (25.61s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-async-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-async-algorithms"
    }
  ],
  "manifest_display_name" : "SwiftSessions",
  "name" : "SwiftSessions",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftSessions",
      "targets" : [
        "SwiftSessions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftSessionsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSessionsTests",
      "path" : "Tests",
      "product_dependencies" : [
        "AsyncAlgorithms"
      ],
      "sources" : [
        "BranchingTests.swift",
        "LinearityTests.swift",
        "LoopTests.swift",
        "MathTests.swift",
        "StandardTests.swift"
      ],
      "target_dependencies" : [
        "SwiftSessions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftSessions",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSessions",
      "path" : "Sources/SwiftSessions",
      "product_dependencies" : [
        "AsyncAlgorithms"
      ],
      "product_memberships" : [
        "SwiftSessions"
      ],
      "sources" : [
        "Client.swift",
        "Empty.swift",
        "Endpoint.swift",
        "Or.swift",
        "Server.swift",
        "Session/Session+Closures.swift",
        "Session/Session+Passing.swift",
        "Session/Session.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.