Build Information
Successful build of async-kit, reference 1.21.0 (6f3615
), with Swift 6.2 (beta) for macOS (SPM) on 23 Aug 2025 16:13:51 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor/async-kit.git
Reference: 1.21.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vapor/async-kit
* tag 1.21.0 -> FETCH_HEAD
HEAD is now at 6f3615c Add support for pruning of idle pool connections (#110)
Cloned https://github.com/vapor/async-kit.git
Revision (git rev-parse @):
6f3615ccf2ac3c2ae0c8087d527546e9544a43dd
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vapor/async-kit.git at 1.21.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/vapor/async-kit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/32] Write sources
[1/32] Copying PrivacyInfo.xcprivacy
[1/32] Write sources
[16/32] Write swift-version-1EA4D86E10B52AF.txt
[17/32] Compiling CNIOWindows shim.c
[17/32] Compiling CNIOWindows WSAStartup.c
[17/32] Compiling CNIOWASI CNIOWASI.c
[20/32] Compiling CNIOLinux shim.c
[20/32] Compiling CNIOLinux liburing_shims.c
[22/32] Compiling _NumericsShims _NumericsShims.c
[23/32] Write sources
[24/67] Compiling _AtomicsShims.c
[25/67] Write sources
[28/67] Compiling CNIOPosix event_loop_id.c
[29/86] Compiling CNIODarwin shim.c
[31/86] Emitting module RealModule
[32/87] Compiling RealModule AlgebraicField.swift
[33/87] Compiling RealModule ApproximateEquality.swift
[34/87] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[35/88] Compiling RealModule RealFunctions.swift
[36/88] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[37/88] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[38/88] Compiling RealModule Real.swift
[39/88] Compiling RealModule AugmentedArithmetic.swift
[40/88] Compiling RealModule Double+Real.swift
[41/88] Compiling InternalCollectionsUtilities Debugging.swift
[42/88] Compiling InternalCollectionsUtilities Descriptions.swift
[43/88] Compiling RealModule Float80+Real.swift
[44/88] Compiling RealModule Float16+Real.swift
[45/88] Compiling RealModule ElementaryFunctions.swift
[46/88] Compiling RealModule Float+Real.swift
[47/88] Compiling _NIODataStructures PriorityQueue.swift
[48/88] Compiling _NIODataStructures _TinyArray.swift
[49/88] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[50/114] Emitting module InternalCollectionsUtilities
[51/114] Compiling Algorithms Grouped.swift
[52/114] Compiling Algorithms Indexed.swift
[53/114] Compiling Logging MetadataProvider.swift
[54/114] Compiling _NIOBase64 Base64.swift
[55/114] Emitting module _NIOBase64
[56/114] Emitting module _NIODataStructures
[57/114] Compiling _NIODataStructures Heap.swift
[58/114] Compiling Algorithms Intersperse.swift
[59/114] Compiling Algorithms RandomSample.swift
[60/114] Compiling Algorithms EitherSequence.swift
[61/114] Compiling Algorithms FirstNonNil.swift
[62/114] Compiling Algorithms Reductions.swift
[63/114] Compiling Algorithms Rotate.swift
[64/341] Compiling HashTreeCollections _HashNode+Structural subtracting.swift
[65/341] Compiling HashTreeCollections _HashNode+Structural symmetricDifference.swift
[66/341] Compiling HashTreeCollections _HashNode+Structural union.swift
[67/341] Compiling HashTreeCollections _HashNode+Subtree Insertions.swift
[68/341] Compiling HashTreeCollections _HashNode+Structural mapValues.swift
[69/341] Compiling HashTreeCollections _HashNode+Structural merge.swift
[70/341] Compiling HashTreeCollections _HashNode+Structural isEqualSet.swift
[71/341] Compiling HashTreeCollections _HashNode+Structural isSubset.swift
[72/341] Compiling HashTreeCollections TreeSet+SetAlgebra intersection.swift
[73/341] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[74/341] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[75/341] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[76/341] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[77/341] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[78/341] Compiling HashTreeCollections _HashNode+Subtree Modify.swift
[79/341] Compiling HashTreeCollections _AncestorHashSlots.swift
[80/341] Compiling HashTreeCollections TreeSet+SetAlgebra formSymmetricDifference.swift
[81/341] Compiling HashTreeCollections TreeSet+SetAlgebra formUnion.swift
[82/342] Compiling DequeModule _DequeSlot.swift
[83/343] Compiling HeapModule _HeapNode.swift
[84/343] Compiling HeapModule Heap.swift
[85/343] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[86/343] Compiling HeapModule Heap+Invariants.swift
[87/343] Compiling HeapModule Heap+UnsafeHandle.swift
[88/343] Emitting module Atomics
[89/343] Compiling HeapModule Heap+Descriptions.swift
[90/343] Emitting module HeapModule
[91/343] Compiling Atomics Unmanaged extensions.swift
[92/343] Compiling DequeModule _UnsafeWrappedBuffer.swift
[93/398] Compiling Logging LogHandler.swift
[94/398] Compiling Logging Locks.swift
[95/398] Emitting module Logging
[96/398] Compiling Logging Logging.swift
[97/398] Compiling BitCollections BitArray+BitwiseOperations.swift
[98/398] Compiling BitCollections BitArray+ChunkedBitsIterators.swift
[99/400] Compiling BitCollections BitSet+SetAlgebra formIntersection.swift
[100/400] Compiling BitCollections BitSet+SetAlgebra formSymmetricDifference.swift
[101/400] Compiling BitCollections BitSet+SetAlgebra formUnion.swift
[102/400] Compiling BitCollections BitSet+SetAlgebra intersection.swift
[103/400] Compiling BitCollections BitSet+SetAlgebra isDisjoint.swift
[104/400] Compiling BitCollections BitSet+SetAlgebra isEqualSet.swift
[105/406] Compiling DequeModule _DequeBufferHeader.swift
[106/406] Compiling DequeModule _DequeBuffer.swift
[107/406] Compiling BitCollections BitSet+Sorted Collection APIs.swift
[108/406] Compiling BitCollections BitSet.Counted.swift
[111/406] Compiling BitCollections BitSet.Index.swift
[112/406] Compiling BitCollections BitSet._UnsafeHandle.swift
[113/406] Compiling BitCollections BitSet+SetAlgebra symmetricDifference.swift
[114/406] Compiling BitCollections BitSet+SetAlgebra union.swift
[119/406] Emitting module DequeModule
[120/406] Compiling BitCollections BitArray+Invariants.swift
[121/406] Compiling BitCollections BitArray+LosslessStringConvertible.swift
[122/406] Compiling BitCollections BitArray+Codable.swift
[123/406] Compiling BitCollections BitArray+Collection.swift
[124/406] Compiling BitCollections BitArray+Copy.swift
[125/406] Compiling BitCollections BitArray+RandomBits.swift
[126/406] Compiling BitCollections BitArray+RangeReplaceableCollection.swift
[127/406] Compiling BitCollections BitSet+Hashable.swift
[128/406] Compiling BitCollections BitArray+CustomReflectable.swift
[129/406] Compiling BitCollections BitArray+Hashable.swift
[130/406] Compiling BitCollections BitArray+Initializers.swift
[134/406] Compiling Algorithms Unique.swift
[135/406] Compiling Algorithms Windows.swift
[136/406] Emitting module BitCollections
[137/411] Compiling HashTreeCollections _HashNode+Primitive Removals.swift
[138/411] Compiling HashTreeCollections _HashNode+Primitive Replacement.swift
[139/411] Compiling HashTreeCollections _HashNode+Storage.swift
[140/411] Compiling HashTreeCollections _HashNode+Structural compactMapValues.swift
[141/411] Compiling HashTreeCollections _HashNode+Structural filter.swift
[142/411] Compiling HashTreeCollections _HashNode+Structural intersection.swift
[143/411] Compiling HashTreeCollections _HashNode+Structural isDisjoint.swift
[144/411] Compiling HashTreeCollections _RawHashNode.swift
[145/411] Compiling BitCollections BitArray+Extras.swift
[146/411] Compiling BitCollections BitArray+Fill.swift
[147/411] Compiling BitCollections BitArray+Shifts.swift
[148/411] Compiling BitCollections BitArray+Testing.swift
[149/411] Compiling BitCollections BitArray._UnsafeHandle.swift
[150/411] Compiling BitCollections BitArray.swift
[151/411] Compiling BitCollections BitSet+BidirectionalCollection.swift
[168/418] Compiling _RopeModule Rope+Remove.swift
[169/418] Compiling _RopeModule Rope+RemoveSubrange.swift
[170/418] Compiling _RopeModule Rope+Split.swift
[171/418] Compiling _RopeModule Optional Utilities.swift
[172/418] Compiling _RopeModule String Utilities.swift
[173/418] Compiling _RopeModule String.Index+ABI.swift
[174/418] Compiling _RopeModule _CharacterRecognizer.swift
[175/418] Compiling HashTreeCollections TreeDictionary+Equatable.swift
[180/426] Compiling BitCollections BitSet+Codable.swift
[181/426] Compiling BitCollections BitSet.swift
[185/426] Compiling BitCollections BitSet+Random.swift
[186/426] Compiling BitCollections BitSet+SetAlgebra basics.swift
[187/426] Compiling BitCollections BitSet+SetAlgebra conformance.swift
[188/426] Compiling BitCollections BitArray+Equatable.swift
[189/426] Compiling BitCollections BitArray+ExpressibleByArrayLiteral.swift
[190/426] Compiling BitCollections BitArray+ExpressibleByStringLiteral.swift
[194/426] Compiling BitCollections BitSet+CustomDebugStringConvertible.swift
[195/426] Compiling BitCollections BitSet+CustomReflectable.swift
[196/426] Compiling BitCollections BitSet+CustomStringConvertible.swift
[197/426] Compiling BitCollections BitSet+Equatable.swift
[198/426] Compiling BitCollections BitSet+ExpressibleByArrayLiteral.swift
[199/426] Compiling BitCollections BitSet+Extras.swift
[200/426] Compiling BitCollections BitSet+SetAlgebra isStrictSubset.swift
[201/426] Compiling BitCollections BitSet+SetAlgebra isStrictSuperset.swift
[202/426] Compiling BitCollections BitSet+SetAlgebra isSubset.swift
[203/426] Compiling BitCollections BitSet+SetAlgebra isSuperset.swift
[204/426] Compiling BitCollections BitSet+SetAlgebra subtract.swift
[205/426] Compiling BitCollections BitSet+SetAlgebra subtracting.swift
[206/426] Compiling BitCollections BitArray+Descriptions.swift
[245/426] Compiling c-nioatomics.c
[249/426] Compiling BitCollections Range+Utilities.swift
[250/426] Compiling BitCollections Slice+Utilities.swift
[251/426] Compiling BitCollections UInt+Tricks.swift
[252/426] Compiling BitCollections _Word.swift
[253/426] Compiling OrderedCollections OrderedSet.swift
[254/426] Compiling OrderedCollections _UnsafeBitset.swift
[326/426] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[327/426] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[328/426] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[329/426] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[330/426] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[331/426] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[332/426] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[333/426] Compiling HashTreeCollections TreeSet.swift
[382/426] Emitting module OrderedCollections
[392/426] Emitting module Algorithms
[392/426] Compiling c-atomics.c
[394/426] Emitting module _RopeModule
[426/432] Emitting module HashTreeCollections
[427/434] Compiling Collections Collections.swift
[428/434] Emitting module Collections
[429/434] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[430/434] Emitting module NIOConcurrencyHelpers
[431/434] Compiling NIOConcurrencyHelpers NIOLock.swift
[432/434] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[433/434] Compiling NIOConcurrencyHelpers atomics.swift
[434/434] Compiling NIOConcurrencyHelpers lock.swift
[435/497] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[436/497] Compiling NIOCore NIOScheduledCallback.swift
[437/497] Compiling NIOCore NIOSendable.swift
[438/497] Compiling NIOCore RecvByteBufferAllocator.swift
[439/497] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[440/497] Compiling NIOCore SocketAddresses.swift
[441/503] Compiling NIOCore GlobalSingletons.swift
[442/503] Compiling NIOCore IO.swift
[443/503] Compiling NIOCore IOData.swift
[444/503] Compiling NIOCore IPProtocol.swift
[445/503] Compiling NIOCore IntegerBitPacking.swift
[446/503] Compiling NIOCore IntegerTypes.swift
[447/503] Compiling NIOCore Interfaces.swift
[448/503] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[449/503] Compiling NIOCore EventLoopFuture+Deprecated.swift
[450/503] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[451/503] Compiling NIOCore EventLoopFuture.swift
[452/503] Compiling NIOCore FileDescriptor.swift
[453/503] Compiling NIOCore FileHandle.swift
[454/503] Compiling NIOCore FileRegion.swift
[455/503] Compiling NIOCore Codec.swift
[456/503] Compiling NIOCore ConvenienceOptionSupport.swift
[457/503] Compiling NIOCore DeadChannel.swift
[458/503] Compiling NIOCore DispatchQueue+WithFuture.swift
[459/503] Compiling NIOCore EventLoop+Deprecated.swift
[460/503] Compiling NIOCore EventLoop+SerialExecutor.swift
[461/503] Compiling NIOCore EventLoop.swift
[462/503] Compiling NIOCore Channel.swift
[463/503] Compiling NIOCore ChannelHandler.swift
[464/503] Compiling NIOCore ChannelHandlers.swift
[465/503] Compiling NIOCore ChannelInvoker.swift
[466/503] Compiling NIOCore ChannelOption.swift
[467/503] Compiling NIOCore ChannelPipeline.swift
[468/503] Compiling NIOCore CircularBuffer.swift
[469/503] Compiling NIOCore AddressedEnvelope.swift
[470/503] Compiling NIOCore AsyncAwaitSupport.swift
[471/503] Compiling NIOCore AsyncChannel.swift
[472/503] Compiling NIOCore AsyncChannelHandler.swift
[473/503] Compiling NIOCore AsyncChannelInboundStream.swift
[474/503] Compiling NIOCore AsyncChannelOutboundWriter.swift
[475/503] Compiling NIOCore NIOAsyncSequenceProducer.swift
[476/503] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[477/503] Compiling NIOCore NIOAsyncWriter.swift
[478/503] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[479/503] Compiling NIOCore BSDSocketAPI.swift
[480/503] Compiling NIOCore ByteBuffer-aux.swift
[481/503] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[482/503] Compiling NIOCore ByteBuffer-conversions.swift
[483/503] Compiling NIOCore SocketOptionProvider.swift
[484/503] Compiling NIOCore SystemCallHelpers.swift
[485/503] Compiling NIOCore TimeAmount+Duration.swift
[486/503] Compiling NIOCore TypeAssistedChannelHandler.swift
[487/503] Compiling NIOCore UniversalBootstrapSupport.swift
[488/503] Compiling NIOCore Utilities.swift
[489/503] Compiling NIOCore Linux.swift
[490/503] Compiling NIOCore MarkedCircularBuffer.swift
[491/503] Compiling NIOCore MulticastChannel.swift
[492/503] Compiling NIOCore NIOAny.swift
[493/503] Compiling NIOCore NIOCloseOnErrorHandler.swift
[494/503] Compiling NIOCore NIOCoreSendableMetatype.swift
[495/503] Compiling NIOCore NIOLoopBound.swift
[496/503] Compiling NIOCore ByteBuffer-core.swift
[497/503] Compiling NIOCore ByteBuffer-hex.swift
[498/503] Compiling NIOCore ByteBuffer-int.swift
[499/503] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[500/503] Compiling NIOCore ByteBuffer-multi-int.swift
[501/503] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[502/503] Compiling NIOCore ByteBuffer-views.swift
[503/503] Emitting module NIOCore
[504/557] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[505/557] Compiling NIOEmbedded AsyncTestingChannel.swift
[506/557] Emitting module NIOEmbedded
[507/557] Compiling NIOEmbedded Embedded.swift
[508/557] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[509/557] Compiling NIOPosix PosixSingletons.swift
[510/557] Compiling NIOPosix RawSocketBootstrap.swift
[511/557] Compiling NIOPosix Resolver.swift
[512/557] Compiling NIOPosix Selectable.swift
[513/562] Compiling NIOPosix SelectorUring.swift
[514/562] Compiling NIOPosix ServerSocket.swift
[515/562] Compiling NIOPosix Socket.swift
[516/562] Compiling NIOPosix SocketChannel.swift
[517/562] Compiling NIOPosix SocketProtocols.swift
[518/562] Compiling NIOPosix BSDSocketAPICommon.swift
[519/562] Compiling NIOPosix BSDSocketAPIPosix.swift
[520/562] Compiling NIOPosix BSDSocketAPIWindows.swift
[521/562] Compiling NIOPosix BaseSocket.swift
[522/562] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[523/562] Compiling NIOPosix BaseSocketChannel.swift
[524/562] Compiling NIOPosix PendingDatagramWritesManager.swift
[525/562] Compiling NIOPosix PendingWritesManager.swift
[526/562] Compiling NIOPosix PipeChannel.swift
[527/562] Compiling NIOPosix PipePair.swift
[528/562] Compiling NIOPosix Pool.swift
[529/562] Compiling NIOPosix StructuredConcurrencyHelpers.swift
[530/562] Compiling NIOPosix System.swift
[531/562] Compiling NIOPosix Thread.swift
[532/562] Compiling NIOPosix ThreadPosix.swift
[533/562] Compiling NIOPosix ThreadWindows.swift
[534/562] Compiling NIOPosix GetaddrinfoResolver.swift
[535/562] Compiling NIOPosix HappyEyeballs.swift
[536/562] Compiling NIOPosix IO.swift
[537/562] Compiling NIOPosix IntegerBitPacking.swift
[538/562] Compiling NIOPosix IntegerTypes.swift
[539/562] Compiling NIOPosix Linux.swift
[540/562] Emitting module NIOPosix
[541/562] Compiling NIOPosix BaseStreamSocketChannel.swift
[542/562] Compiling NIOPosix Bootstrap.swift
[543/562] Compiling NIOPosix ControlMessage.swift
[544/562] Compiling NIOPosix DatagramVectorReadManager.swift
[545/562] Compiling NIOPosix Errors+Any.swift
[546/562] Compiling NIOPosix FileDescriptor.swift
[547/562] Compiling NIOPosix UnsafeTransfer.swift
[548/562] Compiling NIOPosix Utilities.swift
[549/562] Compiling NIOPosix VsockAddress.swift
[550/562] Compiling NIOPosix VsockChannelEvents.swift
[551/562] Compiling NIOPosix resource_bundle_accessor.swift
[552/562] Compiling NIOPosix SelectableChannel.swift
[553/562] Compiling NIOPosix SelectableEventLoop.swift
[554/562] Compiling NIOPosix SelectorEpoll.swift
[555/562] Compiling NIOPosix SelectorGeneric.swift
[556/562] Compiling NIOPosix SelectorKqueue.swift
[557/562] Compiling NIOPosix LinuxCPUSet.swift
[558/562] Compiling NIOPosix LinuxUring.swift
[559/562] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[560/562] Compiling NIOPosix NIOPosixSendableMetatype.swift
[561/562] Compiling NIOPosix NIOThreadPool.swift
[562/562] Compiling NIOPosix NonBlockingFileIO.swift
[563/584] Compiling AsyncKit EventLoopFutureQueue+Sequence.swift
[564/584] Compiling AsyncKit EventLoopFutureQueue.swift
[565/586] Compiling AsyncKit Future+Optional.swift
[566/586] Compiling AsyncKit Future+Transform.swift
[567/586] Compiling AsyncKit Optional+StrictMap.swift
[568/586] Compiling AsyncKit Exports.swift
[569/586] Compiling AsyncKit Future+Miscellaneous.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:16:28: warning: capture of non-sendable type 'Value.Type' in an isolated closure
14 | _ transform: @escaping (Value) -> NewValue
15 | ) -> EventLoopFuture<NewValue> where Value: Collection {
16 | return self.map { !$0.isEmpty ? transform($0) : alternate() }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:14:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
12 | public func nonemptyMap<NewValue>(
13 | or alternate: @escaping @autoclosure () -> NewValue,
14 | _ transform: @escaping (Value) -> NewValue
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
15 | ) -> EventLoopFuture<NewValue> where Value: Collection {
16 | return self.map { !$0.isEmpty ? transform($0) : alternate() }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:35:40: warning: capture of non-sendable type 'Value.Type' in an isolated closure
33 | _ transform: @escaping (Value) throws -> NewValue
34 | ) -> EventLoopFuture<NewValue> where Value: Collection {
35 | return self.flatMapThrowing { !$0.isEmpty ? try transform($0) : alternate() }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
36 | }
37 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:33:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
31 | public func nonemptyFlatMapThrowing<NewValue>(
32 | or alternate: @escaping @autoclosure () -> NewValue,
33 | _ transform: @escaping (Value) throws -> NewValue
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
34 | ) -> EventLoopFuture<NewValue> where Value: Collection {
35 | return self.flatMapThrowing { !$0.isEmpty ? try transform($0) : alternate() }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:62:32: warning: capture of non-sendable type 'Value.Type' in an isolated closure
60 | _ transform: @escaping (Value) -> EventLoopFuture<NewValue>
61 | ) -> EventLoopFuture<NewValue> where Value: Collection {
62 | return self.flatMap { !$0.isEmpty ? transform($0) : alternate() }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
63 | }
64 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:60:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
58 | public func nonemptyFlatMap<NewValue>(
59 | orFlat alternate: @escaping @autoclosure () -> EventLoopFuture<NewValue>,
60 | _ transform: @escaping (Value) -> EventLoopFuture<NewValue>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
61 | ) -> EventLoopFuture<NewValue> where Value: Collection {
62 | return self.flatMap { !$0.isEmpty ? transform($0) : alternate() }
[570/586] Compiling AsyncKit Future+Nonempty.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:16:28: warning: capture of non-sendable type 'Value.Type' in an isolated closure
14 | _ transform: @escaping (Value) -> NewValue
15 | ) -> EventLoopFuture<NewValue> where Value: Collection {
16 | return self.map { !$0.isEmpty ? transform($0) : alternate() }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:14:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
12 | public func nonemptyMap<NewValue>(
13 | or alternate: @escaping @autoclosure () -> NewValue,
14 | _ transform: @escaping (Value) -> NewValue
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
15 | ) -> EventLoopFuture<NewValue> where Value: Collection {
16 | return self.map { !$0.isEmpty ? transform($0) : alternate() }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:35:40: warning: capture of non-sendable type 'Value.Type' in an isolated closure
33 | _ transform: @escaping (Value) throws -> NewValue
34 | ) -> EventLoopFuture<NewValue> where Value: Collection {
35 | return self.flatMapThrowing { !$0.isEmpty ? try transform($0) : alternate() }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
36 | }
37 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:33:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
31 | public func nonemptyFlatMapThrowing<NewValue>(
32 | or alternate: @escaping @autoclosure () -> NewValue,
33 | _ transform: @escaping (Value) throws -> NewValue
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
34 | ) -> EventLoopFuture<NewValue> where Value: Collection {
35 | return self.flatMapThrowing { !$0.isEmpty ? try transform($0) : alternate() }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:62:32: warning: capture of non-sendable type 'Value.Type' in an isolated closure
60 | _ transform: @escaping (Value) -> EventLoopFuture<NewValue>
61 | ) -> EventLoopFuture<NewValue> where Value: Collection {
62 | return self.flatMap { !$0.isEmpty ? transform($0) : alternate() }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
63 | }
64 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Nonempty.swift:60:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
58 | public func nonemptyFlatMap<NewValue>(
59 | orFlat alternate: @escaping @autoclosure () -> EventLoopFuture<NewValue>,
60 | _ transform: @escaping (Value) -> EventLoopFuture<NewValue>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
61 | ) -> EventLoopFuture<NewValue> where Value: Collection {
62 | return self.flatMap { !$0.isEmpty ? transform($0) : alternate() }
[571/586] Compiling AsyncKit EventLoopGroup+Throwing.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Collection+Flatten.swift:44:11: warning: capture of non-sendable type 'Self.Type' in an isolated closure
42 | public func sequencedFlatMapEach<Result>(
43 | on eventLoop: any EventLoop,
44 | _ transform: @escaping (_ element: Element) -> EventLoopFuture<Result>
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
45 | ) -> EventLoopFuture<[Result]> {
46 | return self.reduce(eventLoop.future([])) { fut, elem in fut.flatMap { res in transform(elem).map { res + [$0] } } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Collection+Flatten.swift:53:11: warning: capture of non-sendable type 'Self.Type' in an isolated closure
51 | public func sequencedFlatMapEach(
52 | on eventLoop: any EventLoop,
53 | _ transform: @escaping (_ element: Element) -> EventLoopFuture<Void>
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
54 | ) -> EventLoopFuture<Void> {
55 | return self.reduce(eventLoop.future()) { fut, elem in fut.flatMap { transform(elem) } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Collection+Flatten.swift:63:11: warning: capture of non-sendable type 'Self.Type' in an isolated closure
61 | public func sequencedFlatMapEachCompact<Result>(
62 | on eventLoop: any EventLoop,
63 | _ transform: @escaping (_ element: Element) -> EventLoopFuture<Result?>
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
64 | ) -> EventLoopFuture<[Result]> {
65 | return self.reduce(eventLoop.future([])) { fut, elem in fut.flatMap { res in transform(elem).map { res + [$0].compactMap { $0 } } } }
[572/586] Compiling AsyncKit Collection+Flatten.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Collection+Flatten.swift:44:11: warning: capture of non-sendable type 'Self.Type' in an isolated closure
42 | public func sequencedFlatMapEach<Result>(
43 | on eventLoop: any EventLoop,
44 | _ transform: @escaping (_ element: Element) -> EventLoopFuture<Result>
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
45 | ) -> EventLoopFuture<[Result]> {
46 | return self.reduce(eventLoop.future([])) { fut, elem in fut.flatMap { res in transform(elem).map { res + [$0] } } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Collection+Flatten.swift:53:11: warning: capture of non-sendable type 'Self.Type' in an isolated closure
51 | public func sequencedFlatMapEach(
52 | on eventLoop: any EventLoop,
53 | _ transform: @escaping (_ element: Element) -> EventLoopFuture<Void>
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
54 | ) -> EventLoopFuture<Void> {
55 | return self.reduce(eventLoop.future()) { fut, elem in fut.flatMap { transform(elem) } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Collection+Flatten.swift:63:11: warning: capture of non-sendable type 'Self.Type' in an isolated closure
61 | public func sequencedFlatMapEachCompact<Result>(
62 | on eventLoop: any EventLoop,
63 | _ transform: @escaping (_ element: Element) -> EventLoopFuture<Result?>
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
64 | ) -> EventLoopFuture<[Result]> {
65 | return self.reduce(eventLoop.future([])) { fut, elem in fut.flatMap { res in transform(elem).map { res + [$0].compactMap { $0 } } } }
[573/586] Compiling AsyncKit Future+Try.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:7:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
5 | extension EventLoopFuture where Value: Numeric {
6 | /// Adds two futures and produces their sum
7 | public static func + (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 + $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
8 |
9 | /// Adds two futures and stores the result in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:13:118: warning: capture of non-sendable type 'Value.Type' in an isolated closure
11 |
12 | /// Subtracts one future from another and produces their difference
13 | public static func - (_ lhs: EventLoopFuture, _ rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 - $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
14 |
15 | /// Subtracts the second future from the first and stores the difference in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:19:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
17 |
18 | /// Multiplies two futures and produces their product
19 | public static func * (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 * $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
20 |
21 | /// Multiplies two futures and stores the result in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:29:155: warning: capture of non-sendable type 'T.Type' in an isolated closure
27 | extension EventLoopFuture {
28 | /// Adds two futures and produces their sum
29 | public static func + <T>(lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture where Value == Array<T>, T: Equatable { lhs.and(rhs).map { $0 + $1 } }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
30 |
31 | /// Adds two futures and stores the result in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:36:38: warning: capture of non-sendable type 'T.Type' in an isolated closure
34 | /// Subtracts one future from another and produces their difference
35 | public static func - <T>(lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture where Value == Array<T>, T: Equatable {
36 | lhs.and(rhs).map { l, r in l.filter { !r.contains($0) } }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:47:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
45 | extension EventLoopFuture where Value: BinaryInteger {
46 | /// Returns the quotient of dividing the first future by the second
47 | public static func / (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 / $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
48 |
49 | /// Divides the first future by the second and stores the quotient in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:53:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
51 |
52 | /// Returns the remainder of dividing the first future by the second
53 | public static func % (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 % $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
54 |
55 | /// Divides the first future by the second and stores the remainder in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:63:140: warning: capture of non-sendable type 'Value.Type' in an isolated closure
61 | extension EventLoopFuture where Value: BinaryInteger {
62 | /// Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument
63 | public static func < (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 < $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:63:140: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
61 | extension EventLoopFuture where Value: BinaryInteger {
62 | /// Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument
63 | public static func < (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 < $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:66:141: warning: capture of non-sendable type 'Value.Type' in an isolated closure
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
66 | public static func <= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 <= $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:66:141: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
66 | public static func <= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 <= $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:69:141: warning: capture of non-sendable type 'Value.Type' in an isolated closure
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
69 | public static func >= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 >= $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:69:141: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
69 | public static func >= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 >= $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:72:140: warning: capture of non-sendable type 'Value.Type' in an isolated closure
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
72 | public static func > (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 > $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:72:140: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
72 | public static func > (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 > $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:79:135: warning: capture of non-sendable type 'Value.Type' in an isolated closure
77 | extension EventLoopFuture where Value: BinaryInteger {
78 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the left
79 | public static func << (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 << $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
80 |
81 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the left in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:79:135: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
77 | extension EventLoopFuture where Value: BinaryInteger {
78 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the left
79 | public static func << (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 << $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
80 |
81 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the left in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:85:135: warning: capture of non-sendable type 'Value.Type' in an isolated closure
83 |
84 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the right
85 | public static func >> (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 >> $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
86 |
87 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the right in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:85:135: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
83 |
84 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the right
85 | public static func >> (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 >> $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
86 |
87 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the right in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:91:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
89 |
90 | /// Returns the result of performing a bitwise AND operation on the two given futures
91 | public static func & (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 & $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
92 |
93 | /// Stores the result of performing a bitwise AND operation on the two given futures in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:97:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
95 |
96 | /// Returns the result of performing a bitwise OR operation on the two given futures
97 | public static func | (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 | $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
98 |
99 | /// Stores the result of performing a bitwise OR operation on the two given futures in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:103:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
101 |
102 | /// Returns the result of performing a bitwise XOR operation on the two given futures
103 | public static func ^ (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 ^ $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
104 |
105 | /// Stores the result of performing a bitwise XOR operation on the two given futures in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:109:83: warning: capture of non-sendable type 'Value.Type' in an isolated closure
107 |
108 | /// Returns the result of performing a bitwise NOT operation on the given future
109 | public static prefix func ~ (x: EventLoopFuture) -> EventLoopFuture { x.map { ~$0 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
110 | }
111 |
[574/586] Compiling AsyncKit FutureOperators.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:7:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
5 | extension EventLoopFuture where Value: Numeric {
6 | /// Adds two futures and produces their sum
7 | public static func + (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 + $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
8 |
9 | /// Adds two futures and stores the result in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:13:118: warning: capture of non-sendable type 'Value.Type' in an isolated closure
11 |
12 | /// Subtracts one future from another and produces their difference
13 | public static func - (_ lhs: EventLoopFuture, _ rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 - $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
14 |
15 | /// Subtracts the second future from the first and stores the difference in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:19:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
17 |
18 | /// Multiplies two futures and produces their product
19 | public static func * (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 * $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
20 |
21 | /// Multiplies two futures and stores the result in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:29:155: warning: capture of non-sendable type 'T.Type' in an isolated closure
27 | extension EventLoopFuture {
28 | /// Adds two futures and produces their sum
29 | public static func + <T>(lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture where Value == Array<T>, T: Equatable { lhs.and(rhs).map { $0 + $1 } }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
30 |
31 | /// Adds two futures and stores the result in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:36:38: warning: capture of non-sendable type 'T.Type' in an isolated closure
34 | /// Subtracts one future from another and produces their difference
35 | public static func - <T>(lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture where Value == Array<T>, T: Equatable {
36 | lhs.and(rhs).map { l, r in l.filter { !r.contains($0) } }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:47:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
45 | extension EventLoopFuture where Value: BinaryInteger {
46 | /// Returns the quotient of dividing the first future by the second
47 | public static func / (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 / $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
48 |
49 | /// Divides the first future by the second and stores the quotient in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:53:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
51 |
52 | /// Returns the remainder of dividing the first future by the second
53 | public static func % (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 % $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
54 |
55 | /// Divides the first future by the second and stores the remainder in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:63:140: warning: capture of non-sendable type 'Value.Type' in an isolated closure
61 | extension EventLoopFuture where Value: BinaryInteger {
62 | /// Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument
63 | public static func < (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 < $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:63:140: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
61 | extension EventLoopFuture where Value: BinaryInteger {
62 | /// Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument
63 | public static func < (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 < $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:66:141: warning: capture of non-sendable type 'Value.Type' in an isolated closure
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
66 | public static func <= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 <= $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:66:141: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
64 |
65 | /// Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument
66 | public static func <= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 <= $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:69:141: warning: capture of non-sendable type 'Value.Type' in an isolated closure
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
69 | public static func >= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 >= $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:69:141: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
67 |
68 | /// Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument
69 | public static func >= (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 >= $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:72:140: warning: capture of non-sendable type 'Value.Type' in an isolated closure
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
72 | public static func > (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 > $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:72:140: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
70 |
71 | /// Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument
72 | public static func > (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture<Bool> { lhs.and(rhs).map { $0 > $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:79:135: warning: capture of non-sendable type 'Value.Type' in an isolated closure
77 | extension EventLoopFuture where Value: BinaryInteger {
78 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the left
79 | public static func << (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 << $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
80 |
81 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the left in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:79:135: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
77 | extension EventLoopFuture where Value: BinaryInteger {
78 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the left
79 | public static func << (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 << $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
80 |
81 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the left in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:85:135: warning: capture of non-sendable type 'Value.Type' in an isolated closure
83 |
84 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the right
85 | public static func >> (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 >> $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
86 |
87 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the right in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:85:135: warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
83 |
84 | /// Returns the result of shifting a future’s binary representation the specified number of digits to the right
85 | public static func >> (lhs: EventLoopFuture, rhs: EventLoopFuture<some BinaryInteger>) -> EventLoopFuture { lhs.and(rhs).map { $0 >> $1 } }
| `- warning: capture of non-sendable type '(some BinaryInteger).Type' in an isolated closure
86 |
87 | /// Stores the result of shifting a future’s binary representation the specified number of digits to the right in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:91:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
89 |
90 | /// Returns the result of performing a bitwise AND operation on the two given futures
91 | public static func & (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 & $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
92 |
93 | /// Stores the result of performing a bitwise AND operation on the two given futures in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:97:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
95 |
96 | /// Returns the result of performing a bitwise OR operation on the two given futures
97 | public static func | (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 | $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
98 |
99 | /// Stores the result of performing a bitwise OR operation on the two given futures in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:103:114: warning: capture of non-sendable type 'Value.Type' in an isolated closure
101 |
102 | /// Returns the result of performing a bitwise XOR operation on the two given futures
103 | public static func ^ (lhs: EventLoopFuture, rhs: EventLoopFuture) -> EventLoopFuture { lhs.and(rhs).map { $0 ^ $1 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
104 |
105 | /// Stores the result of performing a bitwise XOR operation on the two given futures in the left-hand-side variable
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/FutureOperators.swift:109:83: warning: capture of non-sendable type 'Value.Type' in an isolated closure
107 |
108 | /// Returns the result of performing a bitwise NOT operation on the given future
109 | public static prefix func ~ (x: EventLoopFuture) -> EventLoopFuture { x.map { ~$0 } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
110 | }
111 |
[575/586] Compiling AsyncKit EventLoop+Flatten.swift
[576/586] Compiling AsyncKit EventLoop+Future.swift
[577/586] Compiling AsyncKit EventLoopGroup+Concurrency.swift
[578/586] Compiling AsyncKit EventLoopConnectionPool.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:185:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
186 | self.releaseConnection(conn, logger: logger)
187 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:182:11: warning: capture of non-sendable type 'Source.Type' in an isolated closure
180 | public func withConnection<Result>(
181 | logger: Logger,
182 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:180:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
178 | /// - closure: Callback that accepts the pooled connection.
179 | /// - Returns: A future containing the result of the closure.
180 | public func withConnection<Result>(
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
181 | logger: Logger,
182 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:79: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:224:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
222 | /// - eventLoop: Preferred event loop for the new connection.
223 | /// - Returns: A future containing the requested connection.
224 | public func requestConnection(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
225 | /// N.B.: This particular pattern (the use of a promise to forward the result when off the event loop)
226 | /// is straight out of NIO's `EventLoopFuture.fold()` implementation.
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:260:63: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
261 | logger.trace("Waiter already removed when timeout task fired", metadata: ["waiter": .stringConvertible(waiterId)])
262 | return
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:260:23: warning: capture of non-sendable type 'Source.Type' in an isolated closure
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
261 | logger.trace("Waiter already removed when timeout task fired", metadata: ["waiter": .stringConvertible(waiterId)])
262 | return
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:258:88: warning: capture of non-sendable type 'Source.Type' in an isolated closure
256 | let waiterId = self.idGenerator.wrappingIncrementThenLoad(ordering: .relaxed)
257 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:278:27: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
278 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
279 | }
280 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:278:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
278 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
279 | }
280 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:275:51: warning: capture of non-sendable type 'Source.Type' in an isolated closure
273 | self.waiters[waiterId] = (logger: logger, promise: promise, timeoutTask: timeoutTask)
274 |
275 | promise.futureResult.whenComplete { [weak self] _ in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:288:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
286 | // On success, "release" the new connection to the pool and let the waitlist logic take over
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:288:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
286 | // On success, "release" the new connection to the pool and let the waitlist logic take over
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:237:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
235 |
236 | /// Actual implementation of ``EventLoopConnectionPool/requestConnection(logger:)``.
237 | private func _requestConnection0(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
238 | self.eventLoop.assertInEventLoop()
239 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:290:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure
288 | self._releaseConnection0($0, logger: logger)
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
291 | logger.error("Opening new connection for pool failed", metadata: ["error": .string(String(reflecting: error))])
292 | return eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:289:49: warning: capture of non-sendable type 'Source.Type' in an isolated closure
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
290 | self?.activeConnections -= 1
291 | logger.error("Opening new connection for pool failed", metadata: ["error": .string(String(reflecting: error))])
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:43: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:324:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
322 | /// - connection: Connection to release back to the pool.
323 | /// - logger: For trace and debug logs.
324 | public func releaseConnection(_ connection: Source.Connection, logger: Logger) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
325 | if self.eventLoop.inEventLoop {
326 | self._releaseConnection0(connection, logger: logger)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:363:38: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
363 | for conninfo in self.available where !conninfo.connection.isClosed {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
364 | if conninfo.lastUse + self.maxIdleTimeBeforePruning < .now() {
365 | self.logger.debug("Pruning idle connection.")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:363:33: warning: capture of non-sendable type 'Source.Type' in an isolated closure
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
363 | for conninfo in self.available where !conninfo.connection.isClosed {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
364 | if conninfo.lastUse + self.maxIdleTimeBeforePruning < .now() {
365 | self.logger.debug("Pruning idle connection.")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:360:26: warning: capture of non-sendable type 'Source.Type' in an isolated closure
358 | initialDelay: pruningInterval,
359 | delay: pruningInterval
360 | ) { [unowned self] _ in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:401:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
399 | } else {
400 | let promise = self.eventLoop.makePromise(of: Void.self)
401 | self.eventLoop.execute { self._close0().cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
402 | return promise.futureResult
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:396:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
394 | ///
395 | /// Connection pools must be closed before they deinitialize.
396 | public func close() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
397 | if self.eventLoop.inEventLoop {
398 | return self._close0()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:429:28: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
427 |
428 | return pruningCancellationPromise.futureResult.flatMap {
429 | self.available.map {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
430 | $0.connection.close()
431 | }.flatten(on: self.eventLoop)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:429:13: warning: capture of non-sendable type 'Source.Type' in an isolated closure
427 |
428 | return pruningCancellationPromise.futureResult.flatMap {
429 | self.available.map {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
430 | $0.connection.close()
431 | }.flatten(on: self.eventLoop)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:406:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
404 | }
405 |
406 | private func _close0() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
407 | self.eventLoop.assertInEventLoop()
408 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:433:13: warning: capture of non-sendable type 'Source.Type' in an isolated closure
431 | }.flatten(on: self.eventLoop)
432 | }.map {
433 | self.activeConnections = 0
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
434 | self.available.removeAll()
435 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:406:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
404 | }
405 |
406 | private func _close0() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
407 | self.eventLoop.assertInEventLoop()
408 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:434:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
432 | }.map {
433 | self.activeConnections = 0
434 | self.available.removeAll()
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
435 | }
436 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:442:43: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
441 | } else {
442 | self.eventLoop.submit { (self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
443 | }
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:442:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
441 | } else {
442 | self.eventLoop.submit { (self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
443 | }
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:438:31: warning: capture of non-sendable type 'Source.Type' in an isolated closure
436 | }
437 |
438 | internal/*testable*/ func poolState() -> EventLoopFuture<(known: Int, active: Int, open: Int)> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
439 | if self.eventLoop.inEventLoop {
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:340:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure
338 | guard !self.didShutdown else {
339 | DispatchQueue.global().async {
340 | self.logger.warning("Connection pool can not be shut down more than once.")
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
341 | callback(ConnectionPoolError.shutdown)
342 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:334:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
332 | /// > Warning: Any invocation of the callback represents a signal that the pool has fully shut
333 | /// > down. This is true even if the error parameter is non-`nil`; errors are purely advisory.
334 | public func shutdownGracefully(_ callback: @escaping ((any Error)?) -> Void) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
335 | // Protect access to shared state.
336 | guard self.lock.withLock({
[579/586] Compiling AsyncKit EventLoopGroupConnectionPool.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:185:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
186 | self.releaseConnection(conn, logger: logger)
187 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:182:11: warning: capture of non-sendable type 'Source.Type' in an isolated closure
180 | public func withConnection<Result>(
181 | logger: Logger,
182 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:180:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
178 | /// - closure: Callback that accepts the pooled connection.
179 | /// - Returns: A future containing the result of the closure.
180 | public func withConnection<Result>(
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
181 | logger: Logger,
182 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:79: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:224:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
222 | /// - eventLoop: Preferred event loop for the new connection.
223 | /// - Returns: A future containing the requested connection.
224 | public func requestConnection(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
225 | /// N.B.: This particular pattern (the use of a promise to forward the result when off the event loop)
226 | /// is straight out of NIO's `EventLoopFuture.fold()` implementation.
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:260:63: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
261 | logger.trace("Waiter already removed when timeout task fired", metadata: ["waiter": .stringConvertible(waiterId)])
262 | return
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:260:23: warning: capture of non-sendable type 'Source.Type' in an isolated closure
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
261 | logger.trace("Waiter already removed when timeout task fired", metadata: ["waiter": .stringConvertible(waiterId)])
262 | return
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:258:88: warning: capture of non-sendable type 'Source.Type' in an isolated closure
256 | let waiterId = self.idGenerator.wrappingIncrementThenLoad(ordering: .relaxed)
257 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:278:27: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
278 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
279 | }
280 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:278:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
278 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
279 | }
280 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:275:51: warning: capture of non-sendable type 'Source.Type' in an isolated closure
273 | self.waiters[waiterId] = (logger: logger, promise: promise, timeoutTask: timeoutTask)
274 |
275 | promise.futureResult.whenComplete { [weak self] _ in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:288:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
286 | // On success, "release" the new connection to the pool and let the waitlist logic take over
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:288:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
286 | // On success, "release" the new connection to the pool and let the waitlist logic take over
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:237:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
235 |
236 | /// Actual implementation of ``EventLoopConnectionPool/requestConnection(logger:)``.
237 | private func _requestConnection0(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
238 | self.eventLoop.assertInEventLoop()
239 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:290:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure
288 | self._releaseConnection0($0, logger: logger)
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
291 | logger.error("Opening new connection for pool failed", metadata: ["error": .string(String(reflecting: error))])
292 | return eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:289:49: warning: capture of non-sendable type 'Source.Type' in an isolated closure
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
290 | self?.activeConnections -= 1
291 | logger.error("Opening new connection for pool failed", metadata: ["error": .string(String(reflecting: error))])
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:43: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:324:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
322 | /// - connection: Connection to release back to the pool.
323 | /// - logger: For trace and debug logs.
324 | public func releaseConnection(_ connection: Source.Connection, logger: Logger) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
325 | if self.eventLoop.inEventLoop {
326 | self._releaseConnection0(connection, logger: logger)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:363:38: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
363 | for conninfo in self.available where !conninfo.connection.isClosed {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
364 | if conninfo.lastUse + self.maxIdleTimeBeforePruning < .now() {
365 | self.logger.debug("Pruning idle connection.")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:363:33: warning: capture of non-sendable type 'Source.Type' in an isolated closure
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
363 | for conninfo in self.available where !conninfo.connection.isClosed {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
364 | if conninfo.lastUse + self.maxIdleTimeBeforePruning < .now() {
365 | self.logger.debug("Pruning idle connection.")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:360:26: warning: capture of non-sendable type 'Source.Type' in an isolated closure
358 | initialDelay: pruningInterval,
359 | delay: pruningInterval
360 | ) { [unowned self] _ in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:401:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
399 | } else {
400 | let promise = self.eventLoop.makePromise(of: Void.self)
401 | self.eventLoop.execute { self._close0().cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
402 | return promise.futureResult
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:396:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
394 | ///
395 | /// Connection pools must be closed before they deinitialize.
396 | public func close() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
397 | if self.eventLoop.inEventLoop {
398 | return self._close0()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:429:28: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
427 |
428 | return pruningCancellationPromise.futureResult.flatMap {
429 | self.available.map {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
430 | $0.connection.close()
431 | }.flatten(on: self.eventLoop)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:429:13: warning: capture of non-sendable type 'Source.Type' in an isolated closure
427 |
428 | return pruningCancellationPromise.futureResult.flatMap {
429 | self.available.map {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
430 | $0.connection.close()
431 | }.flatten(on: self.eventLoop)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:406:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
404 | }
405 |
406 | private func _close0() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
407 | self.eventLoop.assertInEventLoop()
408 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:433:13: warning: capture of non-sendable type 'Source.Type' in an isolated closure
431 | }.flatten(on: self.eventLoop)
432 | }.map {
433 | self.activeConnections = 0
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
434 | self.available.removeAll()
435 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:406:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
404 | }
405 |
406 | private func _close0() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
407 | self.eventLoop.assertInEventLoop()
408 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:434:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
432 | }.map {
433 | self.activeConnections = 0
434 | self.available.removeAll()
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
435 | }
436 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:442:43: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
441 | } else {
442 | self.eventLoop.submit { (self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
443 | }
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:442:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
441 | } else {
442 | self.eventLoop.submit { (self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
443 | }
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:438:31: warning: capture of non-sendable type 'Source.Type' in an isolated closure
436 | }
437 |
438 | internal/*testable*/ func poolState() -> EventLoopFuture<(known: Int, active: Int, open: Int)> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
439 | if self.eventLoop.inEventLoop {
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:340:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure
338 | guard !self.didShutdown else {
339 | DispatchQueue.global().async {
340 | self.logger.warning("Connection pool can not be shut down more than once.")
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
341 | callback(ConnectionPoolError.shutdown)
342 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:334:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
332 | /// > Warning: Any invocation of the callback represents a signal that the pool has fully shut
333 | /// > down. This is true even if the error parameter is non-`nil`; errors are purely advisory.
334 | public func shutdownGracefully(_ callback: @escaping ((any Error)?) -> Void) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
335 | // Protect access to shared state.
336 | guard self.lock.withLock({
[580/586] Compiling AsyncKit EventLoop+Concurrency.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:185:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
186 | self.releaseConnection(conn, logger: logger)
187 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:182:11: warning: capture of non-sendable type 'Source.Type' in an isolated closure
180 | public func withConnection<Result>(
181 | logger: Logger,
182 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
183 | ) -> EventLoopFuture<Result> {
184 | self.requestConnection(logger: logger).flatMap { conn in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:186:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
184 | self.requestConnection(logger: logger).flatMap { conn in
185 | closure(conn).always { _ in
186 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:180:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
178 | /// - closure: Callback that accepts the pooled connection.
179 | /// - Returns: A future containing the result of the closure.
180 | public func withConnection<Result>(
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
181 | logger: Logger,
182 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:79: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:231:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
229 | } else {
230 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
231 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
232 | return promise.futureResult
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:224:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
222 | /// - eventLoop: Preferred event loop for the new connection.
223 | /// - Returns: A future containing the requested connection.
224 | public func requestConnection(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
225 | /// N.B.: This particular pattern (the use of a promise to forward the result when off the event loop)
226 | /// is straight out of NIO's `EventLoopFuture.fold()` implementation.
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:260:63: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
261 | logger.trace("Waiter already removed when timeout task fired", metadata: ["waiter": .stringConvertible(waiterId)])
262 | return
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:260:23: warning: capture of non-sendable type 'Source.Type' in an isolated closure
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
261 | logger.trace("Waiter already removed when timeout task fired", metadata: ["waiter": .stringConvertible(waiterId)])
262 | return
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:258:88: warning: capture of non-sendable type 'Source.Type' in an isolated closure
256 | let waiterId = self.idGenerator.wrappingIncrementThenLoad(ordering: .relaxed)
257 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
258 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
259 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
260 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:278:27: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
278 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
279 | }
280 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:278:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
278 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
279 | }
280 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:275:51: warning: capture of non-sendable type 'Source.Type' in an isolated closure
273 | self.waiters[waiterId] = (logger: logger, promise: promise, timeoutTask: timeoutTask)
274 |
275 | promise.futureResult.whenComplete { [weak self] _ in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
276 | logger.trace("Connection request completed", metadata: ["waiter": .stringConvertible(waiterId)])
277 | timeoutTask.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:288:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
286 | // On success, "release" the new connection to the pool and let the waitlist logic take over
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:288:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
286 | // On success, "release" the new connection to the pool and let the waitlist logic take over
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:237:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
235 |
236 | /// Actual implementation of ``EventLoopConnectionPool/requestConnection(logger:)``.
237 | private func _requestConnection0(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
238 | self.eventLoop.assertInEventLoop()
239 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:290:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure
288 | self._releaseConnection0($0, logger: logger)
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
290 | self?.activeConnections -= 1
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
291 | logger.error("Opening new connection for pool failed", metadata: ["error": .string(String(reflecting: error))])
292 | return eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:289:49: warning: capture of non-sendable type 'Source.Type' in an isolated closure
287 | logger.trace("New connection successful, servicing waitlist")
288 | self._releaseConnection0($0, logger: logger)
289 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
290 | self?.activeConnections -= 1
291 | logger.error("Opening new connection for pool failed", metadata: ["error": .string(String(reflecting: error))])
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:43: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
326 | self._releaseConnection0(connection, logger: logger)
327 | } else {
328 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:324:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
322 | /// - connection: Connection to release back to the pool.
323 | /// - logger: For trace and debug logs.
324 | public func releaseConnection(_ connection: Source.Connection, logger: Logger) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
325 | if self.eventLoop.inEventLoop {
326 | self._releaseConnection0(connection, logger: logger)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:363:38: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
363 | for conninfo in self.available where !conninfo.connection.isClosed {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
364 | if conninfo.lastUse + self.maxIdleTimeBeforePruning < .now() {
365 | self.logger.debug("Pruning idle connection.")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:363:33: warning: capture of non-sendable type 'Source.Type' in an isolated closure
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
363 | for conninfo in self.available where !conninfo.connection.isClosed {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
364 | if conninfo.lastUse + self.maxIdleTimeBeforePruning < .now() {
365 | self.logger.debug("Pruning idle connection.")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:360:26: warning: capture of non-sendable type 'Source.Type' in an isolated closure
358 | initialDelay: pruningInterval,
359 | delay: pruningInterval
360 | ) { [unowned self] _ in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
361 | var prunedConnections: Set<ObjectIdentifier> = []
362 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:401:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
399 | } else {
400 | let promise = self.eventLoop.makePromise(of: Void.self)
401 | self.eventLoop.execute { self._close0().cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
402 | return promise.futureResult
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:396:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
394 | ///
395 | /// Connection pools must be closed before they deinitialize.
396 | public func close() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
397 | if self.eventLoop.inEventLoop {
398 | return self._close0()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:429:28: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
427 |
428 | return pruningCancellationPromise.futureResult.flatMap {
429 | self.available.map {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
430 | $0.connection.close()
431 | }.flatten(on: self.eventLoop)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:429:13: warning: capture of non-sendable type 'Source.Type' in an isolated closure
427 |
428 | return pruningCancellationPromise.futureResult.flatMap {
429 | self.available.map {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
430 | $0.connection.close()
431 | }.flatten(on: self.eventLoop)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:406:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
404 | }
405 |
406 | private func _close0() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
407 | self.eventLoop.assertInEventLoop()
408 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:433:13: warning: capture of non-sendable type 'Source.Type' in an isolated closure
431 | }.flatten(on: self.eventLoop)
432 | }.map {
433 | self.activeConnections = 0
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
434 | self.available.removeAll()
435 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:406:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
404 | }
405 |
406 | private func _close0() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
407 | self.eventLoop.assertInEventLoop()
408 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:434:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
432 | }.map {
433 | self.activeConnections = 0
434 | self.available.removeAll()
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
435 | }
436 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:442:43: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
441 | } else {
442 | self.eventLoop.submit { (self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
443 | }
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:442:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
441 | } else {
442 | self.eventLoop.submit { (self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
443 | }
444 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:438:31: warning: capture of non-sendable type 'Source.Type' in an isolated closure
436 | }
437 |
438 | internal/*testable*/ func poolState() -> EventLoopFuture<(known: Int, active: Int, open: Int)> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
439 | if self.eventLoop.inEventLoop {
440 | self.eventLoop.makeSucceededFuture((self.available.count, self.activeConnections, self.available.filter { !$0.connection.isClosed }.count))
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:340:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure
338 | guard !self.didShutdown else {
339 | DispatchQueue.global().async {
340 | self.logger.warning("Connection pool can not be shut down more than once.")
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
341 | callback(ConnectionPoolError.shutdown)
342 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:334:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
332 | /// > Warning: Any invocation of the callback represents a signal that the pool has fully shut
333 | /// > down. This is true even if the error parameter is non-`nil`; errors are purely advisory.
334 | public func shutdownGracefully(_ callback: @escaping ((any Error)?) -> Void) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
335 | // Protect access to shared state.
336 | guard self.lock.withLock({
[581/586] Emitting module AsyncKit
[582/586] Compiling AsyncKit ConnectionPoolError.swift
[583/586] Compiling AsyncKit ConnectionPoolItem.swift
[584/586] Compiling AsyncKit ConnectionPoolSource.swift
[585/586] Compiling AsyncKit Future+Collection.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:19:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
17 | _ transform: @escaping (_ element: Value.Element) -> Result
18 | ) -> EventLoopFuture<[Result]> {
19 | return self.map { $0.map(transform) }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:17:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
15 | /// - returns: A new `EventLoopFuture` that wraps the sequence of transformed elements.
16 | public func mapEach<Result>(
17 | _ transform: @escaping (_ element: Value.Element) -> Result
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
18 | ) -> EventLoopFuture<[Result]> {
19 | return self.map { $0.map(transform) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:34:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
32 | _ keyPath: KeyPath<Value.Element, Result>
33 | ) -> EventLoopFuture<[Result]> {
34 | return self.map { $0.map { $0[keyPath: keyPath] } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:32:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
30 | /// - returns: A new `EventLoopFuture` that wraps the sequence of key path values.
31 | public func mapEach<Result>(
32 | _ keyPath: KeyPath<Value.Element, Result>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
33 | ) -> EventLoopFuture<[Result]> {
34 | return self.map { $0.map { $0[keyPath: keyPath] } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:52:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
50 | _ transform: @escaping (_ element: Value.Element) -> Result?
51 | ) -> EventLoopFuture<[Result]> {
52 | return self.map { $0.compactMap(transform) }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:50:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
48 | /// - returns: A new `EventLoopFuture` that wraps the sequence of transformed elements.
49 | public func mapEachCompact<Result>(
50 | _ transform: @escaping (_ element: Value.Element) -> Result?
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
51 | ) -> EventLoopFuture<[Result]> {
52 | return self.map { $0.compactMap(transform) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:67:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
65 | _ keyPath: KeyPath<Value.Element, Result?>
66 | ) -> EventLoopFuture<[Result]> {
67 | return self.map { $0.compactMap { $0[keyPath: keyPath] } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:65:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
63 | /// - returns: A new `EventLoopFuture` that wraps the sequence of non-nil key path values.
64 | public func mapEachCompact<Result>(
65 | _ keyPath: KeyPath<Value.Element, Result?>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
66 | ) -> EventLoopFuture<[Result]> {
67 | return self.map { $0.compactMap { $0[keyPath: keyPath] } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:84:30: warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
82 | _ transform: @escaping (_ element: Value.Element) -> ResultSegment
83 | ) -> EventLoopFuture<[ResultSegment.Element]> {
84 | return self.map { $0.flatMap(transform) }
| `- warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:84:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
82 | _ transform: @escaping (_ element: Value.Element) -> ResultSegment
83 | ) -> EventLoopFuture<[ResultSegment.Element]> {
84 | return self.map { $0.flatMap(transform) }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:82:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
80 | /// - returns: A new `EventLoopFuture` that wraps the flattened sequence of transformed elements.
81 | public func mapEachFlat<ResultSegment: Sequence>(
82 | _ transform: @escaping (_ element: Value.Element) -> ResultSegment
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
83 | ) -> EventLoopFuture<[ResultSegment.Element]> {
84 | return self.map { $0.flatMap(transform) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:82:11: warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
80 | /// - returns: A new `EventLoopFuture` that wraps the flattened sequence of transformed elements.
81 | public func mapEachFlat<ResultSegment: Sequence>(
82 | _ transform: @escaping (_ element: Value.Element) -> ResultSegment
| `- warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
83 | ) -> EventLoopFuture<[ResultSegment.Element]> {
84 | return self.map { $0.flatMap(transform) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:101:30: warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
| `- warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
102 | }
103 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:101:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
102 | }
103 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:99:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
97 | /// - returns: A new `EventLoopFuture` that wraps the flattened sequence of transformed elements.
98 | public func mapEachFlat<ResultSegment: Sequence>(
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:99:11: warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
97 | /// - returns: A new `EventLoopFuture` that wraps the flattened sequence of transformed elements.
98 | public func mapEachFlat<ResultSegment: Sequence>(
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
| `- warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:120:42: warning: capture of non-sendable type 'Value.Type' in an isolated closure
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:118:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
116 | public func flatMapEach<Result>(
117 | on eventLoop: any EventLoop,
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:140:39: warning: capture of non-sendable type 'Value.Type' in an isolated closure
138 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>
139 | ) -> EventLoopFuture<Void> {
140 | self.flatMap { .andAllSucceed($0.map(transform), on: eventLoop) }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:138:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
136 | public func flatMapEach(
137 | on eventLoop: any EventLoop,
138 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
139 | ) -> EventLoopFuture<Void> {
140 | self.flatMap { .andAllSucceed($0.map(transform), on: eventLoop) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:159:42: warning: capture of non-sendable type 'Value.Type' in an isolated closure
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:157:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
155 | public func flatMapEachCompact<Result>(
156 | on eventLoop: any EventLoop,
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:181:24: warning: capture of non-sendable type 'Value.Type' in an isolated closure
179 | ) -> EventLoopFuture<[Result]> {
180 | return self.flatMapThrowing { sequence -> [Result] in
181 | return try sequence.map(transform)
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:178:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
176 | /// - returns: A new `EventLoopFuture` that wraps the sequence of transformed elements.
177 | public func flatMapEachThrowing<Result>(
178 | _ transform: @escaping (_ element: Value.Element) throws -> Result
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
179 | ) -> EventLoopFuture<[Result]> {
180 | return self.flatMapThrowing { sequence -> [Result] in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:203:24: warning: capture of non-sendable type 'Value.Type' in an isolated closure
201 | ) -> EventLoopFuture<[Result]> {
202 | return self.flatMapThrowing { sequence -> [Result] in
203 | return try sequence.compactMap(transform)
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
204 | }
205 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:200:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
198 | /// - returns: A new `EventLoopFuture` that wraps the sequence of transformed elements.
199 | public func flatMapEachCompactThrowing<Result>(
200 | _ transform: @escaping (_ element: Value.Element) throws -> Result?
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
201 | ) -> EventLoopFuture<[Result]> {
202 | return self.flatMapThrowing { sequence -> [Result] in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:221:13: warning: capture of non-sendable type 'Value.Type' in an isolated closure
219 |
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
222 | fut.flatMap { transform(elem).map { results.append($0) } }
223 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:217:17: warning: capture of non-sendable type 'Value.Type' in an isolated closure
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
218 | var results: [Result] = []
219 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:217:48: warning: capture of non-sendable type 'Value.Type' in an isolated closure
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
218 | var results: [Result] = []
219 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:231:13: warning: capture of non-sendable type 'Value.Type' in an isolated closure
229 | public func sequencedFlatMapEach(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>) -> EventLoopFuture<Void> {
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
232 | fut.flatMap { transform(elem) }
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:229:17: warning: capture of non-sendable type 'Value.Type' in an isolated closure
227 | /// An overload of `sequencedFlatMapEach(_:)` which returns a `Void` future instead
228 | /// of `[Void]` when the result type of the transform closure is `Void`.
229 | public func sequencedFlatMapEach(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>) -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:229:40: warning: capture of non-sendable type 'Value.Type' in an isolated closure
227 | /// An overload of `sequencedFlatMapEach(_:)` which returns a `Void` future instead
228 | /// of `[Void]` when the result type of the transform closure is `Void`.
229 | public func sequencedFlatMapEach(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>) -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:244:13: warning: capture of non-sendable type 'Value.Type' in an isolated closure
242 |
243 | return self.flatMap {
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:240:17: warning: capture of non-sendable type 'Value.Type' in an isolated closure
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
241 | var results: [Result] = []
242 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:240:55: warning: capture of non-sendable type 'Value.Type' in an isolated closure
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
241 | var results: [Result] = []
242 |
[586/586] Compiling AsyncKit Future+Conjunctions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:19:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
17 | _ transform: @escaping (_ element: Value.Element) -> Result
18 | ) -> EventLoopFuture<[Result]> {
19 | return self.map { $0.map(transform) }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:17:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
15 | /// - returns: A new `EventLoopFuture` that wraps the sequence of transformed elements.
16 | public func mapEach<Result>(
17 | _ transform: @escaping (_ element: Value.Element) -> Result
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
18 | ) -> EventLoopFuture<[Result]> {
19 | return self.map { $0.map(transform) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:34:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
32 | _ keyPath: KeyPath<Value.Element, Result>
33 | ) -> EventLoopFuture<[Result]> {
34 | return self.map { $0.map { $0[keyPath: keyPath] } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:32:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
30 | /// - returns: A new `EventLoopFuture` that wraps the sequence of key path values.
31 | public func mapEach<Result>(
32 | _ keyPath: KeyPath<Value.Element, Result>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
33 | ) -> EventLoopFuture<[Result]> {
34 | return self.map { $0.map { $0[keyPath: keyPath] } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:52:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
50 | _ transform: @escaping (_ element: Value.Element) -> Result?
51 | ) -> EventLoopFuture<[Result]> {
52 | return self.map { $0.compactMap(transform) }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:50:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
48 | /// - returns: A new `EventLoopFuture` that wraps the sequence of transformed elements.
49 | public func mapEachCompact<Result>(
50 | _ transform: @escaping (_ element: Value.Element) -> Result?
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
51 | ) -> EventLoopFuture<[Result]> {
52 | return self.map { $0.compactMap(transform) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:67:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
65 | _ keyPath: KeyPath<Value.Element, Result?>
66 | ) -> EventLoopFuture<[Result]> {
67 | return self.map { $0.compactMap { $0[keyPath: keyPath] } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:65:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
63 | /// - returns: A new `EventLoopFuture` that wraps the sequence of non-nil key path values.
64 | public func mapEachCompact<Result>(
65 | _ keyPath: KeyPath<Value.Element, Result?>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
66 | ) -> EventLoopFuture<[Result]> {
67 | return self.map { $0.compactMap { $0[keyPath: keyPath] } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:84:30: warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
82 | _ transform: @escaping (_ element: Value.Element) -> ResultSegment
83 | ) -> EventLoopFuture<[ResultSegment.Element]> {
84 | return self.map { $0.flatMap(transform) }
| `- warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:84:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
82 | _ transform: @escaping (_ element: Value.Element) -> ResultSegment
83 | ) -> EventLoopFuture<[ResultSegment.Element]> {
84 | return self.map { $0.flatMap(transform) }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:82:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
80 | /// - returns: A new `EventLoopFuture` that wraps the flattened sequence of transformed elements.
81 | public func mapEachFlat<ResultSegment: Sequence>(
82 | _ transform: @escaping (_ element: Value.Element) -> ResultSegment
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
83 | ) -> EventLoopFuture<[ResultSegment.Element]> {
84 | return self.map { $0.flatMap(transform) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:82:11: warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
80 | /// - returns: A new `EventLoopFuture` that wraps the flattened sequence of transformed elements.
81 | public func mapEachFlat<ResultSegment: Sequence>(
82 | _ transform: @escaping (_ element: Value.Element) -> ResultSegment
| `- warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
83 | ) -> EventLoopFuture<[ResultSegment.Element]> {
84 | return self.map { $0.flatMap(transform) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:101:30: warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
| `- warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
102 | }
103 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:101:27: warning: capture of non-sendable type 'Value.Type' in an isolated closure
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
102 | }
103 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:99:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
97 | /// - returns: A new `EventLoopFuture` that wraps the flattened sequence of transformed elements.
98 | public func mapEachFlat<ResultSegment: Sequence>(
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:99:11: warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
97 | /// - returns: A new `EventLoopFuture` that wraps the flattened sequence of transformed elements.
98 | public func mapEachFlat<ResultSegment: Sequence>(
99 | _ keyPath: KeyPath<Value.Element, ResultSegment>
| `- warning: capture of non-sendable type 'ResultSegment.Type' in an isolated closure
100 | ) -> EventLoopFuture<[ResultSegment.Element]> {
101 | return self.map { $0.flatMap { $0[keyPath: keyPath] } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:120:42: warning: capture of non-sendable type 'Value.Type' in an isolated closure
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:118:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
116 | public func flatMapEach<Result>(
117 | on eventLoop: any EventLoop,
118 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
119 | ) -> EventLoopFuture<[Result]> {
120 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { $0.append($1) } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:140:39: warning: capture of non-sendable type 'Value.Type' in an isolated closure
138 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>
139 | ) -> EventLoopFuture<Void> {
140 | self.flatMap { .andAllSucceed($0.map(transform), on: eventLoop) }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:138:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
136 | public func flatMapEach(
137 | on eventLoop: any EventLoop,
138 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
139 | ) -> EventLoopFuture<Void> {
140 | self.flatMap { .andAllSucceed($0.map(transform), on: eventLoop) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:159:42: warning: capture of non-sendable type 'Value.Type' in an isolated closure
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:157:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
155 | public func flatMapEachCompact<Result>(
156 | on eventLoop: any EventLoop,
157 | _ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
158 | ) -> EventLoopFuture<[Result]> {
159 | self.flatMap { .reduce(into: [], $0.map(transform), on: eventLoop) { res, elem in elem.map { res.append($0) } } }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:181:24: warning: capture of non-sendable type 'Value.Type' in an isolated closure
179 | ) -> EventLoopFuture<[Result]> {
180 | return self.flatMapThrowing { sequence -> [Result] in
181 | return try sequence.map(transform)
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:178:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
176 | /// - returns: A new `EventLoopFuture` that wraps the sequence of transformed elements.
177 | public func flatMapEachThrowing<Result>(
178 | _ transform: @escaping (_ element: Value.Element) throws -> Result
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
179 | ) -> EventLoopFuture<[Result]> {
180 | return self.flatMapThrowing { sequence -> [Result] in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:203:24: warning: capture of non-sendable type 'Value.Type' in an isolated closure
201 | ) -> EventLoopFuture<[Result]> {
202 | return self.flatMapThrowing { sequence -> [Result] in
203 | return try sequence.compactMap(transform)
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
204 | }
205 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:200:11: warning: capture of non-sendable type 'Value.Type' in an isolated closure
198 | /// - returns: A new `EventLoopFuture` that wraps the sequence of transformed elements.
199 | public func flatMapEachCompactThrowing<Result>(
200 | _ transform: @escaping (_ element: Value.Element) throws -> Result?
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
201 | ) -> EventLoopFuture<[Result]> {
202 | return self.flatMapThrowing { sequence -> [Result] in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:221:13: warning: capture of non-sendable type 'Value.Type' in an isolated closure
219 |
220 | return self.flatMap {
221 | $0.reduce(self.eventLoop.future()) { fut, elem in
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
222 | fut.flatMap { transform(elem).map { results.append($0) } }
223 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:217:17: warning: capture of non-sendable type 'Value.Type' in an isolated closure
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
218 | var results: [Result] = []
219 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:217:48: warning: capture of non-sendable type 'Value.Type' in an isolated closure
215 | ///
216 | /// Neither of these are provided by the original version of the method.
217 | public func sequencedFlatMapEach<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result>) -> EventLoopFuture<[Result]> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
218 | var results: [Result] = []
219 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:231:13: warning: capture of non-sendable type 'Value.Type' in an isolated closure
229 | public func sequencedFlatMapEach(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>) -> EventLoopFuture<Void> {
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
232 | fut.flatMap { transform(elem) }
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:229:17: warning: capture of non-sendable type 'Value.Type' in an isolated closure
227 | /// An overload of `sequencedFlatMapEach(_:)` which returns a `Void` future instead
228 | /// of `[Void]` when the result type of the transform closure is `Void`.
229 | public func sequencedFlatMapEach(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>) -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:229:40: warning: capture of non-sendable type 'Value.Type' in an isolated closure
227 | /// An overload of `sequencedFlatMapEach(_:)` which returns a `Void` future instead
228 | /// of `[Void]` when the result type of the transform closure is `Void`.
229 | public func sequencedFlatMapEach(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Void>) -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
230 | return self.flatMap {
231 | $0.reduce(self.eventLoop.future()) { fut, elem in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:244:13: warning: capture of non-sendable type 'Value.Type' in an isolated closure
242 |
243 | return self.flatMap {
244 | $0.reduce(self.eventLoop.future()) { fut, elem in
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
245 | fut.flatMap { transform(elem).map {
246 | $0.map { results.append($0) }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:240:17: warning: capture of non-sendable type 'Value.Type' in an isolated closure
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
241 | var results: [Result] = []
242 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncKit/EventLoopFuture/Future+Collection.swift:240:55: warning: capture of non-sendable type 'Value.Type' in an isolated closure
238 | /// by allowing result values to be `nil`. Such results are not included in the
239 | /// output array.
240 | public func sequencedFlatMapEachCompact<Result>(_ transform: @escaping (_ element: Value.Element) -> EventLoopFuture<Result?>) -> EventLoopFuture<[Result]> {
| `- warning: capture of non-sendable type 'Value.Type' in an isolated closure
241 | var results: [Result] = []
242 |
Build complete! (34.87s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-algorithms.git
[1/5968] Fetching swift-algorithms
[240/9865] Fetching swift-algorithms, swift-log
[672/27219] Fetching swift-algorithms, swift-log, swift-collections
[11292/104877] Fetching swift-algorithms, swift-log, swift-collections, swift-nio
Fetched https://github.com/apple/swift-algorithms.git from cache (1.73s)
[39113/98909] Fetching swift-log, swift-collections, swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (3.95s)
Fetched https://github.com/apple/swift-collections.git from cache (3.95s)
Fetched https://github.com/apple/swift-log.git from cache (3.95s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (6.56s)
Fetching https://github.com/apple/swift-numerics.git
[1/6342] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (1.13s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (1.66s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.38s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (0.47s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.86.0 (0.50s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/4900] Fetching swift-system
[148/6708] Fetching swift-system, swift-atomics
Fetched https://github.com/apple/swift-system.git from cache (1.00s)
[1555/1808] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (1.04s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.46s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.2 (0.41s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.2
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.86.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.1
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.61.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-collections",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.5",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-collections.git"
},
{
"identity" : "swift-algorithms",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-algorithms.git"
}
],
"manifest_display_name" : "async-kit",
"name" : "async-kit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "AsyncKit",
"targets" : [
"AsyncKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AsyncKitTests",
"module_type" : "SwiftTarget",
"name" : "AsyncKitTests",
"path" : "Tests/AsyncKitTests",
"sources" : [
"AsyncConnectionPoolTests.swift",
"AsyncKitTestsCommon.swift",
"Collection+FlattenTests.swift",
"ConnectionPoolTests.swift",
"EventLoop+ConcurrencyTests.swift",
"EventLoopFutureQueueTests.swift",
"EventLoopGroup+FutureTests.swift",
"Future+CollectionTests.swift",
"Future+ConjunctionTests.swift",
"Future+MiscellaneousTests.swift",
"Future+NonemptyTests.swift",
"Future+OptionalTests.swift",
"Future+TransformTests.swift",
"Future+TryTests.swift",
"FutureOperatorsTests.swift"
],
"target_dependencies" : [
"AsyncKit"
],
"type" : "test"
},
{
"c99name" : "AsyncKit",
"module_type" : "SwiftTarget",
"name" : "AsyncKit",
"path" : "Sources/AsyncKit",
"product_dependencies" : [
"Logging",
"NIOCore",
"NIOEmbedded",
"NIOPosix",
"Collections",
"Algorithms"
],
"product_memberships" : [
"AsyncKit"
],
"sources" : [
"ConnectionPool/ConnectionPoolError.swift",
"ConnectionPool/ConnectionPoolItem.swift",
"ConnectionPool/ConnectionPoolSource.swift",
"ConnectionPool/EventLoopConnectionPool.swift",
"ConnectionPool/EventLoopGroupConnectionPool.swift",
"EventLoop/EventLoop+Concurrency.swift",
"EventLoop/EventLoop+Flatten.swift",
"EventLoop/EventLoop+Future.swift",
"EventLoop/EventLoopGroup+Concurrency.swift",
"EventLoop/EventLoopGroup+Throwing.swift",
"EventLoopFuture/Collection+Flatten.swift",
"EventLoopFuture/EventLoopFutureQueue+Sequence.swift",
"EventLoopFuture/EventLoopFutureQueue.swift",
"EventLoopFuture/Future+Collection.swift",
"EventLoopFuture/Future+Conjunctions.swift",
"EventLoopFuture/Future+Miscellaneous.swift",
"EventLoopFuture/Future+Nonempty.swift",
"EventLoopFuture/Future+Optional.swift",
"EventLoopFuture/Future+Transform.swift",
"EventLoopFuture/Future+Try.swift",
"EventLoopFuture/FutureOperators.swift",
"EventLoopFuture/Optional+StrictMap.swift",
"Exports.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.