Build Information
Successful build of async-kit, reference main (e048c8
), with Swift 6.2 (beta) for Android on 21 Jun 2025 21:43:30 UTC.
Swift 6 data race errors: 0
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
[125/401] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[126/411] Compiling BitCollections BitSet+SetAlgebra intersection.swift
[127/411] Compiling BitCollections BitSet+SetAlgebra isDisjoint.swift
[128/411] Compiling BitCollections BitSet+SetAlgebra isEqualSet.swift
[129/411] Compiling BitCollections BitSet+SetAlgebra isStrictSubset.swift
[130/411] Compiling BitCollections BitSet+SetAlgebra isStrictSuperset.swift
[131/411] Compiling BitCollections BitSet+SetAlgebra isSubset.swift
[132/411] Compiling BitCollections BitSet+SetAlgebra isSuperset.swift
[133/411] Compiling BitCollections BitSet+SetAlgebra subtract.swift
[134/418] Compiling BitCollections BitSet+Invariants.swift
[135/418] Compiling BitCollections BitSet+Random.swift
[136/418] Compiling BitCollections BitSet+SetAlgebra basics.swift
[137/418] Compiling BitCollections BitSet+SetAlgebra conformance.swift
[138/418] Compiling BitCollections BitSet+SetAlgebra formIntersection.swift
[139/418] Compiling BitCollections BitSet+SetAlgebra formSymmetricDifference.swift
[140/418] Compiling BitCollections BitSet+SetAlgebra formUnion.swift
[141/418] Compiling BitCollections BitSet+SetAlgebra subtracting.swift
[142/418] Compiling BitCollections BitSet+SetAlgebra symmetricDifference.swift
[143/418] Compiling BitCollections BitSet+SetAlgebra union.swift
[144/418] Compiling BitCollections BitSet+Sorted Collection APIs.swift
[145/418] Compiling BitCollections BitSet.Counted.swift
[146/418] Compiling HashTreeCollections TreeDictionary+Sendable.swift
[147/418] Compiling HashTreeCollections TreeDictionary+Sequence.swift
[148/418] Compiling BitCollections BitSet+CustomDebugStringConvertible.swift
[149/418] Compiling BitCollections BitSet+CustomReflectable.swift
[150/418] Compiling BitCollections BitSet+CustomStringConvertible.swift
[151/418] Compiling BitCollections BitSet+Equatable.swift
[152/418] Compiling BitCollections BitSet+ExpressibleByArrayLiteral.swift
[153/418] Compiling BitCollections BitSet+Extras.swift
[154/418] Compiling BitCollections BitSet+Hashable.swift
[155/418] Compiling BitCollections BitSet+Initializers.swift
[156/418] Compiling BitCollections BitArray+Extras.swift
[157/418] Compiling BitCollections BitArray+Fill.swift
[158/418] Compiling OrderedCollections OrderedSet+SubSequence.swift
[159/418] Compiling OrderedCollections OrderedSet+Testing.swift
[160/418] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[161/418] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[162/418] Compiling OrderedCollections OrderedSet.swift
[163/418] Compiling OrderedCollections _UnsafeBitset.swift
[164/418] Compiling HashTreeCollections TreeSet+Equatable.swift
[165/418] Compiling HashTreeCollections TreeSet+ExpressibleByArrayLiteral.swift
[166/418] Compiling HashTreeCollections TreeSet+Extras.swift
[167/418] Compiling HashTreeCollections TreeSet+Filter.swift
[172/421] Compiling BitCollections BitArray+BitwiseOperations.swift
[173/421] Compiling BitCollections BitArray+ChunkedBitsIterators.swift
[180/421] Compiling BitCollections BitArray+RandomBits.swift
[181/421] Compiling BitCollections BitArray+RangeReplaceableCollection.swift
[182/421] Compiling BitCollections BitArray+Shifts.swift
[183/421] Compiling BitCollections BitArray+Testing.swift
[184/421] Compiling BitCollections BitArray._UnsafeHandle.swift
[185/421] Compiling BitCollections BitArray.swift
[186/421] Compiling BitCollections BitSet+BidirectionalCollection.swift
[187/421] Compiling BitCollections BitSet+Codable.swift
[198/421] Compiling OrderedCollections OrderedSet+Sendable.swift
[221/421] Compiling Algorithms Trim.swift
[222/421] Compiling Algorithms Unique.swift
[223/421] Compiling Algorithms Windows.swift
[228/428] Compiling Logging MetadataProvider.swift
[229/428] Compiling Logging Locks.swift
[237/428] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[238/428] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[239/428] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[240/428] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[241/428] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[242/428] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[243/428] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[244/428] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[245/428] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[246/428] Compiling HashTreeCollections TreeSet.swift
[247/428] Emitting module DequeModule
[249/489] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[250/489] Compiling NIOCore ByteBuffer-conversions.swift
[251/489] Compiling NIOCore ByteBuffer-core.swift
[252/489] Compiling NIOCore ByteBuffer-hex.swift
[253/489] Compiling NIOCore ByteBuffer-int.swift
[254/489] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[255/489] Emitting module BitCollections
[256/489] Compiling NIOCore AddressedEnvelope.swift
[257/489] Compiling NIOCore AsyncAwaitSupport.swift
[258/489] Compiling NIOCore AsyncChannel.swift
[259/489] Compiling NIOCore AsyncChannelHandler.swift
[260/489] Compiling NIOCore AsyncChannelInboundStream.swift
[261/489] Compiling NIOCore AsyncChannelOutboundWriter.swift
[262/489] Compiling NIOCore NIOAsyncSequenceProducer.swift
[263/489] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[264/489] Compiling Logging Logging.swift
[265/489] Compiling Logging LogHandler.swift
[267/490] Compiling NIOCore EventLoop+SerialExecutor.swift
[268/490] Compiling NIOCore EventLoop.swift
[269/490] Compiling NIOCore ByteBuffer-multi-int.swift
[270/490] Compiling NIOCore NIOAsyncWriter.swift
[271/490] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[272/490] Compiling NIOCore BSDSocketAPI.swift
[273/490] Compiling NIOCore ByteBuffer-aux.swift
[274/490] Compiling NIOCore ChannelOption.swift
[275/490] Compiling NIOCore ChannelPipeline.swift
[276/490] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[277/490] Compiling NIOCore EventLoopFuture+Deprecated.swift
[278/490] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[279/490] Compiling NIOCore EventLoopFuture.swift
[280/490] Compiling NIOCore FileDescriptor.swift
[281/490] Compiling NIOCore FileHandle.swift
[282/490] Compiling NIOCore FileRegion.swift
[283/490] Compiling NIOCore GlobalSingletons.swift
[284/490] Compiling NIOCore IO.swift
[293/490] Compiling NIOCore CircularBuffer.swift
[294/490] Compiling NIOCore Codec.swift
[307/499] Compiling NIOCore ConvenienceOptionSupport.swift
[308/499] Compiling NIOCore DeadChannel.swift
[309/499] Compiling NIOCore DispatchQueue+WithFuture.swift
[310/499] Compiling NIOCore EventLoop+Deprecated.swift
[319/499] Compiling NIOCore NIOLoopBound.swift
[320/499] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[321/499] Compiling NIOCore NIOScheduledCallback.swift
[322/499] Compiling NIOCore NIOSendable.swift
[323/499] Compiling NIOCore RecvByteBufferAllocator.swift
[326/499] Compiling NIOCore Linux.swift
[327/499] Compiling NIOCore MarkedCircularBuffer.swift
[328/499] Compiling NIOCore MulticastChannel.swift
[329/499] Compiling NIOCore NIOAny.swift
[330/499] Compiling NIOCore NIOCloseOnErrorHandler.swift
[355/499] Emitting module OrderedCollections
[398/509] Emitting module _RopeModule
[404/509] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[405/509] Compiling NIOCore ByteBuffer-views.swift
[406/509] Compiling NIOCore Channel.swift
[407/509] Compiling NIOCore ChannelHandler.swift
[408/509] Compiling NIOCore ChannelHandlers.swift
[409/509] Compiling NIOCore ChannelInvoker.swift
[410/509] Emitting module Algorithms
[413/510] Compiling NIOCore IOData.swift
[414/510] Compiling NIOCore IPProtocol.swift
[415/510] Compiling NIOCore IntegerBitPacking.swift
[416/510] Compiling NIOCore IntegerTypes.swift
[417/510] Compiling NIOCore Interfaces.swift
[420/510] Emitting module HashTreeCollections
[421/510] Compiling _RopeModule Rope+Join.swift
[422/510] Compiling _RopeModule Rope+MutatingForEach.swift
[423/510] Compiling _RopeModule Rope+Remove.swift
[424/510] Compiling _RopeModule Rope+RemoveSubrange.swift
[425/510] Compiling _RopeModule Rope+Split.swift
[426/510] Compiling _RopeModule Optional Utilities.swift
[427/510] Compiling _RopeModule String Utilities.swift
[428/510] Compiling _RopeModule String.Index+ABI.swift
[429/510] Compiling _RopeModule _CharacterRecognizer.swift
[469/514] Compiling Collections Collections.swift
[470/514] Emitting module Collections
[480/515] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[481/515] Compiling NIOCore SocketAddresses.swift
[482/515] Compiling NIOCore SocketOptionProvider.swift
[483/515] Compiling NIOCore SystemCallHelpers.swift
[484/515] Compiling NIOCore TimeAmount+Duration.swift
[485/515] Compiling NIOCore TypeAssistedChannelHandler.swift
[486/515] Compiling NIOCore UniversalBootstrapSupport.swift
[487/515] Compiling NIOCore Utilities.swift
[515/515] Emitting module NIOCore
[517/566] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[518/566] Emitting module NIOEmbedded
[519/566] Compiling NIOEmbedded AsyncTestingChannel.swift
[520/566] Compiling NIOEmbedded Embedded.swift
[522/567] Compiling NIOPosix Pool.swift
[523/567] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[524/567] Compiling NIOPosix PosixSingletons.swift
[525/567] Compiling NIOPosix RawSocketBootstrap.swift
[526/567] Compiling NIOPosix Resolver.swift
[527/567] Compiling NIOPosix Selectable.swift
[528/567] Compiling NIOPosix SelectableChannel.swift
[529/567] Compiling NIOPosix SelectableEventLoop.swift
[530/567] Compiling NIOPosix SelectorEpoll.swift
[531/567] Compiling NIOPosix SelectorGeneric.swift
[532/567] Compiling NIOPosix SelectorKqueue.swift
[533/567] Compiling NIOPosix SelectorUring.swift
[534/567] Compiling NIOPosix ServerSocket.swift
[535/567] Compiling NIOPosix Socket.swift
[536/567] Compiling NIOPosix SocketChannel.swift
[537/567] Compiling NIOPosix SocketProtocols.swift
[538/567] Compiling NIOPosix System.swift
[539/567] Compiling NIOPosix Thread.swift
[540/573] Emitting module NIOPosix
[541/573] Compiling NIOPosix BSDSocketAPICommon.swift
[542/573] Compiling NIOPosix BSDSocketAPIPosix.swift
[543/573] Compiling NIOPosix BSDSocketAPIWindows.swift
[544/573] Compiling NIOPosix BaseSocket.swift
[545/573] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[546/573] Compiling NIOPosix BaseSocketChannel.swift
[547/573] Compiling NIOPosix BaseStreamSocketChannel.swift
[548/573] Compiling NIOPosix ThreadPosix.swift
[549/573] Compiling NIOPosix ThreadWindows.swift
[550/573] Compiling NIOPosix UnsafeTransfer.swift
[551/573] Compiling NIOPosix Utilities.swift
[552/573] Compiling NIOPosix VsockAddress.swift
[553/573] Compiling NIOPosix VsockChannelEvents.swift
[554/573] Compiling NIOPosix IO.swift
[555/573] Compiling NIOPosix IntegerBitPacking.swift
[556/573] Compiling NIOPosix IntegerTypes.swift
[557/573] Compiling NIOPosix Linux.swift
[558/573] Compiling NIOPosix LinuxCPUSet.swift
[559/573] Compiling NIOPosix LinuxUring.swift
[560/573] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[561/573] Compiling NIOPosix NIOThreadPool.swift
[562/573] Compiling NIOPosix NonBlockingFileIO.swift
[563/573] Compiling NIOPosix PendingDatagramWritesManager.swift
[564/573] Compiling NIOPosix PendingWritesManager.swift
[565/573] Compiling NIOPosix PipeChannel.swift
[566/573] Compiling NIOPosix PipePair.swift
[567/573] Compiling NIOPosix Bootstrap.swift
[568/573] Compiling NIOPosix ControlMessage.swift
[569/573] Compiling NIOPosix DatagramVectorReadManager.swift
[570/573] Compiling NIOPosix Errors+Any.swift
[571/573] Compiling NIOPosix FileDescriptor.swift
[572/573] Compiling NIOPosix GetaddrinfoResolver.swift
[573/573] Compiling NIOPosix HappyEyeballs.swift
[575/596] Compiling AsyncKit Future+Transform.swift
/host/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
/host/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
/host/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
/host/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
/host/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 |
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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 |
/host/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 |
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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 |
[576/596] Compiling AsyncKit Future+Try.swift
/host/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
/host/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
/host/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
/host/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
/host/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 |
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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 |
/host/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 |
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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 |
[577/596] Compiling AsyncKit FutureOperators.swift
/host/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
/host/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
/host/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
/host/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
/host/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 |
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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 |
/host/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 |
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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 |
[578/598] Compiling AsyncKit Optional+StrictMap.swift
[579/598] Compiling AsyncKit Exports.swift
[580/598] Compiling AsyncKit EventLoopConnectionPool.swift
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:128:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
126 | ) -> EventLoopFuture<Result> {
127 | self.requestConnection(logger: logger).flatMap { conn in
128 | closure(conn).always { _ in
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
129 | self.releaseConnection(conn, logger: logger)
130 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:125:11: warning: capture of non-sendable type 'Source.Type' in an isolated closure
123 | public func withConnection<Result>(
124 | logger: Logger,
125 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
126 | ) -> EventLoopFuture<Result> {
127 | self.requestConnection(logger: logger).flatMap { conn in
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:129:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
127 | self.requestConnection(logger: logger).flatMap { conn in
128 | closure(conn).always { _ in
129 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
130 | }
131 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:129:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
127 | self.requestConnection(logger: logger).flatMap { conn in
128 | closure(conn).always { _ in
129 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
130 | }
131 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:123:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
121 | /// - closure: Callback that accepts the pooled connection.
122 | /// - Returns: A future containing the result of the closure.
123 | public func withConnection<Result>(
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
124 | logger: Logger,
125 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:170:79: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
168 | } else {
169 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
170 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
171 | return promise.futureResult
172 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:170:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
168 | } else {
169 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
170 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
171 | return promise.futureResult
172 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:163:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
161 | /// - eventLoop: Preferred event loop for the new connection.
162 | /// - returns: A future containing the requested connection.
163 | public func requestConnection(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
164 | /// N.B.: This particular pattern (the use of a promise to forward the result when off the event loop)
165 | /// is straight out of NIO's `EventLoopFuture.fold()` implementation.
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:199:63: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
197 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
198 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
199 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
200 | logger.trace("Waiter \(waiterId) already removed when timeout task fired")
201 | return
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:199:23: warning: capture of non-sendable type 'Source.Type' in an isolated closure
197 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
198 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
199 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
200 | logger.trace("Waiter \(waiterId) already removed when timeout task fired")
201 | return
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:197:88: warning: capture of non-sendable type 'Source.Type' in an isolated closure
195 | let waiterId = self.idGenerator.wrappingIncrementThenLoad(ordering: .relaxed)
196 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
197 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
198 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
199 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:215:27: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
213 | logger.trace("Connection request with ID \(waiterId) completed")
214 | timeoutTask.cancel()
215 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
216 | }
217 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:215:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
213 | logger.trace("Connection request with ID \(waiterId) completed")
214 | timeoutTask.cancel()
215 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
216 | }
217 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:212:51: warning: capture of non-sendable type 'Source.Type' in an isolated closure
210 | self.waiters[waiterId] = (logger: logger, promise: promise, timeoutTask: timeoutTask)
211 |
212 | promise.futureResult.whenComplete { [weak self] _ in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
213 | logger.trace("Connection request with ID \(waiterId) completed")
214 | timeoutTask.cancel()
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:225:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
223 | // On success, "release" the new connection to the pool and let the waitlist logic take over
224 | logger.trace("New connection successful, servicing waitlist")
225 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
227 | self?.activeConnections -= 1
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:225:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
223 | // On success, "release" the new connection to the pool and let the waitlist logic take over
224 | logger.trace("New connection successful, servicing waitlist")
225 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
227 | self?.activeConnections -= 1
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:176:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
174 |
175 | /// Actual implementation of ``requestConnection(logger:)``.
176 | private func _requestConnection0(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
177 | self.eventLoop.assertInEventLoop()
178 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:227:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure
225 | self._releaseConnection0($0, logger: logger)
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
227 | self?.activeConnections -= 1
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
228 | logger.error("Opening new connection for pool failed: \(String(reflecting: error))")
229 | return eventLoop.makeFailedFuture(error)
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:226:49: warning: capture of non-sendable type 'Source.Type' in an isolated closure
224 | logger.trace("New connection successful, servicing waitlist")
225 | self._releaseConnection0($0, logger: logger)
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
227 | self?.activeConnections -= 1
228 | logger.error("Opening new connection for pool failed: \(String(reflecting: error))")
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:261:43: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
259 | self._releaseConnection0(connection, logger: logger)
260 | } else {
261 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
262 | }
263 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:261:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
259 | self._releaseConnection0(connection, logger: logger)
260 | } else {
261 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
262 | }
263 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:257:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
255 | /// - connection: Connection to release back to the pool.
256 | /// - logger: For trace and debug logs.
257 | public func releaseConnection(_ connection: Source.Connection, logger: Logger) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
258 | if self.eventLoop.inEventLoop {
259 | self._releaseConnection0(connection, logger: logger)
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:305:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
303 | } else {
304 | let promise = self.eventLoop.makePromise(of: Void.self)
305 | self.eventLoop.execute { self._close0().cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
306 | return promise.futureResult
307 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:300:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
298 | ///
299 | /// Connection pools must be closed before they deinitialize.
300 | public func close() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
301 | if self.eventLoop.inEventLoop {
302 | return self._close0()
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:13: warning: capture of non-sendable type 'Source.Type' in an isolated closure
326 | $0.close()
327 | }.flatten(on: self.eventLoop).map {
328 | self.activeConnections = 0
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
329 | self.available.removeAll()
330 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:310:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
308 | }
309 |
310 | private func _close0() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
311 | self.eventLoop.assertInEventLoop()
312 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:329:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
327 | }.flatten(on: self.eventLoop).map {
328 | self.activeConnections = 0
329 | self.available.removeAll()
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
330 | }
331 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:290:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure; this is an error in the Swift 6 language mode
288 | guard !self.didShutdown else {
289 | DispatchQueue.global().async {
290 | 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; this is an error in the Swift 6 language mode
291 | callback(ConnectionPoolError.shutdown)
292 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:284:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure; this is an error in the Swift 6 language mode
282 | /// - Warning: Any invocation of the callback represents a signal that the pool has fully shut
283 | /// down. This is true even if the error parameter is non-`nil`; errors are purely advisory.
284 | public func shutdownGracefully(_ callback: @escaping (Error?) -> Void) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure; this is an error in the Swift 6 language mode
285 | // Protect access to shared state.
286 | guard self.lock.withLock({
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:317:21: warning: mutation of captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | pool.close().whenComplete { result in
316 | shutdownQueue.async() {
317 | outcome = outcome.flatMap { result }
| `- warning: mutation of captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
318 | shutdownGroup.leave()
319 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:317:31: warning: reference to captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | pool.close().whenComplete { result in
316 | shutdownQueue.async() {
317 | outcome = outcome.flatMap { result }
| `- warning: reference to captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
318 | shutdownGroup.leave()
319 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[581/598] Compiling AsyncKit EventLoopGroupConnectionPool.swift
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:128:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
126 | ) -> EventLoopFuture<Result> {
127 | self.requestConnection(logger: logger).flatMap { conn in
128 | closure(conn).always { _ in
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
129 | self.releaseConnection(conn, logger: logger)
130 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:125:11: warning: capture of non-sendable type 'Source.Type' in an isolated closure
123 | public func withConnection<Result>(
124 | logger: Logger,
125 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
126 | ) -> EventLoopFuture<Result> {
127 | self.requestConnection(logger: logger).flatMap { conn in
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:129:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
127 | self.requestConnection(logger: logger).flatMap { conn in
128 | closure(conn).always { _ in
129 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
130 | }
131 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:129:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
127 | self.requestConnection(logger: logger).flatMap { conn in
128 | closure(conn).always { _ in
129 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
130 | }
131 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:123:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
121 | /// - closure: Callback that accepts the pooled connection.
122 | /// - Returns: A future containing the result of the closure.
123 | public func withConnection<Result>(
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
124 | logger: Logger,
125 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:170:79: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
168 | } else {
169 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
170 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
171 | return promise.futureResult
172 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:170:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
168 | } else {
169 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
170 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
171 | return promise.futureResult
172 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:163:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
161 | /// - eventLoop: Preferred event loop for the new connection.
162 | /// - returns: A future containing the requested connection.
163 | public func requestConnection(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
164 | /// N.B.: This particular pattern (the use of a promise to forward the result when off the event loop)
165 | /// is straight out of NIO's `EventLoopFuture.fold()` implementation.
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:199:63: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
197 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
198 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
199 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
200 | logger.trace("Waiter \(waiterId) already removed when timeout task fired")
201 | return
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:199:23: warning: capture of non-sendable type 'Source.Type' in an isolated closure
197 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
198 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
199 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
200 | logger.trace("Waiter \(waiterId) already removed when timeout task fired")
201 | return
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:197:88: warning: capture of non-sendable type 'Source.Type' in an isolated closure
195 | let waiterId = self.idGenerator.wrappingIncrementThenLoad(ordering: .relaxed)
196 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
197 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
198 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
199 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:215:27: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
213 | logger.trace("Connection request with ID \(waiterId) completed")
214 | timeoutTask.cancel()
215 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
216 | }
217 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:215:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
213 | logger.trace("Connection request with ID \(waiterId) completed")
214 | timeoutTask.cancel()
215 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
216 | }
217 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:212:51: warning: capture of non-sendable type 'Source.Type' in an isolated closure
210 | self.waiters[waiterId] = (logger: logger, promise: promise, timeoutTask: timeoutTask)
211 |
212 | promise.futureResult.whenComplete { [weak self] _ in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
213 | logger.trace("Connection request with ID \(waiterId) completed")
214 | timeoutTask.cancel()
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:225:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
223 | // On success, "release" the new connection to the pool and let the waitlist logic take over
224 | logger.trace("New connection successful, servicing waitlist")
225 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
227 | self?.activeConnections -= 1
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:225:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
223 | // On success, "release" the new connection to the pool and let the waitlist logic take over
224 | logger.trace("New connection successful, servicing waitlist")
225 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
227 | self?.activeConnections -= 1
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:176:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
174 |
175 | /// Actual implementation of ``requestConnection(logger:)``.
176 | private func _requestConnection0(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
177 | self.eventLoop.assertInEventLoop()
178 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:227:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure
225 | self._releaseConnection0($0, logger: logger)
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
227 | self?.activeConnections -= 1
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
228 | logger.error("Opening new connection for pool failed: \(String(reflecting: error))")
229 | return eventLoop.makeFailedFuture(error)
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:226:49: warning: capture of non-sendable type 'Source.Type' in an isolated closure
224 | logger.trace("New connection successful, servicing waitlist")
225 | self._releaseConnection0($0, logger: logger)
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
227 | self?.activeConnections -= 1
228 | logger.error("Opening new connection for pool failed: \(String(reflecting: error))")
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:261:43: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
259 | self._releaseConnection0(connection, logger: logger)
260 | } else {
261 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
262 | }
263 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:261:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
259 | self._releaseConnection0(connection, logger: logger)
260 | } else {
261 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
262 | }
263 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:257:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
255 | /// - connection: Connection to release back to the pool.
256 | /// - logger: For trace and debug logs.
257 | public func releaseConnection(_ connection: Source.Connection, logger: Logger) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
258 | if self.eventLoop.inEventLoop {
259 | self._releaseConnection0(connection, logger: logger)
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:305:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
303 | } else {
304 | let promise = self.eventLoop.makePromise(of: Void.self)
305 | self.eventLoop.execute { self._close0().cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
306 | return promise.futureResult
307 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:300:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
298 | ///
299 | /// Connection pools must be closed before they deinitialize.
300 | public func close() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
301 | if self.eventLoop.inEventLoop {
302 | return self._close0()
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:13: warning: capture of non-sendable type 'Source.Type' in an isolated closure
326 | $0.close()
327 | }.flatten(on: self.eventLoop).map {
328 | self.activeConnections = 0
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
329 | self.available.removeAll()
330 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:310:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
308 | }
309 |
310 | private func _close0() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
311 | self.eventLoop.assertInEventLoop()
312 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:329:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
327 | }.flatten(on: self.eventLoop).map {
328 | self.activeConnections = 0
329 | self.available.removeAll()
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
330 | }
331 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:290:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure; this is an error in the Swift 6 language mode
288 | guard !self.didShutdown else {
289 | DispatchQueue.global().async {
290 | 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; this is an error in the Swift 6 language mode
291 | callback(ConnectionPoolError.shutdown)
292 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:284:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure; this is an error in the Swift 6 language mode
282 | /// - Warning: Any invocation of the callback represents a signal that the pool has fully shut
283 | /// down. This is true even if the error parameter is non-`nil`; errors are purely advisory.
284 | public func shutdownGracefully(_ callback: @escaping (Error?) -> Void) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure; this is an error in the Swift 6 language mode
285 | // Protect access to shared state.
286 | guard self.lock.withLock({
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:317:21: warning: mutation of captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | pool.close().whenComplete { result in
316 | shutdownQueue.async() {
317 | outcome = outcome.flatMap { result }
| `- warning: mutation of captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
318 | shutdownGroup.leave()
319 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:317:31: warning: reference to captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | pool.close().whenComplete { result in
316 | shutdownQueue.async() {
317 | outcome = outcome.flatMap { result }
| `- warning: reference to captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
318 | shutdownGroup.leave()
319 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[582/598] Compiling AsyncKit EventLoop+Concurrency.swift
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:128:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
126 | ) -> EventLoopFuture<Result> {
127 | self.requestConnection(logger: logger).flatMap { conn in
128 | closure(conn).always { _ in
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
129 | self.releaseConnection(conn, logger: logger)
130 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:125:11: warning: capture of non-sendable type 'Source.Type' in an isolated closure
123 | public func withConnection<Result>(
124 | logger: Logger,
125 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
126 | ) -> EventLoopFuture<Result> {
127 | self.requestConnection(logger: logger).flatMap { conn in
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:129:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
127 | self.requestConnection(logger: logger).flatMap { conn in
128 | closure(conn).always { _ in
129 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
130 | }
131 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:129:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
127 | self.requestConnection(logger: logger).flatMap { conn in
128 | closure(conn).always { _ in
129 | self.releaseConnection(conn, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
130 | }
131 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:123:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
121 | /// - closure: Callback that accepts the pooled connection.
122 | /// - Returns: A future containing the result of the closure.
123 | public func withConnection<Result>(
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
124 | logger: Logger,
125 | _ closure: @escaping (Source.Connection) -> EventLoopFuture<Result>
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:170:79: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
168 | } else {
169 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
170 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
171 | return promise.futureResult
172 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:170:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
168 | } else {
169 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
170 | self.eventLoop.execute { self._requestConnection0(logger: logger).cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
171 | return promise.futureResult
172 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:163:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
161 | /// - eventLoop: Preferred event loop for the new connection.
162 | /// - returns: A future containing the requested connection.
163 | public func requestConnection(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
164 | /// N.B.: This particular pattern (the use of a promise to forward the result when off the event loop)
165 | /// is straight out of NIO's `EventLoopFuture.fold()` implementation.
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:199:63: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
197 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
198 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
199 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
200 | logger.trace("Waiter \(waiterId) already removed when timeout task fired")
201 | return
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:199:23: warning: capture of non-sendable type 'Source.Type' in an isolated closure
197 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
198 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
199 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
200 | logger.trace("Waiter \(waiterId) already removed when timeout task fired")
201 | return
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:197:88: warning: capture of non-sendable type 'Source.Type' in an isolated closure
195 | let waiterId = self.idGenerator.wrappingIncrementThenLoad(ordering: .relaxed)
196 | let promise = self.eventLoop.makePromise(of: Source.Connection.self)
197 | let timeoutTask = self.eventLoop.scheduleTask(in: self.requestTimeout) { [weak self] in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
198 | // Try to avoid a spurious log message and failure if the waiter has already been removed from the list.
199 | guard self?.waiters.removeValue(forKey: waiterId) != nil else {
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:215:27: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
213 | logger.trace("Connection request with ID \(waiterId) completed")
214 | timeoutTask.cancel()
215 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
216 | }
217 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:215:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
213 | logger.trace("Connection request with ID \(waiterId) completed")
214 | timeoutTask.cancel()
215 | self?.waiters.removeValue(forKey: waiterId)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
216 | }
217 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:212:51: warning: capture of non-sendable type 'Source.Type' in an isolated closure
210 | self.waiters[waiterId] = (logger: logger, promise: promise, timeoutTask: timeoutTask)
211 |
212 | promise.futureResult.whenComplete { [weak self] _ in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
213 | logger.trace("Connection request with ID \(waiterId) completed")
214 | timeoutTask.cancel()
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:225:22: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
223 | // On success, "release" the new connection to the pool and let the waitlist logic take over
224 | logger.trace("New connection successful, servicing waitlist")
225 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
227 | self?.activeConnections -= 1
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:225:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
223 | // On success, "release" the new connection to the pool and let the waitlist logic take over
224 | logger.trace("New connection successful, servicing waitlist")
225 | self._releaseConnection0($0, logger: logger)
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
227 | self?.activeConnections -= 1
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:176:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
174 |
175 | /// Actual implementation of ``requestConnection(logger:)``.
176 | private func _requestConnection0(logger: Logger) -> EventLoopFuture<Source.Connection> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
177 | self.eventLoop.assertInEventLoop()
178 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:227:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure
225 | self._releaseConnection0($0, logger: logger)
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
227 | self?.activeConnections -= 1
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
228 | logger.error("Opening new connection for pool failed: \(String(reflecting: error))")
229 | return eventLoop.makeFailedFuture(error)
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:226:49: warning: capture of non-sendable type 'Source.Type' in an isolated closure
224 | logger.trace("New connection successful, servicing waitlist")
225 | self._releaseConnection0($0, logger: logger)
226 | }.flatMapErrorWithEventLoop { [weak self] error, eventLoop in
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
227 | self?.activeConnections -= 1
228 | logger.error("Opening new connection for pool failed: \(String(reflecting: error))")
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:261:43: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
259 | self._releaseConnection0(connection, logger: logger)
260 | } else {
261 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
262 | }
263 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:261:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
259 | self._releaseConnection0(connection, logger: logger)
260 | } else {
261 | self.eventLoop.execute { self._releaseConnection0(connection, logger: logger) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
262 | }
263 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:257:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
255 | /// - connection: Connection to release back to the pool.
256 | /// - logger: For trace and debug logs.
257 | public func releaseConnection(_ connection: Source.Connection, logger: Logger) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
258 | if self.eventLoop.inEventLoop {
259 | self._releaseConnection0(connection, logger: logger)
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:305:38: warning: capture of non-sendable type 'Source.Type' in an isolated closure
303 | } else {
304 | let promise = self.eventLoop.makePromise(of: Void.self)
305 | self.eventLoop.execute { self._close0().cascade(to: promise) }
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
306 | return promise.futureResult
307 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:300:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure
298 | ///
299 | /// Connection pools must be closed before they deinitialize.
300 | public func close() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
301 | if self.eventLoop.inEventLoop {
302 | return self._close0()
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:328:13: warning: capture of non-sendable type 'Source.Type' in an isolated closure
326 | $0.close()
327 | }.flatten(on: self.eventLoop).map {
328 | self.activeConnections = 0
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
329 | self.available.removeAll()
330 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:310:18: warning: capture of non-sendable type 'Source.Type' in an isolated closure
308 | }
309 |
310 | private func _close0() -> EventLoopFuture<Void> {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure
311 | self.eventLoop.assertInEventLoop()
312 |
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift:329:13: warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
327 | }.flatten(on: self.eventLoop).map {
328 | self.activeConnections = 0
329 | self.available.removeAll()
| `- warning: capture of non-sendable type 'Source.Connection.Type' in an isolated closure
330 | }
331 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:290:21: warning: capture of non-sendable type 'Source.Type' in an isolated closure; this is an error in the Swift 6 language mode
288 | guard !self.didShutdown else {
289 | DispatchQueue.global().async {
290 | 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; this is an error in the Swift 6 language mode
291 | callback(ConnectionPoolError.shutdown)
292 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:284:17: warning: capture of non-sendable type 'Source.Type' in an isolated closure; this is an error in the Swift 6 language mode
282 | /// - Warning: Any invocation of the callback represents a signal that the pool has fully shut
283 | /// down. This is true even if the error parameter is non-`nil`; errors are purely advisory.
284 | public func shutdownGracefully(_ callback: @escaping (Error?) -> Void) {
| `- warning: capture of non-sendable type 'Source.Type' in an isolated closure; this is an error in the Swift 6 language mode
285 | // Protect access to shared state.
286 | guard self.lock.withLock({
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:317:21: warning: mutation of captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | pool.close().whenComplete { result in
316 | shutdownQueue.async() {
317 | outcome = outcome.flatMap { result }
| `- warning: mutation of captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
318 | shutdownGroup.leave()
319 | }
/host/spi-builder-workspace/Sources/AsyncKit/ConnectionPool/EventLoopGroupConnectionPool.swift:317:31: warning: reference to captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | pool.close().whenComplete { result in
316 | shutdownQueue.async() {
317 | outcome = outcome.flatMap { result }
| `- warning: reference to captured var 'outcome' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
318 | shutdownGroup.leave()
319 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[583/598] Compiling AsyncKit ConnectionPoolError.swift
[584/598] Compiling AsyncKit ConnectionPoolItem.swift
[585/598] Compiling AsyncKit ConnectionPoolSource.swift
[586/598] Emitting module AsyncKit
[587/598] Compiling AsyncKit EventLoop+Flatten.swift
[588/598] Compiling AsyncKit EventLoop+Future.swift
[589/598] Compiling AsyncKit EventLoopGroup+Concurrency.swift
[590/598] Compiling AsyncKit Future+Miscellaneous.swift
/host/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 |
/host/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() }
/host/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 |
/host/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() }
/host/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 |
/host/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() }
[591/598] Compiling AsyncKit Future+Nonempty.swift
/host/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 |
/host/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() }
/host/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 |
/host/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() }
/host/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 |
/host/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() }
[592/598] Compiling AsyncKit Future+Optional.swift
/host/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 |
/host/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() }
/host/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 |
/host/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() }
/host/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 |
/host/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() }
[593/598] Compiling AsyncKit EventLoopFutureQueue.swift
/host/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 |
/host/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) }
/host/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 |
/host/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] } }
/host/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 |
/host/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) }
/host/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 |
/host/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] } }
/host/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 |
/host/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 |
/host/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) }
/host/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) }
/host/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 |
/host/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 |
/host/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] } }
/host/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] } }
/host/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 |
/host/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: 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) } }
/host/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 |
/host/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: 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) }
/host/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 |
/host/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: 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) } } }
/host/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 | }
/host/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
/host/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 | }
/host/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
/host/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 | }
/host/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 |
/host/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 |
/host/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 | }
/host/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
/host/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
/host/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) }
/host/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 |
/host/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 |
[594/598] Compiling AsyncKit Future+Collection.swift
/host/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 |
/host/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) }
/host/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 |
/host/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] } }
/host/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 |
/host/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) }
/host/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 |
/host/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] } }
/host/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 |
/host/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 |
/host/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) }
/host/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) }
/host/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 |
/host/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 |
/host/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] } }
/host/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] } }
/host/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 |
/host/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: 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) } }
/host/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 |
/host/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: 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) }
/host/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 |
/host/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: 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) } } }
/host/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 | }
/host/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
/host/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 | }
/host/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
/host/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 | }
/host/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 |
/host/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 |
/host/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 | }
/host/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
/host/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
/host/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) }
/host/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 |
/host/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 |
[595/598] Compiling AsyncKit Future+Conjunctions.swift
/host/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 |
/host/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) }
/host/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 |
/host/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] } }
/host/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 |
/host/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) }
/host/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 |
/host/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] } }
/host/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 |
/host/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 |
/host/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) }
/host/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) }
/host/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 |
/host/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 |
/host/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] } }
/host/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] } }
/host/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 |
/host/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: 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) } }
/host/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 |
/host/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: 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) }
/host/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 |
/host/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: 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) } } }
/host/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 | }
/host/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
/host/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 | }
/host/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
/host/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 | }
/host/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 |
/host/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 |
/host/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 | }
/host/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
/host/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
/host/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) }
/host/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 |
/host/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 |
[596/598] Compiling AsyncKit EventLoopGroup+Throwing.swift
/host/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: 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] } } }
/host/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: 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) } }
/host/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: 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 } } } }
[597/598] Compiling AsyncKit Collection+Flatten.swift
/host/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: 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] } } }
/host/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: 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) } }
/host/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: 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 } } } }
[598/598] Compiling AsyncKit EventLoopFutureQueue+Sequence.swift
/host/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: 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] } } }
/host/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: 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) } }
/host/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: 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 } } } }
Build complete! (190.07s)
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" : "/host/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.7"
}
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Done.