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.1 for macOS (SPM) on 28 Apr 2025 22:57:55 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
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 from cache
[1/4965] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms from cache (0.97s)
Computing version for https://github.com/apple/swift-async-algorithms
Fetched https://github.com/apple/swift-collections.git from cache (0.99s)
Computed https://github.com/apple/swift-async-algorithms at 1.0.0 (1.48s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.0 (1.12s)
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
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
========================================
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.4",
          "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.71s)
Fetching https://github.com/apple/swift-async-algorithms from cache
Fetched https://github.com/apple/swift-async-algorithms from cache (0.50s)
Computing version for https://github.com/apple/swift-async-algorithms
Computed https://github.com/apple/swift-async-algorithms at 1.0.4 (1.06s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.49s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (1.14s)
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
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.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.1
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.3.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-2F0A5646E1D333AE.txt
[12/29] Compiling _CollectionsUtilities UnsafeBufferPointer+Extras.swift
[13/30] Compiling _CollectionsUtilities RandomAccessCollection+Offsets.swift
[14/30] Compiling _CollectionsUtilities Specialize.swift
[15/30] Compiling _CollectionsUtilities _SortedCollection.swift
[16/30] Compiling _CollectionsUtilities _UniqueCollection.swift
[17/30] Compiling _CollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[18/30] Compiling _CollectionsUtilities UInt+reversed.swift
[19/30] Compiling _CollectionsUtilities _UnsafeBitSet+Index.swift
[20/30] Compiling _CollectionsUtilities Debugging.swift
[21/30] Compiling _CollectionsUtilities Descriptions.swift
[22/30] Compiling _CollectionsUtilities Integer rank.swift
[23/30] Compiling _CollectionsUtilities UInt+first and last set bit.swift
[24/30] Compiling _CollectionsUtilities UnsafeRawPointer extensions.swift
[25/30] Compiling _CollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[26/30] Compiling _CollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[27/30] Compiling _CollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[28/30] Compiling _CollectionsUtilities _UnsafeBitSet+_Word.swift
[29/30] Compiling _CollectionsUtilities _UnsafeBitSet.swift
[30/30] Emitting module _CollectionsUtilities
[31/313] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[32/313] Compiling HeapModule Heap+Descriptions.swift
[33/313] Compiling _RopeModule BigString+Chunk+Append and Insert.swift
[34/313] Compiling _RopeModule BigString+Chunk+Breaks.swift
[35/314] Compiling _RopeModule BigString+Builder.swift
[36/314] Compiling _RopeModule BigString+Contents.swift
[37/314] Compiling _RopeModule BigString+Debugging.swift
[38/314] Compiling _RopeModule BigString+Index.swift
[39/314] Compiling _RopeModule BigString+Iterators.swift
[40/314] Compiling _RopeModule BigString+Metrics.swift
[41/314] Compiling HeapModule _HeapNode.swift
[42/314] Compiling HeapModule Heap.swift
[43/314] Compiling HashTreeCollections _UnmanagedHashNode.swift
[44/314] Compiling HashTreeCollections _UnsafePath.swift
[45/314] Compiling HashTreeCollections TreeDictionary+Codable.swift
[46/314] Compiling HashTreeCollections TreeDictionary+Collection.swift
[47/314] Compiling HashTreeCollections TreeDictionary+CustomReflectable.swift
[48/314] Compiling HashTreeCollections TreeDictionary+Debugging.swift
[49/320] Compiling HeapModule Heap+UnsafeHandle.swift
[50/320] Compiling HeapModule Heap+Invariants.swift
[51/320] Emitting module HeapModule
[52/320] Compiling _RopeModule Rope+_Storage.swift
[53/320] Compiling _RopeModule Rope+_UnmanagedLeaf.swift
[54/320] Compiling _RopeModule Rope+_UnsafeHandle.swift
[55/320] Compiling HashTreeCollections TreeDictionary+Sendable.swift
[56/320] Compiling HashTreeCollections TreeSet+Equatable.swift
[57/320] Compiling HashTreeCollections TreeSet+ExpressibleByArrayLiteral.swift
[58/320] Compiling HashTreeCollections TreeDictionary+Descriptions.swift
[59/320] Compiling HashTreeCollections TreeDictionary+Equatable.swift
[60/320] Compiling HashTreeCollections TreeDictionary+ExpressibleByDictionaryLiteral.swift
[61/320] Compiling HashTreeCollections TreeDictionary+Filter.swift
[62/320] Compiling _RopeModule Rope+Invariants.swift
[63/320] Compiling _RopeModule Rope+_Node.swift
[64/320] Compiling DequeModule _UnsafeWrappedBuffer.swift
[65/320] Compiling HashTreeCollections _RawHashNode.swift
[71/325] Compiling _RopeModule BigString+ExpressibleByStringLiteral.swift
[72/325] Compiling _RopeModule BigString+Hashing.swift
[73/325] Compiling _RopeModule BigString+LosslessStringConvertible.swift
[74/325] Compiling HashTreeCollections _HashNode+Subtree Removals.swift
[75/325] Compiling HashTreeCollections _HashNode+UnsafeHandle.swift
[76/325] Compiling HashTreeCollections _HashNode.swift
[77/325] Compiling HashTreeCollections _HashNodeHeader.swift
[78/325] Compiling HashTreeCollections _HashSlot.swift
[79/325] Compiling HashTreeCollections _HashStack.swift
[80/325] Compiling HashTreeCollections _HashTreeIterator.swift
[81/325] Compiling HashTreeCollections _HashTreeStatistics.swift
[82/325] Compiling HashTreeCollections _RawHashNode+UnsafeHandle.swift
[89/325] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[90/325] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[91/325] Compiling HashTreeCollections TreeSet+SetAlgebra formSymmetricDifference.swift
[92/325] Compiling HashTreeCollections TreeSet+SetAlgebra formUnion.swift
[93/325] Compiling HashTreeCollections TreeSet+SetAlgebra intersection.swift
[94/325] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[95/325] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[96/325] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[98/325] Compiling BitCollections BitSet.swift
[99/325] Compiling BitCollections Range+Utilities.swift
[100/325] Compiling BitCollections Slice+Utilities.swift
[101/325] Compiling BitCollections UInt+Tricks.swift
[102/325] Compiling BitCollections _Word.swift
[103/325] Compiling OrderedCollections OrderedSet.swift
[104/325] Compiling OrderedCollections _UnsafeBitset.swift
[113/333] Emitting module BitCollections
[114/333] Compiling _RopeModule BigString+Chunk+Description.swift
[115/333] Compiling _RopeModule BigString+Chunk+Indexing by Characters.swift
[116/333] Compiling _RopeModule BigString+Chunk+Indexing by UTF16.swift
[117/333] Compiling _RopeModule BigString+Chunk+RopeElement.swift
[118/333] Compiling _RopeModule BigString+Chunk+Splitting.swift
[119/333] Compiling HashTreeCollections _HashNode+Structural isEqualSet.swift
[121/333] Compiling _RopeModule BigString+Summary.swift
[122/333] Compiling _RopeModule BigString.swift
[125/333] Compiling _RopeModule BigString+Chunk+Counts.swift
[126/333] Compiling DequeModule _DequeBufferHeader.swift
[127/333] Compiling DequeModule _DequeSlot.swift
[144/333] Compiling HashTreeCollections TreeDictionary+Sequence.swift
[145/333] Compiling HashTreeCollections TreeDictionary+Values.swift
[146/333] Compiling HashTreeCollections TreeDictionary.swift
[147/333] Compiling HashTreeCollections TreeSet+Codable.swift
[148/333] Compiling HashTreeCollections TreeSet+Collection.swift
[149/333] Compiling HashTreeCollections TreeSet+CustomReflectable.swift
[150/333] Compiling HashTreeCollections TreeSet+Debugging.swift
[151/333] Compiling HashTreeCollections TreeSet+Descriptions.swift
[156/333] Compiling _RopeModule BigString+Ingester.swift
[157/333] Compiling _RopeModule BigString+Invariants.swift
[158/333] Compiling _RopeModule BigString+BidirectionalCollection.swift
[159/333] Compiling _RopeModule BigString+Comparable.swift
[160/333] Compiling HashTreeCollections _HashNode+Structural merge.swift
[161/333] Compiling HashTreeCollections _HashNode+Structural subtracting.swift
[162/333] Compiling _RopeModule BigString+Equatable.swift
[195/333] Emitting module DequeModule
[196/333] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[197/333] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[198/333] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[199/333] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[200/333] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[201/333] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[202/333] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[203/333] Compiling HashTreeCollections TreeSet.swift
[305/340] Emitting module OrderedCollections
[324/340] Compiling _RopeModule Rope+Remove.swift
[325/340] Compiling _RopeModule Rope+RemoveSubrange.swift
[326/340] Compiling _RopeModule Rope+Split.swift
[327/340] Compiling _RopeModule Optional Utilities.swift
[328/340] Compiling _RopeModule String Utilities.swift
[329/340] Compiling _RopeModule String.Index+ABI.swift
[330/340] Compiling _RopeModule _CharacterRecognizer.swift
[331/340] Emitting module _RopeModule
[340/340] Emitting module HashTreeCollections
[341/342] Emitting module Collections
[342/342] Compiling Collections Collections.swift
[343/388] Emitting module AsyncAlgorithms
[344/392] Compiling AsyncAlgorithms AsyncChunkedOnProjectionSequence.swift
[345/392] Compiling AsyncAlgorithms AsyncChunksOfCountOrSignalSequence.swift
[346/392] Compiling AsyncAlgorithms AsyncChunksOfCountSequence.swift
[347/392] Compiling AsyncAlgorithms AsyncCompactedSequence.swift
[348/392] Compiling AsyncAlgorithms AsyncExclusiveReductionsSequence.swift
[349/392] Compiling AsyncAlgorithms AsyncThrowingChannel.swift
[350/392] Compiling AsyncAlgorithms ChannelStateMachine.swift
[351/392] Compiling AsyncAlgorithms ChannelStorage.swift
[352/392] Compiling AsyncAlgorithms AsyncCombineLatest2Sequence.swift
[353/392] Compiling AsyncAlgorithms AsyncCombineLatest3Sequence.swift
[354/392] Compiling AsyncAlgorithms BoundedBufferStateMachine.swift
[355/392] Compiling AsyncAlgorithms BoundedBufferStorage.swift
[356/392] Compiling AsyncAlgorithms UnboundedBufferStateMachine.swift
[357/392] Compiling AsyncAlgorithms UnboundedBufferStorage.swift
[358/392] Compiling AsyncAlgorithms AsyncChannel.swift
[359/392] Compiling AsyncAlgorithms AsyncThrottleSequence.swift
[360/392] Compiling AsyncAlgorithms AsyncThrowingExclusiveReductionsSequence.swift
[361/392] Compiling AsyncAlgorithms AsyncThrowingInclusiveReductionsSequence.swift
[362/392] Compiling AsyncAlgorithms AsyncTimerSequence.swift
[363/392] Compiling AsyncAlgorithms AsyncBufferSequence.swift
[364/392] Compiling AsyncAlgorithms AsyncAdjacentPairsSequence.swift
[365/392] Compiling AsyncAlgorithms AsyncBufferedByteIterator.swift
[366/392] Compiling AsyncAlgorithms AsyncChain2Sequence.swift
[367/392] Compiling AsyncAlgorithms AsyncChain3Sequence.swift
[368/392] Compiling AsyncAlgorithms AsyncChunkedByGroupSequence.swift
[369/392] Compiling AsyncAlgorithms AsyncZip2Sequence.swift
[370/392] Compiling AsyncAlgorithms AsyncZip3Sequence.swift
[371/392] Compiling AsyncAlgorithms ZipStateMachine.swift
[372/392] Compiling AsyncAlgorithms ZipStorage.swift
[373/392] Compiling AsyncAlgorithms AsyncInclusiveReductionsSequence.swift
[374/392] Compiling AsyncAlgorithms AsyncJoinedBySeparatorSequence.swift
[375/392] Compiling AsyncAlgorithms AsyncJoinedSequence.swift
[376/392] Compiling AsyncAlgorithms AsyncRemoveDuplicatesSequence.swift
[377/392] Compiling AsyncAlgorithms AsyncSyncSequence.swift
[378/392] Compiling AsyncAlgorithms Dictionary.swift
[379/392] Compiling AsyncAlgorithms AsyncInterspersedSequence.swift
[380/392] Compiling AsyncAlgorithms Locking.swift
[381/392] Compiling AsyncAlgorithms AsyncMerge2Sequence.swift
[382/392] Compiling AsyncAlgorithms AsyncMerge3Sequence.swift
[383/392] Compiling AsyncAlgorithms MergeStateMachine.swift
[384/392] Compiling AsyncAlgorithms MergeStorage.swift
[385/392] Compiling AsyncAlgorithms RangeReplaceableCollection.swift
[386/392] Compiling AsyncAlgorithms Rethrow.swift
[387/392] Compiling AsyncAlgorithms SetAlgebra.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.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
[394/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 |                 }
[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 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 |     }
[398/401] Compiling SwiftSessions Or.swift
[399/401] Compiling SwiftSessions Endpoint.swift
[400/401] Emitting module SwiftSessions
[401/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 |     }
Build complete! (10.90s)
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.