Build Information
Successful build of async-http-client, reference master (3950c9
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 05:07:17 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
[96/474] Compiling ssl_asn1.cc
[97/474] Compiling ssl_aead_ctx.cc
[98/474] Compiling s3_pkt.cc
[99/474] Compiling s3_lib.cc
[100/474] Compiling s3_both.cc
[101/474] Compiling handshake_server.cc
[102/474] Compiling handshake_client.cc
[103/474] Compiling handshake.cc
[104/474] Compiling handoff.cc
[105/474] Compiling md5-x86_64-linux.S
[106/474] Compiling encrypted_client_hello.cc
[107/474] Compiling md5-x86_64-apple.S
[108/474] Compiling dtls_record.cc
[109/474] Compiling dtls_method.cc
[110/474] Compiling md5-586-linux.S
[111/474] Compiling md5-586-apple.S
[112/474] Compiling chacha20_poly1305_x86_64-linux.S
[113/474] Compiling extensions.cc
[114/474] Compiling chacha20_poly1305_x86_64-apple.S
[115/474] Compiling chacha20_poly1305_armv8-win.S
[116/474] Compiling chacha20_poly1305_armv8-linux.S
[117/474] Compiling chacha-x86_64-linux.S
[118/474] Compiling chacha-x86_64-apple.S
[119/474] Compiling chacha-x86-linux.S
[120/474] Compiling chacha20_poly1305_armv8-apple.S
[121/474] Compiling chacha-x86-apple.S
[122/474] Compiling chacha-armv8-win.S
[123/474] Compiling chacha-armv8-linux.S
[124/474] Compiling chacha-armv4-linux.S
[125/474] Compiling chacha-armv8-apple.S
[126/474] Compiling aes128gcmsiv-x86_64-linux.S
[127/474] Compiling d1_srtp.cc
[128/474] Compiling aes128gcmsiv-x86_64-apple.S
[129/474] Compiling x86_64-mont5-linux.S
[130/474] Compiling d1_pkt.cc
[131/474] Compiling x86_64-mont5-apple.S
[132/474] Compiling x86_64-mont-linux.S
[133/474] Compiling x86_64-mont-apple.S
[134/474] Compiling x86-mont-linux.S
[135/474] Compiling err_data.cc
[136/474] Compiling vpaes-x86_64-linux.S
[137/474] Compiling x86-mont-apple.S
[138/474] Compiling vpaes-x86_64-apple.S
[139/474] Compiling vpaes-x86-linux.S
[140/474] Compiling vpaes-x86-apple.S
[141/474] Compiling vpaes-armv8-win.S
[142/474] Compiling vpaes-armv8-linux.S
[143/474] Compiling vpaes-armv7-linux.S
[144/474] Compiling sha512-x86_64-linux.S
[145/474] Compiling vpaes-armv8-apple.S
[146/474] Compiling sha512-x86_64-apple.S
[147/474] Compiling sha512-armv8-win.S
[148/474] Compiling sha512-armv8-linux.S
[149/474] Compiling bio_ssl.cc
[150/474] Compiling sha512-armv4-linux.S
[151/474] Compiling sha512-armv8-apple.S
[152/474] Compiling sha512-586-linux.S
[153/474] Compiling d1_lib.cc
[154/474] Compiling sha512-586-apple.S
[155/474] Compiling sha256-x86_64-linux.S
[156/474] Compiling sha256-x86_64-apple.S
[157/474] Compiling sha256-armv8-win.S
[158/474] Compiling sha256-armv8-linux.S
[159/474] Compiling sha256-armv4-linux.S
[160/474] Compiling sha256-586-linux.S
[161/474] Compiling sha256-586-apple.S
[162/474] Compiling sha1-x86_64-linux.S
[163/474] Compiling sha256-armv8-apple.S
[164/474] Compiling sha1-armv8-linux.S
[165/474] Compiling sha1-armv8-win.S
[166/474] Compiling sha1-x86_64-apple.S
[167/474] Compiling sha1-armv8-apple.S
[168/474] Compiling sha1-armv4-large-linux.S
[169/474] Compiling sha1-586-linux.S
[169/474] Compiling rsaz-avx2-linux.S
[169/474] Compiling sha1-586-apple.S
[172/474] Compiling rdrand-x86_64-linux.S
[172/474] Compiling rsaz-avx2-apple.S
[174/474] Compiling p256_beeu-x86_64-asm-linux.S
[175/474] Compiling rdrand-x86_64-apple.S
[176/474] Compiling p256_beeu-x86_64-asm-apple.S
[177/474] Compiling p256_beeu-armv8-asm-linux.S
[178/474] Compiling p256_beeu-armv8-asm-apple.S
[179/474] Compiling p256_beeu-armv8-asm-win.S
[180/474] Compiling p256-armv8-asm-win.S
[181/474] Compiling d1_both.cc
[182/474] Compiling p256-x86_64-asm-apple.S
[183/474] Compiling p256-x86_64-asm-linux.S
[184/474] Compiling p256-armv8-asm-linux.S
[185/474] Compiling p256-armv8-asm-apple.S
[186/474] Compiling ghashv8-armv8-win.S
[187/474] Compiling ghashv8-armv8-linux.S
[187/474] Compiling ghashv8-armv7-linux.S
[189/474] Compiling ghash-x86_64-apple.S
[190/474] Compiling ghash-x86_64-linux.S
[191/474] Compiling ghashv8-armv8-apple.S
[192/474] Compiling ghash-x86-apple.S
[193/474] Compiling ghash-x86-linux.S
[194/474] Compiling ghash-ssse3-x86_64-linux.S
[195/474] Compiling ghash-ssse3-x86_64-apple.S
[196/474] Compiling ghash-ssse3-x86-linux.S
[197/474] Compiling ghash-neon-armv8-win.S
[198/474] Compiling ghash-neon-armv8-linux.S
[199/474] Compiling ghash-ssse3-x86-apple.S
[200/474] Compiling ghash-armv4-linux.S
[201/474] Compiling ghash-neon-armv8-apple.S
[202/474] Compiling bsaes-armv7-linux.S
[203/474] Compiling co-586-linux.S
[204/474] Compiling co-586-apple.S
[205/474] Compiling bn-armv8-linux.S
[206/474] Compiling bn-armv8-win.S
[207/474] Compiling bn-586-linux.S
[208/474] Compiling armv8-mont-win.S
[209/474] Compiling bn-586-apple.S
[209/474] Compiling armv8-mont-linux.S
[209/474] Compiling bn-armv8-apple.S
[212/474] Compiling armv4-mont-linux.S
[213/474] Compiling aesv8-gcm-armv8-win.S
[214/474] Compiling armv8-mont-apple.S
[215/474] Compiling aesv8-gcm-armv8-linux.S
[216/474] Compiling aesv8-gcm-armv8-apple.S
[217/474] Compiling aesv8-armv8-win.S
[218/474] Compiling aesv8-armv8-linux.S
[218/474] Compiling aesv8-armv7-linux.S
[218/474] Compiling aesni-x86_64-linux.S
[221/474] Compiling aesv8-armv8-apple.S
[222/474] Compiling aesni-x86-linux.S
[223/474] Compiling aesni-x86_64-apple.S
[224/474] Compiling aesni-x86-apple.S
[225/474] Compiling aesni-gcm-x86_64-linux.S
[226/474] Compiling aesni-gcm-x86_64-apple.S
[227/474] Compiling aes-gcm-avx2-x86_64-linux.S
[228/474] Compiling aes-gcm-avx10-x86_64-apple.S
[229/474] Compiling aes-gcm-avx10-x86_64-linux.S
[230/474] Compiling aes-gcm-avx2-x86_64-apple.S
[231/474] Compiling x_sig.cc
[232/474] Compiling x_x509a.cc
[233/474] Compiling x_val.cc
[234/474] Compiling x_x509.cc
[235/474] Compiling x_spki.cc
[236/474] Compiling x_req.cc
[237/474] Compiling x_pubkey.cc
[238/474] Compiling x_exten.cc
[239/474] Compiling x_crl.cc
[240/474] Compiling x_name.cc
[241/474] Compiling x509spki.cc
[242/474] Compiling x_algor.cc
[243/474] Compiling x_attrib.cc
[244/474] Compiling x509rset.cc
[245/474] Compiling x_all.cc
[246/474] Compiling x509cset.cc
[247/474] Compiling x509name.cc
[248/474] Compiling x509_vpm.cc
[249/474] Compiling x509_v3.cc
[250/474] Compiling x509_vfy.cc
[251/474] Compiling x509_txt.cc
[252/474] Compiling x509_trs.cc
[253/474] Compiling x509_set.cc
[254/474] Compiling x509_obj.cc
[255/474] Compiling x509_req.cc
[256/474] Compiling x509_ext.cc
[257/474] Compiling x509_def.cc
[258/474] Compiling x509_d2.cc
[259/474] Compiling x509_lu.cc
[260/474] Compiling x509_cmp.cc
[261/474] Compiling x509_att.cc
[262/474] Compiling x509.cc
[263/474] Compiling v3_skey.cc
[264/474] Compiling v3_utl.cc
[265/474] Compiling v3_prn.cc
[266/474] Compiling v3_ocsp.cc
[267/474] Compiling v3_purp.cc
[268/474] Compiling v3_pmaps.cc
[269/474] Compiling v3_pcons.cc
[270/474] Compiling v3_ncons.cc
[271/474] Compiling v3_int.cc
[272/474] Compiling v3_lib.cc
[273/474] Compiling v3_ia5.cc
[274/474] Compiling v3_genn.cc
[275/474] Compiling v3_info.cc
[276/474] Compiling v3_enum.cc
[277/474] Compiling v3_extku.cc
[278/474] Compiling v3_crld.cc
[279/474] Compiling v3_cpols.cc
[280/474] Compiling v3_conf.cc
[281/474] Compiling v3_bitst.cc
[282/474] Compiling v3_bcons.cc
[283/474] Compiling v3_akey.cc
[284/474] Compiling v3_akeya.cc
[285/474] Compiling v3_alt.cc
[286/474] Compiling t_x509a.cc
[287/474] Compiling t_crl.cc
[288/474] Compiling t_x509.cc
[289/474] Compiling t_req.cc
[290/474] Compiling rsa_pss.cc
[291/474] Compiling i2d_pr.cc
[292/474] Compiling name_print.cc
[293/474] Compiling policy.cc
[294/474] Compiling algorithm.cc
[295/474] Compiling a_digest.cc
[296/474] Compiling a_verify.cc
[297/474] Compiling by_file.cc
[298/474] Compiling by_dir.cc
[298/474] Compiling a_sign.cc
[300/474] Compiling asn1_gen.cc
[301/474] Compiling voprf.cc
[302/474] Compiling thread_win.cc
[303/474] Compiling trust_token.cc
[304/474] Compiling thread_pthread.cc
[305/474] Compiling thread.cc
[306/474] Compiling thread_none.cc
[307/474] Compiling pmbtoken.cc
[308/474] Compiling stack.cc
[309/474] Compiling slhdsa.cc
[310/474] Compiling spake2plus.cc
[311/474] Compiling siphash.cc
[312/474] Compiling sha512.cc
[313/474] Compiling sha256.cc
[314/474] Compiling sha1.cc
[315/474] Compiling rsa_extra.cc
[316/474] Compiling rsa_print.cc
[317/474] Compiling rsa_crypt.cc
[318/474] Compiling refcount.cc
[319/474] Compiling rsa_asn1.cc
[320/474] Compiling rc4.cc
[321/474] Compiling urandom.cc
[322/474] Compiling trusty.cc
[323/474] Compiling windows.cc
[324/474] Compiling rand.cc
[325/474] Compiling ios.cc
[326/474] Compiling passive.cc
[327/474] Compiling poly1305_arm_asm.S
[328/474] Compiling getentropy.cc
[329/474] Compiling forkunsafe.cc
[330/474] Compiling fork_detect.cc
[331/474] Compiling deterministic.cc
[332/474] Compiling poly1305_vec.cc
[333/474] Compiling poly1305_arm.cc
[334/474] Compiling poly1305.cc
[335/474] Compiling pool.cc
[336/474] Compiling pkcs8.cc
[337/474] Compiling pkcs7.cc
[338/474] Compiling pkcs8_x509.cc
[339/474] Compiling p5_pbev2.cc
[340/474] Compiling pem_xaux.cc
[341/474] Compiling pkcs7_x509.cc
[342/474] Compiling pem_x509.cc
[343/474] Compiling pem_pkey.cc
[344/474] Compiling pem_pk8.cc
[345/474] Compiling pem_oth.cc
[346/474] Compiling mlkem.cc
[347/474] Compiling obj_xref.cc
[348/474] Compiling pem_info.cc
[349/474] Compiling pem_all.cc
[350/474] Compiling pem_lib.cc
[351/474] Compiling mldsa.cc
[352/474] Compiling poly_rq_mul.S
[353/474] Compiling fips_shared_support.cc
[354/474] Compiling mem.cc
[355/474] Compiling obj.cc
[356/474] Compiling md5.cc
[357/474] Compiling md4.cc
[358/474] Compiling lhash.cc
[359/474] Compiling kyber.cc
[360/474] Compiling ex_data.cc
[361/474] Compiling sign.cc
[362/474] Compiling scrypt.cc
[363/474] Compiling print.cc
[364/474] Compiling pbkdf.cc
[365/474] Compiling hpke.cc
[366/474] Compiling hrss.cc
[367/474] Compiling p_x25519_asn1.cc
[368/474] Compiling p_x25519.cc
[369/474] Compiling p_ed25519.cc
[370/474] Compiling p_rsa_asn1.cc
[371/474] Compiling p_rsa.cc
[372/474] Compiling p_hkdf.cc
[373/474] Compiling p_ec.cc
[374/474] Compiling p_ed25519_asn1.cc
[375/474] Compiling p_ec_asn1.cc
[376/474] Compiling p_dh_asn1.cc
[377/474] Compiling p_dsa_asn1.cc
[378/474] Compiling p_dh.cc
[379/474] Compiling evp_ctx.cc
[380/474] Compiling err.cc
[381/474] Compiling evp.cc
[382/474] Compiling engine.cc
[383/474] Compiling evp_asn1.cc
[384/474] Compiling ecdh.cc
[385/474] Compiling ecdsa_asn1.cc
[386/474] Compiling hash_to_curve.cc
[387/474] Compiling ec_derive.cc
[388/474] Compiling dsa.cc
[389/474] Compiling dsa_asn1.cc
[390/474] Compiling ec_asn1.cc
[391/474] Compiling params.cc
[392/474] Compiling x25519-asm-arm.S
[392/474] Compiling digest_extra.cc
[394/474] Compiling bcm.cc
[395/474] Compiling des.cc
[396/474] Compiling dh_asn1.cc
[397/474] Compiling curve25519_64_adx.cc
[398/474] Compiling spake25519.cc
[399/474] Compiling crypto.cc
[400/474] Compiling cpu_intel.cc
[401/474] Compiling cpu_arm_freebsd.cc
[401/474] Compiling cpu_arm_linux.cc
[403/474] Compiling cpu_aarch64_win.cc
[404/474] Compiling curve25519.cc
[405/474] Compiling cpu_aarch64_sysreg.cc
[406/474] Compiling cpu_aarch64_openbsd.cc
[407/474] Compiling cpu_aarch64_linux.cc
[408/474] Compiling cpu_aarch64_fuchsia.cc
[409/474] Compiling cpu_aarch64_apple.cc
[410/474] Compiling conf.cc
[411/474] Compiling get_cipher.cc
[412/474] Compiling e_rc4.cc
[413/474] Compiling tls_cbc.cc
[414/474] Compiling e_tls.cc
[415/474] Compiling e_rc2.cc
[416/474] Compiling e_null.cc
[417/474] Compiling e_des.cc
[418/474] Compiling e_chacha20poly1305.cc
[419/474] Compiling e_aesgcmsiv.cc
[420/474] Compiling derive_key.cc
[421/474] Compiling chacha.cc
[422/474] Compiling e_aesctrhmac.cc
[423/474] Compiling unicode.cc
[424/474] Compiling ber.cc
[425/474] Compiling cbs.cc
[426/474] Compiling cbb.cc
[427/474] Compiling asn1_compat.cc
[428/474] Compiling buf.cc
[429/474] Compiling blake2.cc
[430/474] Compiling socket_helper.cc
[431/474] Compiling bn_asn1.cc
[432/474] Compiling socket.cc
[433/474] Compiling convert.cc
[434/474] Compiling printf.cc
[435/474] Compiling pair.cc
[436/474] Compiling hexdump.cc
[437/474] Compiling file.cc
[438/474] Compiling fd.cc
[439/474] Compiling errno.cc
[440/474] Compiling connect.cc
[441/474] Compiling base64.cc
[442/474] Compiling bio_mem.cc
[443/474] Compiling bio.cc
[444/474] Compiling tasn_typ.cc
[445/474] Compiling tasn_fre.cc
[446/474] Compiling tasn_enc.cc
[447/474] Compiling tasn_utl.cc
[448/474] Compiling tasn_new.cc
[449/474] Compiling posix_time.cc
[450/474] Compiling f_string.cc
[451/474] Compiling f_int.cc
[452/474] Compiling tasn_dec.cc
[453/474] Compiling asn_pack.cc
[454/474] Compiling asn1_par.cc
[455/474] Compiling asn1_lib.cc
[456/474] Compiling a_utctm.cc
[457/474] Compiling a_type.cc
[458/474] Compiling a_time.cc
[459/474] Compiling a_octet.cc
[460/474] Compiling a_strnid.cc
[461/474] Compiling a_strex.cc
[462/474] Compiling a_mbstr.cc
[463/474] Compiling a_object.cc
[464/474] Write sources
[465/474] Compiling a_int.cc
[466/474] Compiling a_i2d_fp.cc
[467/474] Compiling a_dup.cc
[468/474] Compiling a_d2i_fp.cc
[469/493] Compiling a_gentm.cc
[470/493] Compiling a_bool.cc
[471/493] Compiling a_bitstr.cc
[473/493] Compiling Atomics AtomicStorage.swift
[474/493] Compiling Atomics AtomicValue.swift
[475/495] Compiling Atomics UnsafeAtomic.swift
[476/495] Compiling Atomics UnsafeAtomicLazyReference.swift
[477/495] Compiling Atomics AtomicMemoryOrderings.swift
[478/495] Compiling Atomics DoubleWord.swift
[479/495] Compiling Atomics IntegerOperations.swift
[480/495] Compiling Atomics Unmanaged extensions.swift
[481/495] Compiling Atomics OptionalRawRepresentable.swift
[482/495] Compiling Atomics RawRepresentable.swift
[483/495] Compiling Atomics AtomicBool.swift
[484/495] Compiling Atomics IntegerConformances.swift
[485/495] Compiling Atomics AtomicOptionalWrappable.swift
[486/495] Compiling Atomics AtomicReference.swift
[487/495] Compiling Atomics ManagedAtomic.swift
[488/495] Compiling Atomics ManagedAtomicLazyReference.swift
[489/495] Compiling Atomics Primitives.shims.swift
[490/495] Compiling Atomics AtomicInteger.swift
[491/495] Compiling Atomics PointerConformances.swift
[492/495] Compiling Atomics Primitives.native.swift
[493/495] Emitting module Atomics
[493/495] Compiling c-nioatomics.c
[494/495] Compiling c-atomics.c
[496/501] Compiling NIOConcurrencyHelpers NIOLock.swift
[497/501] Compiling NIOConcurrencyHelpers lock.swift
[498/501] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[499/501] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[500/501] Emitting module NIOConcurrencyHelpers
[501/501] Compiling NIOConcurrencyHelpers atomics.swift
[502/562] Compiling NIOCore GlobalSingletons.swift
[503/562] Compiling NIOCore IO.swift
[504/562] Compiling NIOCore IOData.swift
[505/562] Compiling NIOCore IPProtocol.swift
[506/562] Compiling NIOCore IntegerBitPacking.swift
[507/562] Compiling NIOCore IntegerTypes.swift
[508/568] Compiling NIOCore NIOLoopBound.swift
[509/568] Compiling NIOCore NIOScheduledCallback.swift
[510/568] Compiling NIOCore NIOSendable.swift
[511/568] Compiling NIOCore RecvByteBufferAllocator.swift
[512/568] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[513/568] Compiling NIOCore SocketAddresses.swift
[514/568] Compiling NIOCore SocketOptionProvider.swift
[515/568] Compiling NIOCore SystemCallHelpers.swift
[516/568] Compiling NIOCore TimeAmount+Duration.swift
[517/568] Compiling NIOCore TypeAssistedChannelHandler.swift
[518/568] Compiling NIOCore UniversalBootstrapSupport.swift
[519/568] Compiling NIOCore Utilities.swift
[520/568] Compiling NIOCore AddressedEnvelope.swift
[521/568] Compiling NIOCore AsyncAwaitSupport.swift
[522/568] Compiling NIOCore AsyncChannel.swift
[523/568] Compiling NIOCore AsyncChannelHandler.swift
[524/568] Compiling NIOCore AsyncChannelInboundStream.swift
[525/568] Compiling NIOCore AsyncChannelOutboundWriter.swift
[526/568] Compiling NIOCore NIOAsyncSequenceProducer.swift
[527/568] Compiling NIOCore Interfaces.swift
[528/568] Compiling NIOCore Linux.swift
[529/568] Compiling NIOCore MarkedCircularBuffer.swift
[530/568] Compiling NIOCore MulticastChannel.swift
[531/568] Compiling NIOCore NIOAny.swift
[532/568] Compiling NIOCore NIOCloseOnErrorHandler.swift
[533/568] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[534/568] Compiling NIOCore EventLoopFuture+Deprecated.swift
[535/568] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[536/568] Compiling NIOCore EventLoopFuture.swift
[537/568] Compiling NIOCore FileDescriptor.swift
[538/568] Compiling NIOCore FileHandle.swift
[539/568] Compiling NIOCore FileRegion.swift
[540/568] Compiling NIOCore Codec.swift
[541/568] Compiling NIOCore ConvenienceOptionSupport.swift
[542/568] Compiling NIOCore DeadChannel.swift
[543/568] Compiling NIOCore DispatchQueue+WithFuture.swift
[544/568] Compiling NIOCore EventLoop+Deprecated.swift
[545/568] Compiling NIOCore EventLoop+SerialExecutor.swift
[546/568] Compiling NIOCore EventLoop.swift
[547/568] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[548/568] Compiling NIOCore NIOAsyncWriter.swift
[549/568] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[550/568] Compiling NIOCore BSDSocketAPI.swift
[551/568] Compiling NIOCore ByteBuffer-aux.swift
[552/568] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[553/568] Compiling NIOCore ByteBuffer-conversions.swift
[554/568] Compiling NIOCore Channel.swift
[555/568] Compiling NIOCore ChannelHandler.swift
[556/568] Compiling NIOCore ChannelHandlers.swift
[557/568] Compiling NIOCore ChannelInvoker.swift
[558/568] Compiling NIOCore ChannelOption.swift
[559/568] Compiling NIOCore ChannelPipeline.swift
[560/568] Compiling NIOCore CircularBuffer.swift
[561/568] Compiling NIOCore ByteBuffer-core.swift
[562/568] Compiling NIOCore ByteBuffer-hex.swift
[563/568] Compiling NIOCore ByteBuffer-int.swift
[564/568] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[565/568] Compiling NIOCore ByteBuffer-multi-int.swift
[566/568] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[567/568] Compiling NIOCore ByteBuffer-views.swift
[568/568] Emitting module NIOCore
[569/621] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[570/621] Emitting module NIOEmbedded
[571/621] Compiling NIOEmbedded AsyncTestingChannel.swift
[572/621] Compiling NIOEmbedded Embedded.swift
[573/621] Compiling NIOPosix GetaddrinfoResolver.swift
[574/621] Compiling NIOPosix HappyEyeballs.swift
[575/621] Compiling NIOPosix IO.swift
[576/621] Compiling NIOPosix IntegerBitPacking.swift
[577/621] Compiling NIOPosix IntegerTypes.swift
[578/621] Compiling NIOPosix Linux.swift
[579/626] Emitting module NIOPosix
[580/626] Compiling NIOPosix SocketProtocols.swift
[581/626] Compiling NIOPosix System.swift
[582/626] Compiling NIOPosix Thread.swift
[583/626] Compiling NIOPosix ThreadPosix.swift
[584/626] Compiling NIOPosix ThreadWindows.swift
[585/626] Compiling NIOPosix LinuxCPUSet.swift
[586/626] Compiling NIOPosix LinuxUring.swift
[587/626] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[588/626] Compiling NIOPosix NIOThreadPool.swift
[589/626] Compiling NIOPosix NonBlockingFileIO.swift
[590/626] Compiling NIOPosix PendingDatagramWritesManager.swift
[591/626] Compiling NIOPosix PendingWritesManager.swift
[592/626] Compiling NIOPosix PipeChannel.swift
[593/626] Compiling NIOPosix PipePair.swift
[594/626] Compiling NIOPosix Pool.swift
[595/626] Compiling NIOPosix BSDSocketAPICommon.swift
[596/626] Compiling NIOPosix BSDSocketAPIPosix.swift
[597/626] Compiling NIOPosix BSDSocketAPIWindows.swift
[598/626] Compiling NIOPosix BaseSocket.swift
[599/626] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[600/626] Compiling NIOPosix BaseSocketChannel.swift
[601/626] Compiling NIOPosix Selectable.swift
[602/626] Compiling NIOPosix SelectableChannel.swift
[603/626] Compiling NIOPosix SelectableEventLoop.swift
[604/626] Compiling NIOPosix SelectorEpoll.swift
[605/626] Compiling NIOPosix SelectorGeneric.swift
[606/626] Compiling NIOPosix SelectorKqueue.swift
[607/626] Compiling NIOPosix SelectorUring.swift
[608/626] Compiling NIOPosix ServerSocket.swift
[609/626] Compiling NIOPosix Socket.swift
[610/626] Compiling NIOPosix SocketChannel.swift
[611/626] Compiling NIOPosix PooledRecvBufferAllocator.swift
[612/626] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[613/626] Compiling NIOPosix PosixSingletons.swift
[614/626] Compiling NIOPosix RawSocketBootstrap.swift
[615/626] Compiling NIOPosix Resolver.swift
[616/626] Compiling NIOPosix BaseStreamSocketChannel.swift
[617/626] Compiling NIOPosix Bootstrap.swift
[618/626] Compiling NIOPosix ControlMessage.swift
[619/626] Compiling NIOPosix DatagramVectorReadManager.swift
[620/626] Compiling NIOPosix Errors+Any.swift
[621/626] Compiling NIOPosix FileDescriptor.swift
[622/626] Compiling NIOPosix UnsafeTransfer.swift
[623/626] Compiling NIOPosix Utilities.swift
[624/626] Compiling NIOPosix VsockAddress.swift
[625/626] Compiling NIOPosix VsockChannelEvents.swift
[626/626] Compiling NIOPosix resource_bundle_accessor.swift
[627/628] Compiling NIO Exports.swift
[628/628] Emitting module NIO
[629/656] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
[630/656] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[631/656] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[632/656] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[633/656] Compiling NIOTLS NIOTypedApplicationProtocolNegotiationHandler.swift
[634/656] Emitting module NIOTLS
[635/656] Compiling NIOTLS SNIHandler.swift
[636/656] Compiling NIOTLS ProtocolNegotiationHandlerStateMachine.swift
[637/656] Compiling NIOTLS TLSEvents.swift
[638/656] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[639/656] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[640/657] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[641/657] Emitting module NIOFoundationCompat
[642/687] Compiling NIOSSL Zeroization.swift
[643/687] Compiling NIOSSL TLSConfiguration.swift
[644/687] Compiling NIOSSL SSLConnection.swift
[645/687] Compiling NIOSSL SSLContext.swift
[646/687] Compiling NIOSSL AndroidCABundle.swift
[647/687] Compiling NIOSSL ByteBufferBIO.swift
[648/687] Compiling NIOSSL SSLCertificateExtensions.swift
[649/687] Compiling NIOSSL SafeCompare.swift
[650/687] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[651/687] Compiling NIOSSL SSLCallbacks.swift
[652/687] Compiling NIOSSL SSLCertificate.swift
[653/687] Emitting module NIOHTTP1
[654/687] Compiling NIOSSL SSLErrors.swift
[655/687] Compiling NIOSSL SSLInit.swift
[656/687] Compiling NIOSSL SSLPKCS12Bundle.swift
[657/687] Compiling NIOSSL SSLPrivateKey.swift
[658/694] Emitting module NIOSSL
[659/697] Compiling NIOHTTPCompression HTTPResponseDecompressor.swift
[660/697] Compiling NIOHTTPCompression HTTPDecompression.swift
[661/697] Compiling NIOHTTPCompression HTTPResponseCompressor.swift
[662/697] Compiling NIOHTTPCompression HTTPRequestDecompressor.swift
[663/697] Emitting module NIOHTTPCompression
[664/697] Compiling NIOHTTPCompression HTTPRequestCompressor.swift
[665/697] Compiling NIOHTTPCompression HTTPCompression.swift
[666/697] Compiling NIOSSL UniversalBootstrapSupport.swift
[667/697] Compiling NIOSSL UnsafeKeyAndChainTarget.swift
[668/697] Compiling NIOSSL resource_bundle_accessor.swift
[669/697] Compiling NIOSSL SubjectAlternativeName.swift
[670/697] Compiling NIOSSL NIOSSLSecureBytes.swift
[671/697] Compiling NIOSSL RNG.swift
[672/697] Compiling NIOSSL SSLPublicKey.swift
[673/697] Compiling NIOSSL SecurityFrameworkCertificateVerification.swift
[674/697] Compiling NIOSSL String+unsafeUninitializedCapacity.swift
[675/697] Compiling NIOSSL LinuxCABundle.swift
[676/697] Compiling NIOSSL NIOSSLClientHandler.swift
[677/697] Compiling NIOSSL NIOSSLHandler+Configuration.swift
[678/697] Compiling NIOSSL NIOSSLHandler.swift
[679/697] Compiling NIOSSL NIOSSLServerHandler.swift
[680/697] Compiling NIOSSL ObjectIdentifier.swift
[681/697] Compiling NIOSSL PosixPort.swift
[687/697] Compiling NIOSSL CustomPrivateKey.swift
[688/697] Compiling NIOSSL IdentityVerification.swift
[698/705] Compiling AsyncHTTPClient RequestValidation.swift
[699/705] Compiling AsyncHTTPClient Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/Utils.swift:56:24: warning: capture of 'configuration' with non-sendable type 'HTTPClient.Configuration' in a '@Sendable' closure
54 | .channelInitializer { channel in
55 | let channelAddedFuture: EventLoopFuture<Void>
56 | switch configuration.proxy {
| `- warning: capture of 'configuration' with non-sendable type 'HTTPClient.Configuration' in a '@Sendable' closure
57 | case .none:
58 | channelAddedFuture = group.next().makeSucceededFuture(())
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:441:19: note: consider making struct 'Configuration' conform to the 'Sendable' protocol
439 |
440 | /// `HTTPClient` configuration.
441 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
442 | /// TLS configuration, defaults to `TLSConfiguration.forClient()`.
443 | public var tlsConfiguration: TLSConfiguration?
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/Utils.swift:63:21: warning: capture of 'channelInitializer' with non-sendable type '((any Channel) -> EventLoopFuture<Void>)?' in a '@Sendable' closure
61 | }
62 | return channelAddedFuture.flatMap { (_: Void) -> EventLoopFuture<Void> in
63 | channelInitializer?(channel) ?? group.next().makeSucceededFuture(())
| |- warning: capture of 'channelInitializer' with non-sendable type '((any Channel) -> EventLoopFuture<Void>)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
64 | }
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/Utils.swift:63:21: warning: capture of 'channelInitializer' with non-sendable type '((any Channel) -> EventLoopFuture<Void>)?' in a '@Sendable' closure
61 | }
62 | return channelAddedFuture.flatMap { (_: Void) -> EventLoopFuture<Void> in
63 | channelInitializer?(channel) ?? group.next().makeSucceededFuture(())
| |- warning: capture of 'channelInitializer' with non-sendable type '((any Channel) -> EventLoopFuture<Void>)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
64 | }
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/Utils.swift:94:49: warning: type 'Handler' does not conform to the 'Sendable' protocol
90 |
91 | extension ConnectionPool.Connection {
92 | func removeHandler<Handler: RemovableChannelHandler>(_ type: Handler.Type) -> EventLoopFuture<Void> {
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
93 | return self.channel.pipeline.handler(type: type).flatMap { handler in
94 | self.channel.pipeline.removeHandler(handler)
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol
95 | }.recover { _ in }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/Utils.swift:94:13: warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
92 | func removeHandler<Handler: RemovableChannelHandler>(_ type: Handler.Type) -> EventLoopFuture<Void> {
93 | return self.channel.pipeline.handler(type: type).flatMap { handler in
94 | self.channel.pipeline.removeHandler(handler)
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
95 | }.recover { _ in }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:164:11: note: class 'Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
[700/705] Compiling AsyncHTTPClient HTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:55:29: warning: 'Lock' is deprecated: renamed to 'NIOLock'
53 | var state: State
54 | private var tasks = [UUID: TaskProtocol]()
55 | private let stateLock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
56 |
57 | /// Create an `HTTPClient` with specified `EventLoopGroup` provider and configuration.
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:561:27: warning: static property 'indifferent' is not concurrency-safe because non-'Sendable' type 'HTTPClient.EventLoopPreference' may have shared mutable state; this is an error in the Swift 6 language mode
540 |
541 | /// Specifies how the library will treat event loop passed by the user.
542 | public struct EventLoopPreference {
| `- note: consider making struct 'EventLoopPreference' conform to the 'Sendable' protocol
543 | enum Preference {
544 | /// Event Loop will be selected by the library.
:
559 |
560 | /// Event Loop will be selected by the library.
561 | public static let indifferent = EventLoopPreference(.indifferent)
| |- warning: static property 'indifferent' is not concurrency-safe because non-'Sendable' type 'HTTPClient.EventLoopPreference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'indifferent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
562 |
563 | /// The delegate will be run on the specified EventLoop (and the Channel if possible).
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:648:27: warning: static property 'disallow' is not concurrency-safe because non-'Sendable' type 'HTTPClient.Configuration.RedirectConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
627 |
628 | /// Specifies redirect processing settings.
629 | public struct RedirectConfiguration {
| `- note: consider making struct 'RedirectConfiguration' conform to the 'Sendable' protocol
630 | enum Configuration {
631 | /// Redirects are not followed.
:
646 |
647 | /// Redirects are not followed.
648 | public static let disallow = RedirectConfiguration(configuration: .disallow)
| |- warning: static property 'disallow' is not concurrency-safe because non-'Sendable' type 'HTTPClient.Configuration.RedirectConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disallow' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
649 |
650 | /// Redirects are followed with a specified limit.
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:103:32: warning: 'Lock' is deprecated: renamed to 'NIOLock'
101 | """)
102 | }
103 | let errorStorageLock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
104 | var errorStorage: Error?
105 | let continuation = DispatchWorkItem {}
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:148:74: warning: passing non-sendable parameter 'callback' to function expecting a @Sendable closure
136 | }
137 |
138 | private func shutdownEventLoop(queue: DispatchQueue, _ callback: @escaping (Error?) -> Void) {
| `- note: parameter 'callback' is implicitly non-sendable
139 | self.stateLock.withLock {
140 | switch self.eventLoopGroupProvider {
:
146 | case .shuttingDown:
147 | self.state = .shutDown
148 | self.eventLoopGroup.shutdownGracefully(queue: queue, callback)
| `- warning: passing non-sendable parameter 'callback' to function expecting a @Sendable closure
149 | case .shutDown, .upAndRunning:
150 | assertionFailure("The only valid state at this point is \(State.shutDown)")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:172:21: warning: capture of 'tasks' with non-sendable type 'Dictionary<UUID, any TaskProtocol>.Values' in a '@Sendable' closure
170 | self.pool.prepareForClose(on: self.eventLoopGroup.next()).whenComplete { _ in
171 | var closeError: Error?
172 | if !tasks.isEmpty, requiresCleanClose {
| `- warning: capture of 'tasks' with non-sendable type 'Dictionary<UUID, any TaskProtocol>.Values' in a '@Sendable' closure
173 | closeError = HTTPClientError.uncleanShutdown
174 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:605:19: note: protocol 'TaskProtocol' does not conform to the 'Sendable' protocol
603 | internal struct TaskCancelEvent {}
604 |
605 | internal protocol TaskProtocol {
| `- note: protocol 'TaskProtocol' does not conform to the 'Sendable' protocol
606 | func cancel()
607 | var id: UUID { get }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:177:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
46 | /// try client.syncShutdown()
47 | /// ```
48 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
49 | public let eventLoopGroup: EventLoopGroup
50 | let eventLoopGroupProvider: EventLoopGroupProvider
:
175 |
176 | // we ignore errors here
177 | self.cancelTasks(tasks).whenComplete { _ in
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
178 | // we ignore errors here
179 | self.pool.close(on: self.eventLoopGroup.next()).whenComplete { _ in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:183:33: warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
181 | // we prioritise .uncleanShutdown here
182 | if let error = closeError {
183 | callback(error)
| |- warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
184 | } else {
185 | callback(eventLoopError)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:179:21: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
46 | /// try client.syncShutdown()
47 | /// ```
48 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
49 | public let eventLoopGroup: EventLoopGroup
50 | let eventLoopGroupProvider: EventLoopGroupProvider
:
177 | self.cancelTasks(tasks).whenComplete { _ in
178 | // we ignore errors here
179 | self.pool.close(on: self.eventLoopGroup.next()).whenComplete { _ in
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
180 | self.shutdownEventLoop(queue: queue) { eventLoopError in
181 | // we prioritise .uncleanShutdown here
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:183:33: warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
181 | // we prioritise .uncleanShutdown here
182 | if let error = closeError {
183 | callback(error)
| |- warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
184 | } else {
185 | callback(eventLoopError)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:180:25: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
46 | /// try client.syncShutdown()
47 | /// ```
48 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
49 | public let eventLoopGroup: EventLoopGroup
50 | let eventLoopGroupProvider: EventLoopGroupProvider
:
178 | // we ignore errors here
179 | self.pool.close(on: self.eventLoopGroup.next()).whenComplete { _ in
180 | self.shutdownEventLoop(queue: queue) { eventLoopError in
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
181 | // we prioritise .uncleanShutdown here
182 | if let error = closeError {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:183:33: warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
181 | // we prioritise .uncleanShutdown here
182 | if let error = closeError {
183 | callback(error)
| |- warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
184 | } else {
185 | callback(eventLoopError)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:183:33: warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
181 | // we prioritise .uncleanShutdown here
182 | if let error = closeError {
183 | callback(error)
| |- warning: capture of 'callback' with non-sendable type '((any Error)?) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
184 | } else {
185 | callback(eventLoopError)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:182:44: warning: reference to captured var 'closeError' in concurrently-executing code; this is an error in the Swift 6 language mode
180 | self.shutdownEventLoop(queue: queue) { eventLoopError in
181 | // we prioritise .uncleanShutdown here
182 | if let error = closeError {
| `- warning: reference to captured var 'closeError' in concurrently-executing code; this is an error in the Swift 6 language mode
183 | callback(error)
184 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:377:59: warning: conformance of 'NIOHTTPResponseDecompressor' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
375 | case .enabled(let limit):
376 | let decompressHandler = NIOHTTPResponseDecompressor(limit: limit)
377 | addedFuture = channel.pipeline.addHandler(decompressHandler)
| `- warning: conformance of 'NIOHTTPResponseDecompressor' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
378 | }
379 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-extras/Sources/NIOHTTPCompression/HTTPResponseDecompressor.swift:129:1: note: conformance of 'NIOHTTPResponseDecompressor' to 'Sendable' has been explicitly marked unavailable here
127 |
128 | @available(*, unavailable)
129 | extension NIOHTTPResponseDecompressor: Sendable {}
| `- note: conformance of 'NIOHTTPResponseDecompressor' to 'Sendable' has been explicitly marked unavailable here
130 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:382:56: warning: conformance of 'IdleStateHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
380 | return addedFuture.flatMap {
381 | if let timeout = self.resolve(timeout: self.configuration.timeout.read, deadline: deadline) {
382 | return channel.pipeline.addHandler(IdleStateHandler(readTimeout: timeout))
| `- warning: conformance of 'IdleStateHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
383 | } else {
384 | return channel.eventLoop.makeSucceededFuture(())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelHandlers.swift:397:1: note: conformance of 'IdleStateHandler' to 'Sendable' has been explicitly marked unavailable here
395 |
396 | @available(*, unavailable)
397 | extension IdleStateHandler: Sendable {}
| `- note: conformance of 'IdleStateHandler' to 'Sendable' has been explicitly marked unavailable here
398 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:392:52: warning: type 'TaskHandler<Delegate>' does not conform to the 'Sendable' protocol
390 | redirectHandler: redirectHandler,
391 | ignoreUncleanSSLShutdown: self.configuration.ignoreUncleanSSLShutdown)
392 | return channel.pipeline.addHandler(taskHandler)
| `- warning: type 'TaskHandler<Delegate>' does not conform to the 'Sendable' protocol
393 | }.flatMap {
394 | task.setConnection(connection)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:613:16: note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:401:36: warning: type 'HTTPClient.Request' does not conform to the 'Sendable' protocol
399 |
400 | if !isCancelled {
401 | return channel.writeAndFlush(request).flatMapError { _ in
| `- warning: type 'HTTPClient.Request' does not conform to the 'Sendable' protocol
402 | // At this point the `TaskHandler` will already be present
403 | // to handle the failure and pass it to the `promise`
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:99:19: note: consider making struct 'Request' conform to the 'Sendable' protocol
97 |
98 | /// Represent HTTP request.
99 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
100 | /// Represent kind of Request
101 | enum Kind {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:362:13: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
46 | /// try client.syncShutdown()
47 | /// ```
48 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
49 | public let eventLoopGroup: EventLoopGroup
50 | let eventLoopGroupProvider: EventLoopGroupProvider
:
360 |
361 | promise.futureResult.whenComplete { _ in
362 | self.stateLock.withLock {
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
363 | self.tasks[task.id] = nil
364 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:363:28: warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in a '@Sendable' closure
361 | promise.futureResult.whenComplete { _ in
362 | self.stateLock.withLock {
363 | self.tasks[task.id] = nil
| `- warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in a '@Sendable' closure
364 | }
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:488:24: note: generic class 'Task' does not conform to the 'Sendable' protocol
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: generic class 'Task' does not conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:363:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in an isolated closure; this is an error in the Swift 6 language mode
46 | /// try client.syncShutdown()
47 | /// ```
48 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
49 | public let eventLoopGroup: EventLoopGroup
50 | let eventLoopGroupProvider: EventLoopGroupProvider
:
361 | promise.futureResult.whenComplete { _ in
362 | self.stateLock.withLock {
363 | self.tasks[task.id] = nil
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in an isolated closure; this is an error in the Swift 6 language mode
364 | }
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:363:28: warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in an isolated closure; this is an error in the Swift 6 language mode
361 | promise.futureResult.whenComplete { _ in
362 | self.stateLock.withLock {
363 | self.tasks[task.id] = nil
| `- warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in an isolated closure; this is an error in the Swift 6 language mode
364 | }
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:488:24: note: generic class 'Task' does not conform to the 'Sendable' protocol
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: generic class 'Task' does not conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:372:20: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
46 | /// try client.syncShutdown()
47 | /// ```
48 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
49 | public let eventLoopGroup: EventLoopGroup
50 | let eventLoopGroupProvider: EventLoopGroupProvider
:
370 | let channel = connection.channel
371 | let addedFuture: EventLoopFuture<Void>
372 | switch self.configuration.decompression {
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
373 | case .disabled:
374 | addedFuture = channel.eventLoop.makeSucceededFuture(())
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:387:53: warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in a '@Sendable' closure
385 | }
386 | }.flatMap {
387 | let taskHandler = TaskHandler(task: task,
| `- warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in a '@Sendable' closure
388 | kind: request.kind,
389 | delegate: delegate,
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:488:24: note: generic class 'Task' does not conform to the 'Sendable' protocol
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: generic class 'Task' does not conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:388:53: warning: capture of 'request' with non-sendable type 'HTTPClient.Request' in a '@Sendable' closure
386 | }.flatMap {
387 | let taskHandler = TaskHandler(task: task,
388 | kind: request.kind,
| `- warning: capture of 'request' with non-sendable type 'HTTPClient.Request' in a '@Sendable' closure
389 | delegate: delegate,
390 | redirectHandler: redirectHandler,
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:99:19: note: consider making struct 'Request' conform to the 'Sendable' protocol
97 |
98 | /// Represent HTTP request.
99 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
100 | /// Represent kind of Request
101 | enum Kind {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:389:57: warning: capture of 'delegate' with non-sendable type 'Delegate' in a '@Sendable' closure
305 | /// - eventLoop: NIO Event Loop preference.
306 | /// - deadline: Point in time by which the request must complete.
307 | public func execute<Delegate: HTTPClientResponseDelegate>(request: Request,
| `- note: consider making generic parameter 'Delegate' conform to the 'Sendable' protocol
308 | delegate: Delegate,
309 | eventLoop eventLoopPreference: EventLoopPreference,
:
387 | let taskHandler = TaskHandler(task: task,
388 | kind: request.kind,
389 | delegate: delegate,
| `- warning: capture of 'delegate' with non-sendable type 'Delegate' in a '@Sendable' closure
390 | redirectHandler: redirectHandler,
391 | ignoreUncleanSSLShutdown: self.configuration.ignoreUncleanSSLShutdown)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:390:64: warning: capture of 'redirectHandler' with non-sendable type 'RedirectHandler<Delegate.Response>?' in a '@Sendable' closure
388 | kind: request.kind,
389 | delegate: delegate,
390 | redirectHandler: redirectHandler,
| `- warning: capture of 'redirectHandler' with non-sendable type 'RedirectHandler<Delegate.Response>?' in a '@Sendable' closure
391 | ignoreUncleanSSLShutdown: self.configuration.ignoreUncleanSSLShutdown)
392 | return channel.pipeline.addHandler(taskHandler)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:932:17: note: consider making generic struct 'RedirectHandler' conform to the 'Sendable' protocol
930 | // MARK: - RedirectHandler
931 |
932 | internal struct RedirectHandler<ResponseType> {
| `- note: consider making generic struct 'RedirectHandler' conform to the 'Sendable' protocol
933 | let request: HTTPClient.Request
934 | let execute: (HTTPClient.Request) -> HTTPClient.Task<ResponseType>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:381:34: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
46 | /// try client.syncShutdown()
47 | /// ```
48 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
49 | public let eventLoopGroup: EventLoopGroup
50 | let eventLoopGroupProvider: EventLoopGroupProvider
:
379 |
380 | return addedFuture.flatMap {
381 | if let timeout = self.resolve(timeout: self.configuration.timeout.read, deadline: deadline) {
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
382 | return channel.pipeline.addHandler(IdleStateHandler(readTimeout: timeout))
383 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:387:53: warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in a '@Sendable' closure
385 | }
386 | }.flatMap {
387 | let taskHandler = TaskHandler(task: task,
| `- warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in a '@Sendable' closure
388 | kind: request.kind,
389 | delegate: delegate,
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:488:24: note: generic class 'Task' does not conform to the 'Sendable' protocol
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: generic class 'Task' does not conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:388:53: warning: capture of 'request' with non-sendable type 'HTTPClient.Request' in a '@Sendable' closure
386 | }.flatMap {
387 | let taskHandler = TaskHandler(task: task,
388 | kind: request.kind,
| `- warning: capture of 'request' with non-sendable type 'HTTPClient.Request' in a '@Sendable' closure
389 | delegate: delegate,
390 | redirectHandler: redirectHandler,
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:99:19: note: consider making struct 'Request' conform to the 'Sendable' protocol
97 |
98 | /// Represent HTTP request.
99 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
100 | /// Represent kind of Request
101 | enum Kind {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:389:57: warning: capture of 'delegate' with non-sendable type 'Delegate' in a '@Sendable' closure
305 | /// - eventLoop: NIO Event Loop preference.
306 | /// - deadline: Point in time by which the request must complete.
307 | public func execute<Delegate: HTTPClientResponseDelegate>(request: Request,
| `- note: consider making generic parameter 'Delegate' conform to the 'Sendable' protocol
308 | delegate: Delegate,
309 | eventLoop eventLoopPreference: EventLoopPreference,
:
387 | let taskHandler = TaskHandler(task: task,
388 | kind: request.kind,
389 | delegate: delegate,
| `- warning: capture of 'delegate' with non-sendable type 'Delegate' in a '@Sendable' closure
390 | redirectHandler: redirectHandler,
391 | ignoreUncleanSSLShutdown: self.configuration.ignoreUncleanSSLShutdown)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:390:64: warning: capture of 'redirectHandler' with non-sendable type 'RedirectHandler<Delegate.Response>?' in a '@Sendable' closure
388 | kind: request.kind,
389 | delegate: delegate,
390 | redirectHandler: redirectHandler,
| `- warning: capture of 'redirectHandler' with non-sendable type 'RedirectHandler<Delegate.Response>?' in a '@Sendable' closure
391 | ignoreUncleanSSLShutdown: self.configuration.ignoreUncleanSSLShutdown)
392 | return channel.pipeline.addHandler(taskHandler)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:932:17: note: consider making generic struct 'RedirectHandler' conform to the 'Sendable' protocol
930 | // MARK: - RedirectHandler
931 |
932 | internal struct RedirectHandler<ResponseType> {
| `- note: consider making generic struct 'RedirectHandler' conform to the 'Sendable' protocol
933 | let request: HTTPClient.Request
934 | let execute: (HTTPClient.Request) -> HTTPClient.Task<ResponseType>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:391:73: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
46 | /// try client.syncShutdown()
47 | /// ```
48 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
49 | public let eventLoopGroup: EventLoopGroup
50 | let eventLoopGroupProvider: EventLoopGroupProvider
:
389 | delegate: delegate,
390 | redirectHandler: redirectHandler,
391 | ignoreUncleanSSLShutdown: self.configuration.ignoreUncleanSSLShutdown)
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
392 | return channel.pipeline.addHandler(taskHandler)
393 | }.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:394:17: warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in a '@Sendable' closure
392 | return channel.pipeline.addHandler(taskHandler)
393 | }.flatMap {
394 | task.setConnection(connection)
| `- warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in a '@Sendable' closure
395 |
396 | let isCancelled = task.lock.withLock {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:488:24: note: generic class 'Task' does not conform to the 'Sendable' protocol
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: generic class 'Task' does not conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:394:36: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
392 | return channel.pipeline.addHandler(taskHandler)
393 | }.flatMap {
394 | task.setConnection(connection)
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
395 |
396 | let isCancelled = task.lock.withLock {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:164:11: note: class 'Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:401:50: warning: capture of 'request' with non-sendable type 'HTTPClient.Request' in a '@Sendable' closure
399 |
400 | if !isCancelled {
401 | return channel.writeAndFlush(request).flatMapError { _ in
| `- warning: capture of 'request' with non-sendable type 'HTTPClient.Request' in a '@Sendable' closure
402 | // At this point the `TaskHandler` will already be present
403 | // to handle the failure and pass it to the `promise`
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:99:19: note: consider making struct 'Request' conform to the 'Sendable' protocol
97 |
98 | /// Represent HTTP request.
99 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
100 | /// Represent kind of Request
101 | enum Kind {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:397:21: warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in an isolated closure; this is an error in the Swift 6 language mode
395 |
396 | let isCancelled = task.lock.withLock {
397 | task.cancelled
| `- warning: capture of 'task' with non-sendable type 'HTTPClient.Task<Delegate.Response>' in an isolated closure; this is an error in the Swift 6 language mode
398 | }
399 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:488:24: note: generic class 'Task' does not conform to the 'Sendable' protocol
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: generic class 'Task' does not conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:410:17: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
408 | }
409 | }.flatMapError { error in
410 | connection.release()
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
411 | return channel.eventLoop.makeFailedFuture(error)
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:164:11: note: class 'Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:506:54: warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
504 | ignoreUncleanSSLShutdown: Bool = false,
505 | decompression: Decompression = .disabled) {
506 | self.tlsConfiguration = TLSConfiguration.forClient(certificateVerification: certificateVerification)
| |- warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
| `- note: use 'makeClientConfiguration()' instead
507 | self.redirectConfiguration = redirectConfiguration ?? RedirectConfiguration()
508 | self.timeout = timeout
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:667:44: warning: conformance of 'HTTPRequestEncoder' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
665 | let handler = HTTPClientProxyHandler(host: host, port: port, authorization: authorization) { channel in
666 | let encoderRemovePromise = self.eventLoop.next().makePromise(of: Void.self)
667 | channel.pipeline.removeHandler(encoder, promise: encoderRemovePromise)
| `- warning: conformance of 'HTTPRequestEncoder' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
668 | return encoderRemovePromise.futureResult.flatMap {
669 | channel.pipeline.removeHandler(decoder)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPEncoder.swift:253:1: note: conformance of 'HTTPRequestEncoder' to 'Sendable' has been explicitly marked unavailable here
251 |
252 | @available(*, unavailable)
253 | extension HTTPRequestEncoder: Sendable {}
| `- note: conformance of 'HTTPRequestEncoder' to 'Sendable' has been explicitly marked unavailable here
254 |
255 | /// A `ChannelOutboundHandler` that can serialize HTTP responses.
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:669:48: warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
667 | channel.pipeline.removeHandler(encoder, promise: encoderRemovePromise)
668 | return encoderRemovePromise.futureResult.flatMap {
669 | channel.pipeline.removeHandler(decoder)
| `- warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
670 | }
671 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Codec.swift:507:1: note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
505 |
506 | @available(*, unavailable)
507 | extension ByteToMessageHandler: Sendable {}
| `- note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
508 |
509 | // MARK: ByteToMessageHandler: Test Helpers
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:672:29: warning: conformance of 'HTTPRequestEncoder' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
670 | }
671 | }
672 | return addHandlers([encoder, decoder, handler])
| `- warning: conformance of 'HTTPRequestEncoder' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
673 | }
674 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPEncoder.swift:253:1: note: conformance of 'HTTPRequestEncoder' to 'Sendable' has been explicitly marked unavailable here
251 |
252 | @available(*, unavailable)
253 | extension HTTPRequestEncoder: Sendable {}
| `- note: conformance of 'HTTPRequestEncoder' to 'Sendable' has been explicitly marked unavailable here
254 |
255 | /// A `ChannelOutboundHandler` that can serialize HTTP responses.
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:672:38: warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
670 | }
671 | }
672 | return addHandlers([encoder, decoder, handler])
| `- warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
673 | }
674 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Codec.swift:507:1: note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
505 |
506 | @available(*, unavailable)
507 | extension ByteToMessageHandler: Sendable {}
| `- note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
508 |
509 | // MARK: ByteToMessageHandler: Test Helpers
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:672:47: warning: type 'HTTPClientProxyHandler' does not conform to the 'Sendable' protocol
670 | }
671 | }
672 | return addHandlers([encoder, decoder, handler])
| `- warning: type 'HTTPClientProxyHandler' does not conform to the 'Sendable' protocol
673 | }
674 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClientProxyHandler.swift:58:22: note: class 'HTTPClientProxyHandler' does not conform to the 'Sendable' protocol
56 | }
57 |
58 | internal final class HTTPClientProxyHandler: ChannelDuplexHandler, RemovableChannelHandler {
| `- note: class 'HTTPClientProxyHandler' does not conform to the 'Sendable' protocol
59 | typealias InboundIn = HTTPClientResponsePart
60 | typealias OutboundIn = HTTPClientRequestPart
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:669:48: warning: capture of 'decoder' with non-sendable type 'ByteToMessageHandler<HTTPResponseDecoder>' (aka 'ByteToMessageHandler<HTTPDecoder<HTTPPart<HTTPResponseHead, ByteBuffer>, HTTPPart<HTTPRequestHead, IOData>>>') in a '@Sendable' closure
667 | channel.pipeline.removeHandler(encoder, promise: encoderRemovePromise)
668 | return encoderRemovePromise.futureResult.flatMap {
669 | channel.pipeline.removeHandler(decoder)
| `- warning: capture of 'decoder' with non-sendable type 'ByteToMessageHandler<HTTPResponseDecoder>' (aka 'ByteToMessageHandler<HTTPDecoder<HTTPPart<HTTPResponseHead, ByteBuffer>, HTTPPart<HTTPRequestHead, IOData>>>') in a '@Sendable' closure
670 | }
671 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Codec.swift:388:20: note: generic class 'ByteToMessageHandler' does not conform to the 'Sendable' protocol
386 | /// Most importantly, `ByteToMessageHandler` handles the tricky buffer management for you and flattens out all
387 | /// re-entrancy on `channelRead` that may happen in the `ChannelPipeline`.
388 | public final class ByteToMessageHandler<Decoder: ByteToMessageDecoder> {
| `- note: generic class 'ByteToMessageHandler' does not conform to the 'Sendable' protocol
389 | public typealias InboundIn = ByteBuffer
390 | public typealias InboundOut = Decoder.InboundOut
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:682:73: warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
680 |
681 | do {
682 | let tlsConfiguration = tlsConfiguration ?? TLSConfiguration.forClient()
| |- warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
| `- note: use 'makeClientConfiguration()' instead
683 | let context = try NIOSSLContext(configuration: tlsConfiguration)
684 | let handlers: [ChannelHandler] = [
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:688:30: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
686 | TLSEventsHandler(completionPromise: handshakePromise),
687 | ]
688 | self.addHandlers(handlers).cascadeFailure(to: handshakePromise)
| `- warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
689 | } catch {
690 | handshakePromise.fail(error)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:710:48: warning: type 'TLSEventsHandler' does not conform to the 'Sendable' protocol
693 | }
694 |
695 | class TLSEventsHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'TLSEventsHandler' does not conform to the 'Sendable' protocol
696 | typealias InboundIn = NIOAny
697 |
:
708 | self.completionPromise?.succeed(())
709 | self.completionPromise = nil
710 | context.pipeline.removeHandler(self, promise: nil)
| `- warning: type 'TLSEventsHandler' does not conform to the 'Sendable' protocol
711 | case .shutdownCompleted:
712 | break
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:724:48: warning: type 'TLSEventsHandler' does not conform to the 'Sendable' protocol
693 | }
694 |
695 | class TLSEventsHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'TLSEventsHandler' does not conform to the 'Sendable' protocol
696 | typealias InboundIn = NIOAny
697 |
:
722 | self.completionPromise?.fail(error)
723 | self.completionPromise = nil
724 | context.pipeline.removeHandler(self, promise: nil)
| `- warning: type 'TLSEventsHandler' does not conform to the 'Sendable' protocol
725 | default:
726 | break
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:37:43: warning: 'Lock' is deprecated: renamed to 'NIOLock'
35 | ///
36 | /// - Warning: This lock should always be acquired *before* `HTTP1ConnectionProvider`s `stateLock` if used in combination with it.
37 | private let connectionProvidersLock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
38 |
39 | init(configuration: HTTPClient.Configuration) {
[701/705] Compiling AsyncHTTPClient HTTPClient+HTTPCookie.swift
[702/705] Compiling AsyncHTTPClient HTTPClientProxyHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClientProxyHandler.swift:162:51: warning: type 'HTTPClientProxyHandler' does not conform to the 'Sendable' protocol
56 | }
57 |
58 | internal final class HTTPClientProxyHandler: ChannelDuplexHandler, RemovableChannelHandler {
| `- note: class 'HTTPClientProxyHandler' does not conform to the 'Sendable' protocol
59 | typealias InboundIn = HTTPClientResponsePart
60 | typealias OutboundIn = HTTPClientRequestPart
:
160 | }
161 | }
162 | return context.pipeline.removeHandler(self)
| `- warning: type 'HTTPClientProxyHandler' does not conform to the 'Sendable' protocol
163 | }
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClientProxyHandler.swift:146:13: warning: capture of 'self' with non-sendable type 'HTTPClientProxyHandler' in a '@Sendable' closure
56 | }
57 |
58 | internal final class HTTPClientProxyHandler: ChannelDuplexHandler, RemovableChannelHandler {
| `- note: class 'HTTPClientProxyHandler' does not conform to the 'Sendable' protocol
59 | typealias InboundIn = HTTPClientResponsePart
60 | typealias OutboundIn = HTTPClientRequestPart
:
144 | private func handleConnect(context: ChannelHandlerContext) -> EventLoopFuture<Void> {
145 | return self.onConnect(context.channel).flatMap {
146 | self.readState = .connected
| `- warning: capture of 'self' with non-sendable type 'HTTPClientProxyHandler' in a '@Sendable' closure
147 |
148 | // forward any buffered reads
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClientProxyHandler.swift:150:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
148 | // forward any buffered reads
149 | while !self.readBuffer.isEmpty {
150 | context.fireChannelRead(self.readBuffer.removeFirst())
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
151 | }
152 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
[703/705] Compiling AsyncHTTPClient ConnectionPool.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:37:43: warning: 'Lock' is deprecated: renamed to 'NIOLock'
35 | ///
36 | /// - Warning: This lock should always be acquired *before* `HTTP1ConnectionProvider`s `stateLock` if used in combination with it.
37 | private let connectionProvidersLock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
38 |
39 | init(configuration: HTTPClient.Configuration) {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:291:37: warning: 'Lock' is deprecated: renamed to 'NIOLock'
289 | ///
290 | /// - Warning: This lock should always be acquired *after* `ConnectionPool`s `connectionProvidersLock` if used in combination with it.
291 | fileprivate let stateLock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
292 |
293 | /// The maximum number of concurrent connections to a given (host, scheme, port)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:110:13: warning: capture of 'self' with non-sendable type 'ConnectionPool' in a '@Sendable' closure
22 | ///
23 | /// - Note: All `internal` methods of this class are thread safe
24 | final class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
25 | /// The configuration used to bootstrap new HTTP connections
26 | private let configuration: HTTPClient.Configuration
:
108 |
109 | return EventLoopFuture.andAllComplete(connectionProviders.map { $0.close() }, on: eventLoop).map {
110 | self.connectionProvidersLock.withLock {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool' in a '@Sendable' closure
111 | assert(self.connectionProviders.count == 0, "left-overs: \(self.connectionProviders)")
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:111:24: warning: capture of 'self' with non-sendable type 'ConnectionPool' in an isolated closure; this is an error in the Swift 6 language mode
22 | ///
23 | /// - Note: All `internal` methods of this class are thread safe
24 | final class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
25 | /// The configuration used to bootstrap new HTTP connections
26 | private let configuration: HTTPClient.Configuration
:
109 | return EventLoopFuture.andAllComplete(connectionProviders.map { $0.close() }, on: eventLoop).map {
110 | self.connectionProvidersLock.withLock {
111 | assert(self.connectionProviders.count == 0, "left-overs: \(self.connectionProviders)")
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool' in an isolated closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:111:24: warning: implicit capture of 'self' requires that 'ConnectionPool' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | ///
23 | /// - Note: All `internal` methods of this class are thread safe
24 | final class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
25 | /// The configuration used to bootstrap new HTTP connections
26 | private let configuration: HTTPClient.Configuration
:
109 | return EventLoopFuture.andAllComplete(connectionProviders.map { $0.close() }, on: eventLoop).map {
110 | self.connectionProvidersLock.withLock {
111 | assert(self.connectionProviders.count == 0, "left-overs: \(self.connectionProviders)")
| `- warning: implicit capture of 'self' requires that 'ConnectionPool' conforms to 'Sendable'; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:111:76: warning: implicit capture of 'self' requires that 'ConnectionPool' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | ///
23 | /// - Note: All `internal` methods of this class are thread safe
24 | final class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
25 | /// The configuration used to bootstrap new HTTP connections
26 | private let configuration: HTTPClient.Configuration
:
109 | return EventLoopFuture.andAllComplete(connectionProviders.map { $0.close() }, on: eventLoop).map {
110 | self.connectionProvidersLock.withLock {
111 | assert(self.connectionProviders.count == 0, "left-overs: \(self.connectionProviders)")
| `- warning: implicit capture of 'self' requires that 'ConnectionPool' conforms to 'Sendable'; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:232:43: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
230 |
231 | func removeIdleConnectionHandlersForLease() -> EventLoopFuture<Connection> {
232 | return self.channel.eventLoop.flatSubmit {
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
233 | self.removeHandler(IdleStateHandler.self).flatMap { () -> EventLoopFuture<Bool> in
234 | self.channel.pipeline.handler(type: IdlePoolConnectionHandler.self).flatMap { idleHandler in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:235:61: warning: type 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol
233 | self.removeHandler(IdleStateHandler.self).flatMap { () -> EventLoopFuture<Bool> in
234 | self.channel.pipeline.handler(type: IdlePoolConnectionHandler.self).flatMap { idleHandler in
235 | self.channel.pipeline.removeHandler(idleHandler).flatMapError { _ in
| `- warning: type 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol
236 | self.channel.eventLoop.makeSucceededFuture(())
237 | }.map {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:1025:7: note: class 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol
1023 | }
1024 |
1025 | class IdlePoolConnectionHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol
1026 | typealias InboundIn = NIOAny
1027 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:249:19: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
247 | }
248 | }
249 | }.flatMap { channelIsUsable in
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
250 | if channelIsUsable {
251 | return self.channel.eventLoop.makeSucceededFuture(self)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:251:55: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
249 | }.flatMap { channelIsUsable in
250 | if channelIsUsable {
251 | return self.channel.eventLoop.makeSucceededFuture(self)
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
252 | } else {
253 | return self.channel.eventLoop.makeFailedFuture(InactiveChannelError())
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:233:17: warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
231 | func removeIdleConnectionHandlersForLease() -> EventLoopFuture<Connection> {
232 | return self.channel.eventLoop.flatSubmit {
233 | self.removeHandler(IdleStateHandler.self).flatMap { () -> EventLoopFuture<Bool> in
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
234 | self.channel.pipeline.handler(type: IdlePoolConnectionHandler.self).flatMap { idleHandler in
235 | self.channel.pipeline.removeHandler(idleHandler).flatMapError { _ in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:234:21: warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
232 | return self.channel.eventLoop.flatSubmit {
233 | self.removeHandler(IdleStateHandler.self).flatMap { () -> EventLoopFuture<Bool> in
234 | self.channel.pipeline.handler(type: IdlePoolConnectionHandler.self).flatMap { idleHandler in
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
235 | self.channel.pipeline.removeHandler(idleHandler).flatMapError { _ in
236 | self.channel.eventLoop.makeSucceededFuture(())
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:235:25: warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
233 | self.removeHandler(IdleStateHandler.self).flatMap { () -> EventLoopFuture<Bool> in
234 | self.channel.pipeline.handler(type: IdlePoolConnectionHandler.self).flatMap { idleHandler in
235 | self.channel.pipeline.removeHandler(idleHandler).flatMapError { _ in
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
236 | self.channel.eventLoop.makeSucceededFuture(())
237 | }.map {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:236:29: warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
234 | self.channel.pipeline.handler(type: IdlePoolConnectionHandler.self).flatMap { idleHandler in
235 | self.channel.pipeline.removeHandler(idleHandler).flatMapError { _ in
236 | self.channel.eventLoop.makeSucceededFuture(())
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
237 | }.map {
238 | idleHandler.hasNotSentClose && self.channel.isActive
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:238:29: warning: capture of 'idleHandler' with non-sendable type 'IdlePoolConnectionHandler' in a '@Sendable' closure
236 | self.channel.eventLoop.makeSucceededFuture(())
237 | }.map {
238 | idleHandler.hasNotSentClose && self.channel.isActive
| `- warning: capture of 'idleHandler' with non-sendable type 'IdlePoolConnectionHandler' in a '@Sendable' closure
239 | }
240 | }.flatMapError { error in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:1025:7: note: class 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol
1023 | }
1024 |
1025 | class IdlePoolConnectionHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol
1026 | typealias InboundIn = NIOAny
1027 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:238:60: warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
236 | self.channel.eventLoop.makeSucceededFuture(())
237 | }.map {
238 | idleHandler.hasNotSentClose && self.channel.isActive
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
239 | }
240 | }.flatMapError { error in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:238:60: warning: implicit capture of 'self' requires that 'ConnectionPool.Connection' conforms to 'Sendable'; this is an error in the Swift 6 language mode
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
236 | self.channel.eventLoop.makeSucceededFuture(())
237 | }.map {
238 | idleHandler.hasNotSentClose && self.channel.isActive
| `- warning: implicit capture of 'self' requires that 'ConnectionPool.Connection' conforms to 'Sendable'; this is an error in the Swift 6 language mode
239 | }
240 | }.flatMapError { error in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:244:36: warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
242 | // when a connection is made to be instantly leased, so we ignore this error
243 | if let channelError = error as? ChannelPipelineError, channelError == .notFound {
244 | return self.channel.eventLoop.makeSucceededFuture(self.channel.isActive)
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
245 | } else {
246 | return self.channel.eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:251:32: warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
249 | }.flatMap { channelIsUsable in
250 | if channelIsUsable {
251 | return self.channel.eventLoop.makeSucceededFuture(self)
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
252 | } else {
253 | return self.channel.eventLoop.makeFailedFuture(InactiveChannelError())
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:330:74: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
328 | switch action {
329 | case .leaseConnection(let connection):
330 | return connection.removeIdleConnectionHandlersForLease().flatMapError { _ in
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
331 | connection.closeFuture.flatMap { // We ensure close actions are run first
332 | let defaultEventLoop = self.stateLock.withLock {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:331:44: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
329 | case .leaseConnection(let connection):
330 | return connection.removeIdleConnectionHandlersForLease().flatMapError { _ in
331 | connection.closeFuture.flatMap { // We ensure close actions are run first
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
332 | let defaultEventLoop = self.stateLock.withLock {
333 | self.state.defaultEventLoop
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:331:21: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
329 | case .leaseConnection(let connection):
330 | return connection.removeIdleConnectionHandlersForLease().flatMapError { _ in
331 | connection.closeFuture.flatMap { // We ensure close actions are run first
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
332 | let defaultEventLoop = self.stateLock.withLock {
333 | self.state.defaultEventLoop
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:332:48: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
330 | return connection.removeIdleConnectionHandlersForLease().flatMapError { _ in
331 | connection.closeFuture.flatMap { // We ensure close actions are run first
332 | let defaultEventLoop = self.stateLock.withLock {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
333 | self.state.defaultEventLoop
334 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:335:56: warning: capture of 'preference' with non-sendable type 'HTTPClient.EventLoopPreference' in a '@Sendable' closure
333 | self.state.defaultEventLoop
334 | }
335 | return self.makeConnection(on: preference.bestEventLoop ?? defaultEventLoop)
| `- warning: capture of 'preference' with non-sendable type 'HTTPClient.EventLoopPreference' in a '@Sendable' closure
336 | }
337 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:542:19: note: consider making struct 'EventLoopPreference' conform to the 'Sendable' protocol
540 |
541 | /// Specifies how the library will treat event loop passed by the user.
542 | public struct EventLoopPreference {
| `- note: consider making struct 'EventLoopPreference' conform to the 'Sendable' protocol
543 | enum Preference {
544 | /// Event Loop will be selected by the library.
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:332:48: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
330 | return connection.removeIdleConnectionHandlersForLease().flatMapError { _ in
331 | connection.closeFuture.flatMap { // We ensure close actions are run first
332 | let defaultEventLoop = self.stateLock.withLock {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
333 | self.state.defaultEventLoop
334 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:335:56: warning: capture of 'preference' with non-sendable type 'HTTPClient.EventLoopPreference' in a '@Sendable' closure
333 | self.state.defaultEventLoop
334 | }
335 | return self.makeConnection(on: preference.bestEventLoop ?? defaultEventLoop)
| `- warning: capture of 'preference' with non-sendable type 'HTTPClient.EventLoopPreference' in a '@Sendable' closure
336 | }
337 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:542:19: note: consider making struct 'EventLoopPreference' conform to the 'Sendable' protocol
540 |
541 | /// Specifies how the library will treat event loop passed by the user.
542 | public struct EventLoopPreference {
| `- note: consider making struct 'EventLoopPreference' conform to the 'Sendable' protocol
543 | enum Preference {
544 | /// Event Loop will be selected by the library.
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:333:29: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
331 | connection.closeFuture.flatMap { // We ensure close actions are run first
332 | let defaultEventLoop = self.stateLock.withLock {
333 | self.state.defaultEventLoop
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
334 | }
335 | return self.makeConnection(on: preference.bestEventLoop ?? defaultEventLoop)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:352:25: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
350 | switch action {
351 | case .succeed(let promise):
352 | promise.succeed(connection)
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
353 |
354 | case .makeConnectionAndComplete(let eventLoop, let promise):
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:355:52: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
353 |
354 | case .makeConnectionAndComplete(let eventLoop, let promise):
355 | self.makeConnection(on: eventLoop).cascade(to: promise)
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
356 |
357 | case .replaceConnection(let eventLoop, let promise):
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:358:36: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
356 |
357 | case .replaceConnection(let eventLoop, let promise):
358 | connection.close().flatMap {
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
359 | self.makeConnection(on: eventLoop)
360 | }.whenComplete { result in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:363:33: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
361 | switch result {
362 | case .success(let connection):
363 | promise.succeed(connection)
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
364 | case .failure(let error):
365 | promise.fail(error)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:359:21: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
357 | case .replaceConnection(let eventLoop, let promise):
358 | connection.close().flatMap {
359 | self.makeConnection(on: eventLoop)
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
360 | }.whenComplete { result in
361 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:388:28: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
386 | }
387 |
388 | return channel.flatMap { channel -> EventLoopFuture<ConnectionPool.Connection> in
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
389 | channel.pipeline.addSSLHandlerIfNeeded(for: self.key, tlsConfiguration: self.configuration.tlsConfiguration, handshakePromise: handshakePromise)
390 | return handshakePromise.futureResult.flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:400:15: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
398 | self.configureCloseCallback(of: connection)
399 | return connection
400 | }.flatMapError { error in
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
401 | // This promise may not have been completed if we reach this
402 | // so we fail it to avoid any leak
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:411:49: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
409 | switch action {
410 | case .makeConnectionAndComplete(let el, let promise):
411 | self.makeConnection(on: el).cascade(to: promise)
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
412 | case .none:
413 | break
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:389:61: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
387 |
388 | return channel.flatMap { channel -> EventLoopFuture<ConnectionPool.Connection> in
389 | channel.pipeline.addSSLHandlerIfNeeded(for: self.key, tlsConfiguration: self.configuration.tlsConfiguration, handshakePromise: handshakePromise)
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
390 | return handshakePromise.futureResult.flatMap {
391 | channel.pipeline.addHTTPClientHandlers(leftOverBytesStrategy: .forwardBytes)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:393:54: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
391 | channel.pipeline.addHTTPClientHandlers(leftOverBytesStrategy: .forwardBytes)
392 | }.map {
393 | let connection = Connection(key: self.key, channel: channel, parentPool: self.parentPool)
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
394 | connection.isLeased = true
395 | return connection
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:398:17: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
396 | }
397 | }.map { connection in
398 | self.configureCloseCallback(of: connection)
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
399 | return connection
400 | }.flatMapError { error in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:404:30: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
402 | // so we fail it to avoid any leak
403 | handshakePromise.fail(error)
404 | let action = self.parentPool.connectionProvidersLock.withLock {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
405 | self.stateLock.withLock {
406 | self.state.failedConnectionAction()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:405:21: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
403 | handshakePromise.fail(error)
404 | let action = self.parentPool.connectionProvidersLock.withLock {
405 | self.stateLock.withLock {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
406 | self.state.failedConnectionAction()
407 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:406:25: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
404 | let action = self.parentPool.connectionProvidersLock.withLock {
405 | self.stateLock.withLock {
406 | self.state.failedConnectionAction()
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
407 | }
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:443:53: warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
441 | switch action {
442 | case .makeConnectionAndComplete(let el, let promise):
443 | self.makeConnection(on: el).cascade(to: promise)
| `- warning: type 'ConnectionPool.Connection' does not conform to the 'Sendable' protocol
444 | case .none:
445 | break
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:425:91: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
423 | private func configureCloseCallback(of connection: Connection) {
424 | connection.channel.closeFuture.whenComplete { result in
425 | let action: HTTP1ConnectionProvider.State.ClosedConnectionRemoveAction? = self.parentPool.connectionProvidersLock.withLock {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
426 | self.stateLock.withLock {
427 | guard connection.mustRunDefaultCloseCallback else {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:427:31: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
425 | let action: HTTP1ConnectionProvider.State.ClosedConnectionRemoveAction? = self.parentPool.connectionProvidersLock.withLock {
426 | self.stateLock.withLock {
427 | guard connection.mustRunDefaultCloseCallback else {
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
428 | return nil
429 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:426:21: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
424 | connection.channel.closeFuture.whenComplete { result in
425 | let action: HTTP1ConnectionProvider.State.ClosedConnectionRemoveAction? = self.parentPool.connectionProvidersLock.withLock {
426 | self.stateLock.withLock {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
427 | guard connection.mustRunDefaultCloseCallback else {
428 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:427:31: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in an isolated closure; this is an error in the Swift 6 language mode
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
425 | let action: HTTP1ConnectionProvider.State.ClosedConnectionRemoveAction? = self.parentPool.connectionProvidersLock.withLock {
426 | self.stateLock.withLock {
427 | guard connection.mustRunDefaultCloseCallback else {
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in an isolated closure; this is an error in the Swift 6 language mode
428 | return nil
429 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:427:31: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in an isolated closure; this is an error in the Swift 6 language mode
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
:
425 | let action: HTTP1ConnectionProvider.State.ClosedConnectionRemoveAction? = self.parentPool.connectionProvidersLock.withLock {
426 | self.stateLock.withLock {
427 | guard connection.mustRunDefaultCloseCallback else {
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in an isolated closure; this is an error in the Swift 6 language mode
428 | return nil
429 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:432:36: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
430 | switch result {
431 | case .success:
432 | return self.state.removeClosedConnection(connection)
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
433 |
434 | case .failure(let error):
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:468:76: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
466 | return EventLoopFuture<Connection>.andAllComplete(waitersFutures, on: self.eventLoop)
467 | .flatMap {
468 | EventLoopFuture<Void>.andAllComplete(closeFutures, on: self.eventLoop)
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
469 | }
470 | .map { _ in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:471:21: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
469 | }
470 | .map { _ in
471 | self.stateLock.withLock {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in a '@Sendable' closure
472 | if self.state.leased == 0, self.state.availableConnections.isEmpty {
473 | self.state.activity = .closed
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:472:28: warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
265 | /// of concurrent requests as it has built-in politeness regarding the maximum number
266 | /// of concurrent requests to the server.
267 | class HTTP1ConnectionProvider: CustomStringConvertible {
| `- note: class 'HTTP1ConnectionProvider' does not conform to the 'Sendable' protocol
268 | /// The default `EventLoop` for this provider
269 | ///
:
470 | .map { _ in
471 | self.stateLock.withLock {
472 | if self.state.leased == 0, self.state.availableConnections.isEmpty {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool.HTTP1ConnectionProvider' in an isolated closure; this is an error in the Swift 6 language mode
473 | self.state.activity = .closed
474 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:55:29: warning: 'Lock' is deprecated: renamed to 'NIOLock'
53 | var state: State
54 | private var tasks = [UUID: TaskProtocol]()
55 | private let stateLock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
56 |
57 | /// Create an `HTTPClient` with specified `EventLoopGroup` provider and configuration.
[704/705] Emitting module AsyncHTTPClient
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:37:43: warning: 'Lock' is deprecated: renamed to 'NIOLock'
35 | ///
36 | /// - Warning: This lock should always be acquired *before* `HTTP1ConnectionProvider`s `stateLock` if used in combination with it.
37 | private let connectionProvidersLock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
38 |
39 | init(configuration: HTTPClient.Configuration) {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:291:37: warning: 'Lock' is deprecated: renamed to 'NIOLock'
289 | ///
290 | /// - Warning: This lock should always be acquired *after* `ConnectionPool`s `connectionProvidersLock` if used in combination with it.
291 | fileprivate let stateLock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
292 |
293 | /// The maximum number of concurrent connections to a given (host, scheme, port)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:55:29: warning: 'Lock' is deprecated: renamed to 'NIOLock'
53 | var state: State
54 | private var tasks = [UUID: TaskProtocol]()
55 | private let stateLock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
56 |
57 | /// Create an `HTTPClient` with specified `EventLoopGroup` provider and configuration.
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:561:27: warning: static property 'indifferent' is not concurrency-safe because non-'Sendable' type 'HTTPClient.EventLoopPreference' may have shared mutable state; this is an error in the Swift 6 language mode
540 |
541 | /// Specifies how the library will treat event loop passed by the user.
542 | public struct EventLoopPreference {
| `- note: consider making struct 'EventLoopPreference' conform to the 'Sendable' protocol
543 | enum Preference {
544 | /// Event Loop will be selected by the library.
:
559 |
560 | /// Event Loop will be selected by the library.
561 | public static let indifferent = EventLoopPreference(.indifferent)
| |- warning: static property 'indifferent' is not concurrency-safe because non-'Sendable' type 'HTTPClient.EventLoopPreference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'indifferent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
562 |
563 | /// The delegate will be run on the specified EventLoop (and the Channel if possible).
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPClient.swift:648:27: warning: static property 'disallow' is not concurrency-safe because non-'Sendable' type 'HTTPClient.Configuration.RedirectConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
627 |
628 | /// Specifies redirect processing settings.
629 | public struct RedirectConfiguration {
| `- note: consider making struct 'RedirectConfiguration' conform to the 'Sendable' protocol
630 | enum Configuration {
631 | /// Redirects are not followed.
:
646 |
647 | /// Redirects are not followed.
648 | public static let disallow = RedirectConfiguration(configuration: .disallow)
| |- warning: static property 'disallow' is not concurrency-safe because non-'Sendable' type 'HTTPClient.Configuration.RedirectConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disallow' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
649 |
650 | /// Redirects are followed with a specified limit.
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:107:32: warning: static property 'hostSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 | case unixSocket
106 |
107 | private static var hostSchemes = ["http", "https"]
| |- warning: static property 'hostSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostSchemes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | private static var unixSchemes = ["unix"]
109 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:108:32: warning: static property 'unixSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 |
107 | private static var hostSchemes = ["http", "https"]
108 | private static var unixSchemes = ["unix"]
| |- warning: static property 'unixSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unixSchemes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unixSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 |
110 | init(forScheme scheme: String) throws {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:496:19: warning: 'Lock' is deprecated: renamed to 'NIOLock'
494 | var connection: ConnectionPool.Connection?
495 | var cancelled: Bool
496 | let lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
497 | let id = UUID()
498 | let poolingTimeout: TimeAmount?
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:1028:27: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
1026 | typealias InboundIn = NIOAny
1027 |
1028 | let _hasNotSentClose: NIOAtomic<Bool> = .makeAtomic(value: true)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
1029 | var hasNotSentClose: Bool {
1030 | return self._hasNotSentClose.load()
[705/705] Compiling AsyncHTTPClient HTTPHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:107:32: warning: static property 'hostSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 | case unixSocket
106 |
107 | private static var hostSchemes = ["http", "https"]
| |- warning: static property 'hostSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostSchemes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | private static var unixSchemes = ["unix"]
109 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:108:32: warning: static property 'unixSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 |
107 | private static var hostSchemes = ["http", "https"]
108 | private static var unixSchemes = ["unix"]
| |- warning: static property 'unixSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unixSchemes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unixSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 |
110 | init(forScheme scheme: String) throws {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:496:19: warning: 'Lock' is deprecated: renamed to 'NIOLock'
494 | var connection: ConnectionPool.Connection?
495 | var cancelled: Bool
496 | let lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
497 | let id = UUID()
498 | let poolingTimeout: TimeAmount?
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:1028:27: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
1026 | typealias InboundIn = NIOAny
1027 |
1028 | let _hasNotSentClose: NIOAtomic<Bool> = .makeAtomic(value: true)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
1029 | var hasNotSentClose: Bool {
1030 | return self._hasNotSentClose.load()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:505:25: warning: 'Lock' is deprecated: renamed to 'NIOLock'
503 | self.completion = self.promise.futureResult.map { _ in }
504 | self.cancelled = false
505 | self.lock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
506 | self.poolingTimeout = poolingTimeout
507 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:525:50: warning: type 'Response' does not conform to the 'Sendable' protocol
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: consider making generic parameter 'Response' conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
:
523 | /// - throws: The error value of the `EventLoopFuture` if it errors.
524 | public func wait() throws -> Response {
525 | return try self.promise.futureResult.wait()
| `- warning: type 'Response' does not conform to the 'Sendable' protocol
526 | }
527 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:554:26: warning: type 'Response' does not conform to the 'Sendable' protocol
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: consider making generic parameter 'Response' conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
:
552 | func succeed<Delegate: HTTPClientResponseDelegate>(promise: EventLoopPromise<Response>?, with value: Response, delegateType: Delegate.Type) {
553 | self.releaseAssociatedConnection(delegateType: delegateType).whenSuccess {
554 | promise?.succeed(value)
| `- warning: type 'Response' does not conform to the 'Sendable' protocol
555 | }
556 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:554:34: warning: capture of 'value' with non-sendable type 'Response' in a '@Sendable' closure
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: consider making generic parameter 'Response' conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
:
552 | func succeed<Delegate: HTTPClientResponseDelegate>(promise: EventLoopPromise<Response>?, with value: Response, delegateType: Delegate.Type) {
553 | self.releaseAssociatedConnection(delegateType: delegateType).whenSuccess {
554 | promise?.succeed(value)
| `- warning: capture of 'value' with non-sendable type 'Response' in a '@Sendable' closure
555 | }
556 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:561:21: warning: capture of 'self' with non-sendable type 'HTTPClient.Task<Response>' in a '@Sendable' closure
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: generic class 'Task' does not conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
:
559 | if let connection = self.connection {
560 | connection.close().whenComplete { _ in
561 | self.releaseAssociatedConnection(delegateType: delegateType).whenComplete { _ in
| `- warning: capture of 'self' with non-sendable type 'HTTPClient.Task<Response>' in a '@Sendable' closure
562 | self.promise.fail(error)
563 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:562:25: warning: capture of 'self' with non-sendable type 'HTTPClient.Task<Response>' in a '@Sendable' closure
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: generic class 'Task' does not conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
:
560 | connection.close().whenComplete { _ in
561 | self.releaseAssociatedConnection(delegateType: delegateType).whenComplete { _ in
562 | self.promise.fail(error)
| `- warning: capture of 'self' with non-sendable type 'HTTPClient.Task<Response>' in a '@Sendable' closure
563 | }
564 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:576:67: warning: type 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol
574 | }.flatMap {
575 | let idlePoolConnectionHandler = IdlePoolConnectionHandler()
576 | return connection.channel.pipeline.addHandler(idlePoolConnectionHandler, position: .last).flatMap {
| `- warning: type 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol
577 | connection.channel.pipeline.addHandler(IdleStateHandler(writeTimeout: self.poolingTimeout), position: .before(idlePoolConnectionHandler))
578 | }
:
1023 | }
1024 |
1025 | class IdlePoolConnectionHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol
1026 | typealias InboundIn = NIOAny
1027 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:577:64: warning: conformance of 'IdleStateHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
575 | let idlePoolConnectionHandler = IdlePoolConnectionHandler()
576 | return connection.channel.pipeline.addHandler(idlePoolConnectionHandler, position: .last).flatMap {
577 | connection.channel.pipeline.addHandler(IdleStateHandler(writeTimeout: self.poolingTimeout), position: .before(idlePoolConnectionHandler))
| `- warning: conformance of 'IdleStateHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
578 | }
579 | }.flatMapError { error in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelHandlers.swift:397:1: note: conformance of 'IdleStateHandler' to 'Sendable' has been explicitly marked unavailable here
395 |
396 | @available(*, unavailable)
397 | extension IdleStateHandler: Sendable {}
| `- note: conformance of 'IdleStateHandler' to 'Sendable' has been explicitly marked unavailable here
398 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:577:135: warning: type 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
575 | let idlePoolConnectionHandler = IdlePoolConnectionHandler()
576 | return connection.channel.pipeline.addHandler(idlePoolConnectionHandler, position: .last).flatMap {
577 | connection.channel.pipeline.addHandler(IdleStateHandler(writeTimeout: self.poolingTimeout), position: .before(idlePoolConnectionHandler))
| `- warning: type 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
578 | }
579 | }.flatMapError { error in
:
1023 | }
1024 |
1025 | class IdlePoolConnectionHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol
1026 | typealias InboundIn = NIOAny
1027 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:571:21: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
569 | if let connection = self.connection {
570 | return connection.removeHandler(NIOHTTPResponseDecompressor.self).flatMap {
571 | connection.removeHandler(IdleStateHandler.self)
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
572 | }.flatMap {
573 | connection.removeHandler(TaskHandler<Delegate>.self)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:164:11: note: class 'Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:573:21: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
571 | connection.removeHandler(IdleStateHandler.self)
572 | }.flatMap {
573 | connection.removeHandler(TaskHandler<Delegate>.self)
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
574 | }.flatMap {
575 | let idlePoolConnectionHandler = IdlePoolConnectionHandler()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:164:11: note: class 'Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:576:28: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
574 | }.flatMap {
575 | let idlePoolConnectionHandler = IdlePoolConnectionHandler()
576 | return connection.channel.pipeline.addHandler(idlePoolConnectionHandler, position: .last).flatMap {
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
577 | connection.channel.pipeline.addHandler(IdleStateHandler(writeTimeout: self.poolingTimeout), position: .before(idlePoolConnectionHandler))
578 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:164:11: note: class 'Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:577:95: warning: capture of 'self' with non-sendable type 'HTTPClient.Task<Response>' in a '@Sendable' closure
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: generic class 'Task' does not conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
:
575 | let idlePoolConnectionHandler = IdlePoolConnectionHandler()
576 | return connection.channel.pipeline.addHandler(idlePoolConnectionHandler, position: .last).flatMap {
577 | connection.channel.pipeline.addHandler(IdleStateHandler(writeTimeout: self.poolingTimeout), position: .before(idlePoolConnectionHandler))
| `- warning: capture of 'self' with non-sendable type 'HTTPClient.Task<Response>' in a '@Sendable' closure
578 | }
579 | }.flatMapError { error in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:577:25: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
575 | let idlePoolConnectionHandler = IdlePoolConnectionHandler()
576 | return connection.channel.pipeline.addHandler(idlePoolConnectionHandler, position: .last).flatMap {
577 | connection.channel.pipeline.addHandler(IdleStateHandler(writeTimeout: self.poolingTimeout), position: .before(idlePoolConnectionHandler))
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
578 | }
579 | }.flatMapError { error in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:164:11: note: class 'Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:577:95: warning: capture of 'self' with non-sendable type 'HTTPClient.Task<Response>' in a '@Sendable' closure
486 | /// Response execution context. Will be created by the library and could be used for obtaining
487 | /// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
488 | public final class Task<Response>: TaskProtocol {
| `- note: generic class 'Task' does not conform to the 'Sendable' protocol
489 | /// The `EventLoop` the delegate will be executed on.
490 | public let eventLoop: EventLoop
:
575 | let idlePoolConnectionHandler = IdlePoolConnectionHandler()
576 | return connection.channel.pipeline.addHandler(idlePoolConnectionHandler, position: .last).flatMap {
577 | connection.channel.pipeline.addHandler(IdleStateHandler(writeTimeout: self.poolingTimeout), position: .before(idlePoolConnectionHandler))
| `- warning: capture of 'self' with non-sendable type 'HTTPClient.Task<Response>' in a '@Sendable' closure
578 | }
579 | }.flatMapError { error in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:577:135: warning: capture of 'idlePoolConnectionHandler' with non-sendable type 'IdlePoolConnectionHandler' in a '@Sendable' closure
575 | let idlePoolConnectionHandler = IdlePoolConnectionHandler()
576 | return connection.channel.pipeline.addHandler(idlePoolConnectionHandler, position: .last).flatMap {
577 | connection.channel.pipeline.addHandler(IdleStateHandler(writeTimeout: self.poolingTimeout), position: .before(idlePoolConnectionHandler))
| `- warning: capture of 'idlePoolConnectionHandler' with non-sendable type 'IdlePoolConnectionHandler' in a '@Sendable' closure
578 | }
579 | }.flatMapError { error in
:
1023 | }
1024 |
1025 | class IdlePoolConnectionHandler: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'IdlePoolConnectionHandler' does not conform to the 'Sendable' protocol
1026 | typealias InboundIn = NIOAny
1027 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:583:32: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
581 | // We may get this error if channel is released because it is
582 | // closed, it is safe to ignore it
583 | return connection.channel.eventLoop.makeSucceededFuture(())
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
584 | } else {
585 | return connection.channel.eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:164:11: note: class 'Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:588:21: warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
586 | }
587 | }.map {
588 | connection.release()
| `- warning: capture of 'connection' with non-sendable type 'ConnectionPool.Connection' in a '@Sendable' closure
589 | }.flatMapError { error in
590 | fatalError("Couldn't remove taskHandler: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/ConnectionPool.swift:164:11: note: class 'Connection' does not conform to the 'Sendable' protocol
162 | ///
163 | /// - Warning: `Connection` properties are not thread-safe and should be used with proper synchronization
164 | class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
165 | init(key: Key, channel: Channel, parentPool: ConnectionPool) {
166 | self.key = key
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:660:17: warning: capture of 'doIt()' with non-sendable type '<Delegate, Err where Delegate : HTTPClientResponseDelegate, Err : Error> () -> ()' in a '@Sendable' closure
658 | } else {
659 | self.task.eventLoop.execute {
660 | doIt()
| `- warning: capture of 'doIt()' with non-sendable type '<Delegate, Err where Delegate : HTTPClientResponseDelegate, Err : Error> () -> ()' in a '@Sendable' closure
661 | }
662 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:651:14: warning: concurrently-executed local function 'doIt()' must be marked as '@Sendable'
649 | func failTaskAndNotifyDelegate<Err: Error>(error: Err,
650 | _ body: @escaping (HTTPClient.Task<Delegate.Response>, Err) -> Void) {
651 | func doIt() {
| `- warning: concurrently-executed local function 'doIt()' must be marked as '@Sendable'
652 | body(self.task, error)
653 | self.task.fail(with: error, delegateType: Delegate.self)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:675:17: warning: capture of 'body' with non-sendable type '(HTTPClient.Task<Delegate.Response>, Value) -> Void' in a '@Sendable' closure
673 | } else {
674 | self.task.eventLoop.execute {
675 | body(self.task, value)
| |- warning: capture of 'body' with non-sendable type '(HTTPClient.Task<Delegate.Response>, Value) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
676 | }
677 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:675:22: warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
:
673 | } else {
674 | self.task.eventLoop.execute {
675 | body(self.task, value)
| `- warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
676 | }
677 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:675:33: warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
667 | }
668 |
669 | func callOutToDelegateFireAndForget<Value>(value: Value,
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
670 | _ body: @escaping (HTTPClient.Task<Delegate.Response>, Value) -> Void) {
671 | if self.task.eventLoop.inEventLoop {
:
673 | } else {
674 | self.task.eventLoop.execute {
675 | body(self.task, value)
| `- warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
676 | }
677 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:687:17: warning: capture of 'body' with non-sendable type '(HTTPClient.Task<Delegate.Response>, Value) -> EventLoopFuture<Void>' in a '@Sendable' closure
685 | } else {
686 | return self.task.eventLoop.submit {
687 | body(self.task, value)
| |- warning: capture of 'body' with non-sendable type '(HTTPClient.Task<Delegate.Response>, Value) -> EventLoopFuture<Void>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
688 | }.flatMap { $0 }.hop(to: channelEventLoop)
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:687:22: warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
:
685 | } else {
686 | return self.task.eventLoop.submit {
687 | body(self.task, value)
| `- warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
688 | }.flatMap { $0 }.hop(to: channelEventLoop)
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:687:33: warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
678 | }
679 |
680 | func callOutToDelegate<Value>(value: Value,
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
681 | channelEventLoop: EventLoop,
682 | _ body: @escaping (HTTPClient.Task<Delegate.Response>, Value) -> EventLoopFuture<Void>) -> EventLoopFuture<Void> {
:
685 | } else {
686 | return self.task.eventLoop.submit {
687 | body(self.task, value)
| `- warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
688 | }.flatMap { $0 }.hop(to: channelEventLoop)
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:708:17: warning: capture of 'doIt()' with non-sendable type '<Delegate, Response where Delegate : HTTPClientResponseDelegate, Response == Delegate.Response> () -> ()' in a '@Sendable' closure
706 | } else {
707 | self.task.eventLoop.submit {
708 | doIt()
| `- warning: capture of 'doIt()' with non-sendable type '<Delegate, Response where Delegate : HTTPClientResponseDelegate, Response == Delegate.Response> () -> ()' in a '@Sendable' closure
709 | }.cascadeFailure(to: promise)
710 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:694:14: warning: concurrently-executed local function 'doIt()' must be marked as '@Sendable'
692 | func callOutToDelegate<Response>(promise: EventLoopPromise<Response>? = nil,
693 | _ body: @escaping (HTTPClient.Task<Delegate.Response>) throws -> Response) where Response == Delegate.Response {
694 | func doIt() {
| `- warning: concurrently-executed local function 'doIt()' must be marked as '@Sendable'
695 | do {
696 | let result = try body(self.task)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:763:13: warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
:
761 |
762 | context.write(wrapOutboundOut(.head(head))).map {
763 | self.callOutToDelegateFireAndForget(value: head, self.delegate.didSendRequestHead)
| `- warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
764 | }.flatMap {
765 | self.writeBody(request: request, context: context)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:763:56: warning: reference to captured var 'head' in concurrently-executing code
761 |
762 | context.write(wrapOutboundOut(.head(head))).map {
763 | self.callOutToDelegateFireAndForget(value: head, self.delegate.didSendRequestHead)
| `- warning: reference to captured var 'head' in concurrently-executing code
764 | }.flatMap {
765 | self.writeBody(request: request, context: context)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:765:13: warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
:
763 | self.callOutToDelegateFireAndForget(value: head, self.delegate.didSendRequestHead)
764 | }.flatMap {
765 | self.writeBody(request: request, context: context)
| `- warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
766 | }.flatMap {
767 | context.eventLoop.assertInEventLoop()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:765:37: warning: capture of 'request' with non-sendable type 'TaskHandler<Delegate>.OutboundIn' (aka 'HTTPClient.Request') in a '@Sendable' closure
97 |
98 | /// Represent HTTP request.
99 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
100 | /// Represent kind of Request
101 | enum Kind {
:
763 | self.callOutToDelegateFireAndForget(value: head, self.delegate.didSendRequestHead)
764 | }.flatMap {
765 | self.writeBody(request: request, context: context)
| `- warning: capture of 'request' with non-sendable type 'TaskHandler<Delegate>.OutboundIn' (aka 'HTTPClient.Request') in a '@Sendable' closure
766 | }.flatMap {
767 | context.eventLoop.assertInEventLoop()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:765:55: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
763 | self.callOutToDelegateFireAndForget(value: head, self.delegate.didSendRequestHead)
764 | }.flatMap {
765 | self.writeBody(request: request, context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
766 | }.flatMap {
767 | context.eventLoop.assertInEventLoop()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:767:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
765 | self.writeBody(request: request, context: context)
766 | }.flatMap {
767 | context.eventLoop.assertInEventLoop()
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
768 | return context.writeAndFlush(self.wrapOutboundOut(.end(nil)))
769 | }.map {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:768:42: warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
:
766 | }.flatMap {
767 | context.eventLoop.assertInEventLoop()
768 | return context.writeAndFlush(self.wrapOutboundOut(.end(nil)))
| `- warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
769 | }.map {
770 | context.eventLoop.assertInEventLoop()
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:770:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
768 | return context.writeAndFlush(self.wrapOutboundOut(.end(nil)))
769 | }.map {
770 | context.eventLoop.assertInEventLoop()
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
771 | self.state = .sent
772 | self.callOutToDelegateFireAndForget(self.delegate.didSendRequest)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:771:13: warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
:
769 | }.map {
770 | context.eventLoop.assertInEventLoop()
771 | self.state = .sent
| `- warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
772 | self.callOutToDelegateFireAndForget(self.delegate.didSendRequest)
773 | }.flatMapErrorThrowing { error in
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:774:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
772 | self.callOutToDelegateFireAndForget(self.delegate.didSendRequest)
773 | }.flatMapErrorThrowing { error in
774 | context.eventLoop.assertInEventLoop()
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
775 | self.state = .end
776 | self.failTaskAndNotifyDelegate(error: error, self.delegate.didReceiveError)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:775:13: warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
:
773 | }.flatMapErrorThrowing { error in
774 | context.eventLoop.assertInEventLoop()
775 | self.state = .end
| `- warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
776 | self.failTaskAndNotifyDelegate(error: error, self.delegate.didReceiveError)
777 | throw error
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:789:17: warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
:
787 | context.eventLoop.assertInEventLoop()
788 | return context.writeAndFlush(self.wrapOutboundOut(.body(part))).map {
789 | self.callOutToDelegateFireAndForget(value: part, self.delegate.didSendRequestPart)
| `- warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
790 | }
791 | })
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:824:25: warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
:
822 | self.callOutToDelegate(value: head, channelEventLoop: context.eventLoop, self.delegate.didReceiveHead)
823 | .whenComplete { result in
824 | self.handleBackpressureResult(context: context, result: result)
| `- warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
825 | }
826 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:824:64: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
822 | self.callOutToDelegate(value: head, channelEventLoop: context.eventLoop, self.delegate.didReceiveHead)
823 | .whenComplete { result in
824 | self.handleBackpressureResult(context: context, result: result)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
825 | }
826 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:836:25: warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
:
834 | self.callOutToDelegate(value: body, channelEventLoop: context.eventLoop, self.delegate.didReceiveBodyPart)
835 | .whenComplete { result in
836 | self.handleBackpressureResult(context: context, result: result)
| `- warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
837 | }
838 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:836:64: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
834 | self.callOutToDelegate(value: body, channelEventLoop: context.eventLoop, self.delegate.didReceiveBodyPart)
835 | .whenComplete { result in
836 | self.handleBackpressureResult(context: context, result: result)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
837 | }
838 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:844:21: warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
611 | // MARK: - TaskHandler
612 |
613 | internal class TaskHandler<Delegate: HTTPClientResponseDelegate>: RemovableChannelHandler {
| `- note: generic class 'TaskHandler' does not conform to the 'Sendable' protocol
614 | enum State {
615 | case idle
:
842 | self.state = .end
843 | self.task.releaseAssociatedConnection(delegateType: Delegate.self).whenSuccess {
844 | self.redirectHandler?.redirect(status: head.status, to: redirectURL, promise: self.task.promise)
| `- warning: capture of 'self' with non-sendable type 'TaskHandler<Delegate>' in a '@Sendable' closure
845 | }
846 | default:
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:1016:29: warning: type 'ResponseType' does not conform to the 'Sendable' protocol
930 | // MARK: - RedirectHandler
931 |
932 | internal struct RedirectHandler<ResponseType> {
| `- note: consider making generic parameter 'ResponseType' conform to the 'Sendable' protocol
933 | let request: HTTPClient.Request
934 | let execute: (HTTPClient.Request) -> HTTPClient.Task<ResponseType>
:
1014 | self.execute(newRequest).futureResult.whenComplete { result in
1015 | promise.futureResult.eventLoop.execute {
1016 | promise.completeWith(result)
| `- warning: type 'ResponseType' does not conform to the 'Sendable' protocol
1017 | }
1018 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncHTTPClient/HTTPHandler.swift:1016:42: warning: capture of 'result' with non-sendable type 'Result<ResponseType, any Error>' in a '@Sendable' closure
930 | // MARK: - RedirectHandler
931 |
932 | internal struct RedirectHandler<ResponseType> {
| `- note: consider making generic parameter 'ResponseType' conform to the 'Sendable' protocol
933 | let request: HTTPClient.Request
934 | let execute: (HTTPClient.Request) -> HTTPClient.Task<ResponseType>
:
1014 | self.execute(newRequest).futureResult.whenComplete { result in
1015 | promise.futureResult.eventLoop.execute {
1016 | promise.completeWith(result)
| `- warning: capture of 'result' with non-sendable type 'Result<ResponseType, any Error>' in a '@Sendable' closure
1017 | }
1018 | }
Build complete! (29.16s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.13.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-nio-ssl",
"requirement" : {
"range" : [
{
"lower_bound" : "2.4.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio-ssl.git"
},
{
"identity" : "swift-nio-extras",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio-extras.git"
}
],
"manifest_display_name" : "async-http-client",
"name" : "async-http-client",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "AsyncHTTPClient",
"targets" : [
"AsyncHTTPClient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AsyncHTTPClientTests",
"module_type" : "SwiftTarget",
"name" : "AsyncHTTPClientTests",
"path" : "Tests/AsyncHTTPClientTests",
"product_dependencies" : [
"NIO",
"NIOConcurrencyHelpers",
"NIOSSL",
"NIOFoundationCompat",
"NIOTestUtils"
],
"sources" : [
"HTTPClientCookieTests+XCTest.swift",
"HTTPClientCookieTests.swift",
"HTTPClientInternalTests+XCTest.swift",
"HTTPClientInternalTests.swift",
"HTTPClientTestUtils.swift",
"HTTPClientTests+XCTest.swift",
"HTTPClientTests.swift",
"RequestValidationTests+XCTest.swift",
"RequestValidationTests.swift"
],
"target_dependencies" : [
"AsyncHTTPClient"
],
"type" : "test"
},
{
"c99name" : "AsyncHTTPClient",
"module_type" : "SwiftTarget",
"name" : "AsyncHTTPClient",
"path" : "Sources/AsyncHTTPClient",
"product_dependencies" : [
"NIO",
"NIOHTTP1",
"NIOSSL",
"NIOConcurrencyHelpers",
"NIOHTTPCompression",
"NIOFoundationCompat"
],
"product_memberships" : [
"AsyncHTTPClient"
],
"sources" : [
"ConnectionPool.swift",
"HTTPClient+HTTPCookie.swift",
"HTTPClient.swift",
"HTTPClientProxyHandler.swift",
"HTTPHandler.swift",
"RequestValidation.swift",
"Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.