Build Information
Successful build of async-http-client, reference master (3950c9
), with Swift 6.1 for Android on 29 May 2025 02:10:51 UTC.
Swift 6 data race errors: 4
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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 2>&1
Build Log
[28/430] Compiling fiat_p256_adx_sqr.S
[29/430] Compiling fiat_p256_adx_mul.S
[30/430] Compiling fiat_curve25519_adx_mul.S
[31/430] Write swift-version-24593BA9C3E375BF.txt
[32/430] Compiling CNIOLLHTTP c_nio_llhttp.c
[33/434] Compiling CNIOBoringSSLShims shims.c
[35/436] Emitting module _NIOBase64
[35/436] Compiling tls13_client.cc
[36/436] Compiling tls13_both.cc
[37/436] Compiling tls13_enc.cc
[38/436] Compiling tls13_server.cc
[39/436] Compiling tls_method.cc
[40/436] Compiling tls_record.cc
[42/450] Emitting module _NIODataStructures
[42/450] Compiling ssl_versions.cc
[43/450] Compiling ssl_stat.cc
[44/450] Compiling t1_enc.cc
[45/450] Compiling ssl_transcript.cc
[47/450] Compiling _NIOBase64 Base64.swift
[48/451] Compiling _NIODataStructures Heap.swift
[49/451] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[50/451] Compiling InternalCollectionsUtilities Debugging.swift
[51/451] Compiling InternalCollectionsUtilities Descriptions.swift
[52/451] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[54/452] Emitting module InternalCollectionsUtilities
[55/452] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[56/452] Compiling InternalCollectionsUtilities _SortedCollection.swift
[56/452] Compiling ssl_x509.cc
[58/452] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[59/452] Compiling InternalCollectionsUtilities Integer rank.swift
[60/452] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[61/452] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[62/452] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[63/452] Compiling InternalCollectionsUtilities UInt+reversed.swift
[64/452] Compiling _NIODataStructures PriorityQueue.swift
[65/452] Compiling _NIODataStructures _TinyArray.swift
[66/453] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[67/453] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[69/469] Compiling ssl_privkey.cc
[71/469] Compiling DequeModule _DequeBuffer.swift
[72/469] Compiling DequeModule _DequeBufferHeader.swift
[73/471] Compiling DequeModule Deque+Extras.swift
[74/471] Compiling DequeModule Deque+Hashable.swift
[75/471] Compiling DequeModule Deque+Equatable.swift
[76/471] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[77/471] Compiling DequeModule Deque+CustomReflectable.swift
[78/471] Compiling DequeModule Deque+Descriptions.swift
[79/471] Compiling DequeModule Deque+Testing.swift
[80/471] Compiling DequeModule Deque._Storage.swift
[81/471] Compiling DequeModule Deque._UnsafeHandle.swift
[82/471] Compiling DequeModule Deque.swift
[83/471] Compiling DequeModule Deque+Codable.swift
[84/471] Compiling DequeModule Deque+Collection.swift
[84/471] Compiling ssl_key_share.cc
[86/471] Compiling DequeModule _DequeSlot.swift
[87/471] Compiling DequeModule _UnsafeWrappedBuffer.swift
[88/471] Emitting module DequeModule
[88/471] Compiling ssl_cipher.cc
[89/472] Compiling ssl_credential.cc
[91/472] Compiling ssl_session.cc
[92/472] Compiling ssl_file.cc
[93/472] Compiling ssl_lib.cc
[94/472] Compiling ssl_cert.cc
[95/472] Compiling ssl_buffer.cc
[96/472] Compiling ssl_asn1.cc
[97/472] Compiling s3_both.cc
[98/472] Compiling s3_pkt.cc
[99/472] Compiling ssl_aead_ctx.cc
[100/472] Compiling s3_lib.cc
[101/472] Compiling handshake_server.cc
[102/472] Compiling handshake.cc
[103/472] Compiling handshake_client.cc
[104/472] Compiling encrypted_client_hello.cc
[105/472] Compiling handoff.cc
[106/472] Compiling extensions.cc
[107/472] Compiling md5-x86_64-linux.S
[108/472] Compiling dtls_method.cc
[109/472] Compiling md5-x86_64-apple.S
[110/472] Compiling md5-586-apple.S
[111/472] Compiling md5-586-linux.S
[112/472] Compiling d1_pkt.cc
[113/472] Compiling d1_srtp.cc
[114/472] Compiling chacha20_poly1305_x86_64-linux.S
[115/472] Compiling dtls_record.cc
[116/472] Compiling chacha20_poly1305_armv8-win.S
[116/472] Compiling chacha20_poly1305_x86_64-apple.S
[118/472] Compiling chacha20_poly1305_armv8-apple.S
[119/472] Compiling chacha-x86_64-linux.S
[120/472] Compiling chacha-x86-linux.S
[121/472] Compiling chacha20_poly1305_armv8-linux.S
[122/472] Compiling chacha-x86_64-apple.S
[123/472] Compiling chacha-x86-apple.S
[124/472] Compiling chacha-armv8-win.S
[125/472] Compiling chacha-armv8-apple.S
[126/472] Compiling chacha-armv8-linux.S
[127/472] Compiling chacha-armv4-linux.S
[128/472] Compiling d1_lib.cc
[129/472] Compiling aes128gcmsiv-x86_64-linux.S
[130/472] Compiling aes128gcmsiv-x86_64-apple.S
[131/472] Compiling x86_64-mont5-linux.S
[132/472] Compiling x86_64-mont5-apple.S
[133/472] Compiling x86_64-mont-linux.S
[134/472] Compiling x86-mont-linux.S
[135/472] Compiling x86_64-mont-apple.S
[136/472] Compiling x86-mont-apple.S
[137/472] Compiling vpaes-x86_64-linux.S
[138/472] Compiling vpaes-x86_64-apple.S
[139/472] Compiling vpaes-x86-linux.S
[140/472] Compiling vpaes-x86-apple.S
[141/472] Compiling vpaes-armv8-win.S
[142/472] Compiling vpaes-armv8-linux.S
[143/472] Compiling bio_ssl.cc
[144/472] Compiling vpaes-armv8-apple.S
[145/472] Compiling err_data.cc
[146/472] Compiling sha512-x86_64-apple.S
[147/472] Compiling vpaes-armv7-linux.S
[148/472] Compiling sha512-armv8-apple.S
[149/472] Compiling sha512-armv8-win.S
[149/472] Compiling sha512-x86_64-linux.S
[151/472] Compiling sha512-armv4-linux.S
[152/472] Compiling sha512-armv8-linux.S
[153/472] Compiling sha512-586-apple.S
[154/472] Compiling sha256-armv4-linux.S
[155/472] Compiling sha256-armv8-apple.S
[156/472] Compiling sha256-586-linux.S
[157/472] Compiling sha512-586-linux.S
[158/472] Compiling sha256-586-apple.S
[159/472] Compiling sha256-armv8-linux.S
[160/472] Compiling sha1-x86_64-apple.S
[161/472] Compiling sha1-x86_64-linux.S
[162/472] Compiling sha1-armv8-win.S
[163/472] Compiling sha1-586-linux.S
[164/472] Compiling sha1-armv8-apple.S
[165/472] Compiling sha1-armv4-large-linux.S
[166/472] Compiling sha1-armv8-linux.S
[167/472] Compiling rsaz-avx2-linux.S
[168/472] Compiling rsaz-avx2-apple.S
[169/472] Compiling sha1-586-apple.S
[170/472] Compiling rdrand-x86_64-linux.S
[171/472] Compiling rdrand-x86_64-apple.S
[172/472] Compiling p256_beeu-x86_64-asm-linux.S
[173/472] Compiling p256_beeu-x86_64-asm-apple.S
[174/472] Compiling p256_beeu-armv8-asm-win.S
[175/472] Compiling p256_beeu-armv8-asm-apple.S
[176/472] Compiling p256_beeu-armv8-asm-linux.S
[177/472] Compiling p256-x86_64-asm-linux.S
[178/472] Compiling p256-x86_64-asm-apple.S
[179/472] Compiling p256-armv8-asm-win.S
[180/472] Compiling p256-armv8-asm-linux.S
[181/472] Compiling p256-armv8-asm-apple.S
[182/472] Compiling ghashv8-armv8-win.S
[183/472] Compiling ghashv8-armv8-linux.S
[184/472] Compiling ghash-x86_64-linux.S
[185/472] Compiling ghashv8-armv7-linux.S
[186/472] Compiling ghashv8-armv8-apple.S
[187/472] Compiling ghash-x86_64-apple.S
[188/472] Compiling ghash-x86-apple.S
[189/472] Compiling ghash-x86-linux.S
[190/472] Compiling ghash-ssse3-x86_64-linux.S
[191/472] Compiling ghash-ssse3-x86_64-apple.S
[192/472] Compiling ghash-ssse3-x86-apple.S
[193/472] Compiling ghash-ssse3-x86-linux.S
[194/472] Compiling ghash-neon-armv8-win.S
[195/472] Compiling ghash-neon-armv8-linux.S
[196/472] Compiling ghash-neon-armv8-apple.S
[197/472] Compiling d1_both.cc
[198/472] Compiling co-586-linux.S
[199/472] Compiling ghash-armv4-linux.S
[199/472] Compiling co-586-apple.S
[201/472] Compiling bsaes-armv7-linux.S
[202/472] Compiling bn-armv8-win.S
[203/472] Compiling bn-armv8-linux.S
[204/472] Compiling bn-586-linux.S
[205/472] Compiling bn-armv8-apple.S
[206/472] Compiling armv8-mont-win.S
[207/472] Compiling armv8-mont-apple.S
[208/472] Compiling bn-586-apple.S
[209/472] Compiling armv8-mont-linux.S
[210/472] Compiling armv4-mont-linux.S
[211/472] Compiling aesv8-gcm-armv8-win.S
[212/472] Compiling aesv8-gcm-armv8-apple.S
[213/472] Compiling aesv8-gcm-armv8-linux.S
[214/472] Compiling aesv8-armv8-apple.S
[214/472] Compiling aesv8-armv8-linux.S
[216/472] Compiling aesni-x86_64-linux.S
[217/472] Compiling aesv8-armv7-linux.S
[218/472] Compiling aesv8-armv8-win.S
[218/472] Compiling aesni-x86_64-apple.S
[220/472] Compiling aesni-gcm-x86_64-linux.S
[221/472] Compiling aesni-gcm-x86_64-apple.S
[222/472] Compiling aesni-x86-linux.S
[223/472] Compiling aes-gcm-avx2-x86_64-linux.S
[224/472] Compiling aes-gcm-avx2-x86_64-apple.S
[225/472] Compiling aesni-x86-apple.S
[226/472] Compiling aes-gcm-avx10-x86_64-apple.S
[227/472] Compiling aes-gcm-avx10-x86_64-linux.S
[228/472] Compiling x_spki.cc
[229/472] Compiling x_pubkey.cc
[230/472] Compiling x_val.cc
[231/472] Compiling x_sig.cc
[232/472] Compiling x_req.cc
[233/472] Compiling x_x509a.cc
[234/472] Compiling x_x509.cc
[235/472] Compiling x_name.cc
[236/472] Compiling x_exten.cc
[237/472] Compiling x_algor.cc
[238/472] Compiling x_attrib.cc
[239/472] Compiling x_all.cc
[240/472] Compiling x_crl.cc
[241/472] Compiling x509rset.cc
[242/472] Compiling x509spki.cc
[243/472] Compiling x509name.cc
[244/472] Compiling x509_vpm.cc
[245/472] Compiling x509_trs.cc
[246/472] Compiling x509_txt.cc
[247/472] Compiling x509_set.cc
[248/472] Compiling x509cset.cc
[249/472] Compiling x509_v3.cc
[250/472] Compiling x509_vfy.cc
[251/472] Compiling x509_req.cc
[252/472] Compiling x509_lu.cc
[253/472] Compiling x509_obj.cc
[254/472] Compiling x509_d2.cc
[255/472] Compiling x509_def.cc
[256/472] Compiling x509.cc
[257/472] Compiling x509_ext.cc
[258/472] Compiling x509_att.cc
[259/472] Compiling x509_cmp.cc
[260/472] Compiling v3_purp.cc
[261/472] Compiling v3_utl.cc
[262/472] Compiling v3_pmaps.cc
[263/472] Compiling v3_pcons.cc
[264/472] Compiling v3_skey.cc
[265/472] Compiling v3_prn.cc
[266/472] Compiling v3_ncons.cc
[267/472] Compiling v3_ocsp.cc
[268/472] Compiling v3_lib.cc
[269/472] Compiling v3_info.cc
[270/472] Compiling v3_int.cc
[271/472] Compiling v3_extku.cc
[271/472] Compiling v3_genn.cc
[273/472] Compiling v3_ia5.cc
[274/472] Compiling v3_enum.cc
[275/472] Compiling v3_cpols.cc
[276/472] Compiling v3_crld.cc
[277/472] Compiling v3_conf.cc
[278/472] Compiling v3_bcons.cc
[279/472] Compiling v3_bitst.cc
[280/472] Compiling v3_alt.cc
[281/472] Compiling v3_akeya.cc
[282/472] Compiling v3_akey.cc
[283/472] Compiling t_x509a.cc
[284/472] Compiling t_x509.cc
[285/472] Compiling rsa_pss.cc
[286/472] Compiling i2d_pr.cc
[287/472] Compiling t_req.cc
[288/472] Compiling policy.cc
[289/472] Compiling name_print.cc
[290/472] Compiling t_crl.cc
[291/472] Compiling by_dir.cc
[292/472] Compiling by_file.cc
[293/472] Compiling asn1_gen.cc
[294/472] Compiling voprf.cc
[295/472] Compiling algorithm.cc
[296/472] Compiling a_verify.cc
[296/472] Compiling a_sign.cc
[297/472] Compiling a_digest.cc
[299/472] Compiling thread_win.cc
[300/472] Compiling trust_token.cc
[301/472] Compiling thread_none.cc
[302/472] Compiling thread_pthread.cc
[303/472] Compiling pmbtoken.cc
[304/472] Compiling thread.cc
[305/472] Compiling stack.cc
[306/472] Compiling spake2plus.cc
[307/472] Compiling sha256.cc
[308/472] Compiling slhdsa.cc
[309/472] Compiling siphash.cc
[310/472] Compiling rsa_print.cc
[311/472] Compiling sha1.cc
[312/472] Compiling sha512.cc
[313/472] Compiling rsa_extra.cc
[314/472] Compiling rsa_crypt.cc
[315/472] Compiling rc4.cc
[316/472] Compiling windows.cc
[317/472] Compiling refcount.cc
[318/472] Compiling trusty.cc
[319/472] Compiling rsa_asn1.cc
[320/472] Compiling rand.cc
[321/472] Compiling urandom.cc
[322/472] Compiling getentropy.cc
[323/472] Compiling passive.cc
[324/472] Compiling poly1305_arm_asm.S
[325/472] Compiling forkunsafe.cc
[326/472] Compiling ios.cc
[327/472] Compiling fork_detect.cc
[328/472] Compiling deterministic.cc
[329/472] Compiling poly1305_vec.cc
[330/472] Compiling poly1305.cc
[331/472] Compiling pool.cc
[332/472] Compiling poly1305_arm.cc
[333/472] Compiling pkcs8.cc
[334/472] Compiling pkcs8_x509.cc
[335/472] Compiling p5_pbev2.cc
[336/472] Compiling pkcs7.cc
[337/472] Compiling pkcs7_x509.cc
[338/472] Compiling pem_xaux.cc
[339/472] Compiling pem_pkey.cc
[340/472] Compiling pem_pk8.cc
[341/472] Compiling pem_x509.cc
[342/472] Compiling pem_oth.cc
[343/472] Compiling pem_lib.cc
[344/472] Compiling pem_all.cc
[345/472] Compiling obj_xref.cc
[346/472] Compiling mldsa.cc
[347/472] Compiling mem.cc
[348/472] Compiling mlkem.cc
[349/472] Compiling poly_rq_mul.S
[350/472] Compiling md5.cc
[351/472] Compiling fips_shared_support.cc
[352/472] Compiling md4.cc
[353/472] Compiling pem_info.cc
[354/472] Compiling obj.cc
[355/472] Compiling lhash.cc
[356/472] Compiling ex_data.cc
[357/472] Compiling sign.cc
[358/472] Compiling hpke.cc
[359/472] Compiling scrypt.cc
[360/472] Compiling print.cc
[361/472] Compiling kyber.cc
[362/472] Compiling hrss.cc
[363/472] Compiling pbkdf.cc
[364/472] Compiling p_x25519.cc
[365/472] Compiling p_ed25519_asn1.cc
[366/472] Compiling p_rsa.cc
[367/472] Compiling p_x25519_asn1.cc
[368/472] Compiling p_rsa_asn1.cc
[369/472] Compiling p_hkdf.cc
[370/472] Compiling p_ed25519.cc
[371/472] Compiling p_dh_asn1.cc
[372/472] Compiling p_ec.cc
[373/472] Compiling evp_ctx.cc
[374/472] Compiling p_ec_asn1.cc
[375/472] Compiling p_dh.cc
[376/472] Compiling p_dsa_asn1.cc
[377/472] Compiling evp.cc
[378/472] Compiling engine.cc
[379/472] Compiling evp_asn1.cc
[380/472] Compiling ecdh.cc
[381/472] Compiling err.cc
[382/472] Compiling ecdsa_asn1.cc
[383/472] Compiling hash_to_curve.cc
[384/472] Compiling ec_derive.cc
[385/472] Compiling dsa.cc
[386/472] Compiling dsa_asn1.cc
[387/472] Compiling bcm.cc
[388/472] Compiling params.cc
[389/472] Compiling x25519-asm-arm.S
[390/472] Compiling des.cc
[391/472] Compiling dh_asn1.cc
[392/472] Compiling ec_asn1.cc
[393/472] Compiling digest_extra.cc
[394/472] Compiling curve25519_64_adx.cc
[395/472] Compiling spake25519.cc
[396/472] Compiling curve25519.cc
[397/472] Compiling cpu_intel.cc
[398/472] Compiling cpu_arm_freebsd.cc
[398/472] Compiling cpu_arm_linux.cc
[400/472] Compiling cpu_aarch64_win.cc
[401/472] Compiling crypto.cc
[402/472] Compiling cpu_aarch64_sysreg.cc
[403/472] Compiling cpu_aarch64_openbsd.cc
[404/472] Compiling cpu_aarch64_linux.cc
[405/472] Compiling cpu_aarch64_apple.cc
[406/472] Compiling cpu_aarch64_fuchsia.cc
[407/472] Compiling get_cipher.cc
[408/472] Compiling tls_cbc.cc
[409/472] Compiling conf.cc
[410/472] Compiling e_tls.cc
[411/472] Compiling e_rc4.cc
[412/472] Compiling e_null.cc
[413/472] Compiling e_rc2.cc
[414/472] Compiling e_chacha20poly1305.cc
[415/472] Compiling e_des.cc
[416/472] Compiling derive_key.cc
[417/472] Compiling e_aesgcmsiv.cc
[418/472] Compiling e_aesctrhmac.cc
[419/472] Compiling unicode.cc
[420/472] Compiling chacha.cc
[421/472] Compiling cbs.cc
[422/472] Compiling buf.cc
[423/472] Compiling asn1_compat.cc
[424/472] Compiling bn_asn1.cc
[425/472] Compiling cbb.cc
[426/472] Compiling ber.cc
[427/472] Compiling blake2.cc
[428/472] Compiling socket_helper.cc
[429/472] Compiling socket.cc
[430/472] Compiling printf.cc
[431/472] Compiling convert.cc
[432/472] Compiling file.cc
[433/472] Compiling pair.cc
[434/472] Compiling hexdump.cc
[435/472] Compiling bio_mem.cc
[436/472] Compiling errno.cc
[437/472] Compiling connect.cc
[438/472] Compiling fd.cc
[439/472] Compiling bio.cc
[440/472] Compiling tasn_utl.cc
[441/472] Compiling base64.cc
[442/472] Compiling tasn_fre.cc
[443/472] Compiling posix_time.cc
[444/472] Compiling tasn_typ.cc
[445/472] Compiling tasn_enc.cc
[446/472] Compiling tasn_dec.cc
[447/472] Compiling f_string.cc
[448/472] Compiling tasn_new.cc
[449/472] Compiling asn1_par.cc
[450/472] Compiling f_int.cc
[451/472] Compiling asn_pack.cc
[452/472] Compiling a_type.cc
[453/472] Compiling asn1_lib.cc
[454/472] Compiling a_utctm.cc
[455/472] Compiling a_time.cc
[456/472] Compiling a_octet.cc
[457/472] Compiling a_strnid.cc
[458/472] Compiling a_strex.cc
[459/472] Compiling a_object.cc
[460/472] Compiling a_i2d_fp.cc
[461/472] Compiling a_dup.cc
[462/472] Compiling a_int.cc
[463/472] Write sources
[464/472] Compiling a_mbstr.cc
[464/472] Write sources
[466/472] Compiling a_d2i_fp.cc
[467/491] Compiling a_gentm.cc
[468/491] Compiling a_bitstr.cc
[469/491] Compiling a_bool.cc
[471/491] Compiling Atomics ManagedAtomic.swift
[472/491] Compiling Atomics ManagedAtomicLazyReference.swift
[473/493] Compiling Atomics UnsafeAtomic.swift
[474/493] Compiling Atomics UnsafeAtomicLazyReference.swift
[475/493] Compiling Atomics OptionalRawRepresentable.swift
[476/493] Compiling Atomics RawRepresentable.swift
[477/493] Compiling Atomics AtomicBool.swift
[478/493] Compiling Atomics AtomicMemoryOrderings.swift
[479/493] Compiling Atomics DoubleWord.swift
[480/493] Compiling Atomics Primitives.shims.swift
[481/493] Compiling Atomics AtomicInteger.swift
[482/493] Compiling Atomics AtomicOptionalWrappable.swift
[483/493] Compiling Atomics AtomicReference.swift
[484/493] Compiling Atomics AtomicStorage.swift
[485/493] Compiling Atomics AtomicValue.swift
[486/493] Compiling Atomics IntegerOperations.swift
[487/493] Compiling Atomics Unmanaged extensions.swift
[488/493] Compiling Atomics IntegerConformances.swift
[489/493] Compiling Atomics PointerConformances.swift
[490/493] Compiling Atomics Primitives.native.swift
[491/493] Emitting module Atomics
[492/494] Compiling c-nioatomics.c
[493/494] Compiling c-atomics.c
[495/500] Compiling NIOConcurrencyHelpers lock.swift
[496/500] Compiling NIOConcurrencyHelpers NIOLock.swift
[497/500] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[498/500] Emitting module NIOConcurrencyHelpers
[499/500] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[500/500] Compiling NIOConcurrencyHelpers atomics.swift
[502/561] Compiling NIOCore IO.swift
[503/561] Compiling NIOCore IOData.swift
[504/561] Compiling NIOCore IPProtocol.swift
[505/561] Compiling NIOCore IntegerBitPacking.swift
[506/561] Compiling NIOCore IntegerTypes.swift
[507/561] Compiling NIOCore Interfaces.swift
[508/561] Compiling NIOCore Linux.swift
[509/561] Compiling NIOCore MarkedCircularBuffer.swift
[510/569] Compiling NIOCore AddressedEnvelope.swift
[511/569] Compiling NIOCore AsyncAwaitSupport.swift
[512/569] Compiling NIOCore AsyncChannel.swift
[513/569] Compiling NIOCore AsyncChannelHandler.swift
[514/569] Compiling NIOCore AsyncChannelInboundStream.swift
[515/569] Compiling NIOCore AsyncChannelOutboundWriter.swift
[516/569] Compiling NIOCore NIOAsyncSequenceProducer.swift
[517/569] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[518/569] Compiling NIOCore NIOAsyncWriter.swift
[519/569] Compiling NIOCore CircularBuffer.swift
[520/569] Compiling NIOCore Codec.swift
[521/569] Compiling NIOCore ConvenienceOptionSupport.swift
[522/569] Compiling NIOCore DeadChannel.swift
[523/569] Compiling NIOCore DispatchQueue+WithFuture.swift
[524/569] Compiling NIOCore EventLoop+Deprecated.swift
[525/569] Compiling NIOCore EventLoop+SerialExecutor.swift
[526/569] Compiling NIOCore EventLoop.swift
[527/569] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[528/569] Compiling NIOCore EventLoopFuture+Deprecated.swift
[529/569] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[530/569] Compiling NIOCore EventLoopFuture.swift
[531/569] Compiling NIOCore FileDescriptor.swift
[532/569] Compiling NIOCore FileHandle.swift
[533/569] Compiling NIOCore FileRegion.swift
[534/569] Compiling NIOCore GlobalSingletons.swift
[535/569] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[536/569] Compiling NIOCore SocketAddresses.swift
[537/569] Compiling NIOCore SocketOptionProvider.swift
[538/569] Compiling NIOCore SystemCallHelpers.swift
[539/569] Compiling NIOCore TimeAmount+Duration.swift
[540/569] Compiling NIOCore TypeAssistedChannelHandler.swift
[541/569] Compiling NIOCore UniversalBootstrapSupport.swift
[542/569] Compiling NIOCore Utilities.swift
[543/569] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[544/569] Compiling NIOCore BSDSocketAPI.swift
[545/569] Compiling NIOCore ByteBuffer-aux.swift
[546/569] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[547/569] Compiling NIOCore ByteBuffer-conversions.swift
[548/569] Compiling NIOCore ByteBuffer-core.swift
[549/569] Compiling NIOCore ByteBuffer-hex.swift
[550/569] Compiling NIOCore ByteBuffer-int.swift
[551/569] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[552/569] Compiling NIOCore MulticastChannel.swift
[553/569] Compiling NIOCore NIOAny.swift
[554/569] Compiling NIOCore NIOCloseOnErrorHandler.swift
[555/569] Compiling NIOCore NIOLoopBound.swift
[556/569] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[557/569] Compiling NIOCore NIOScheduledCallback.swift
[558/569] Compiling NIOCore NIOSendable.swift
[559/569] Compiling NIOCore RecvByteBufferAllocator.swift
[560/569] Compiling NIOCore ByteBuffer-multi-int.swift
[561/569] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[562/569] Compiling NIOCore ByteBuffer-views.swift
[563/569] Compiling NIOCore Channel.swift
[564/569] Compiling NIOCore ChannelHandler.swift
[565/569] Compiling NIOCore ChannelHandlers.swift
[566/569] Compiling NIOCore ChannelInvoker.swift
[567/569] Compiling NIOCore ChannelOption.swift
[568/569] Compiling NIOCore ChannelPipeline.swift
[569/569] Emitting module NIOCore
[571/620] Compiling NIOEmbedded AsyncTestingChannel.swift
[572/620] Emitting module NIOEmbedded
[573/620] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[574/620] Compiling NIOEmbedded Embedded.swift
[576/621] Compiling NIOPosix Pool.swift
[577/621] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[578/621] Compiling NIOPosix PosixSingletons.swift
[579/621] Compiling NIOPosix RawSocketBootstrap.swift
[580/621] Compiling NIOPosix Resolver.swift
[581/621] Compiling NIOPosix Selectable.swift
[582/627] Compiling NIOPosix SelectableChannel.swift
[583/627] Compiling NIOPosix SelectableEventLoop.swift
[584/627] Compiling NIOPosix SelectorEpoll.swift
[585/627] Compiling NIOPosix SelectorGeneric.swift
[586/627] Compiling NIOPosix SelectorKqueue.swift
[587/627] Compiling NIOPosix SelectorUring.swift
[588/627] Compiling NIOPosix ServerSocket.swift
[589/627] Compiling NIOPosix Socket.swift
[590/627] Compiling NIOPosix SocketChannel.swift
[591/627] Compiling NIOPosix SocketProtocols.swift
[592/627] Compiling NIOPosix System.swift
[593/627] Compiling NIOPosix Thread.swift
[594/627] Compiling NIOPosix BSDSocketAPICommon.swift
[595/627] Compiling NIOPosix BSDSocketAPIPosix.swift
[596/627] Compiling NIOPosix BSDSocketAPIWindows.swift
[597/627] Compiling NIOPosix BaseSocket.swift
[598/627] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[599/627] Compiling NIOPosix BaseSocketChannel.swift
[600/627] Compiling NIOPosix BaseStreamSocketChannel.swift
[601/627] Emitting module NIOPosix
[602/627] Compiling NIOPosix IO.swift
[603/627] Compiling NIOPosix IntegerBitPacking.swift
[604/627] Compiling NIOPosix IntegerTypes.swift
[605/627] Compiling NIOPosix Linux.swift
[606/627] Compiling NIOPosix LinuxCPUSet.swift
[607/627] Compiling NIOPosix LinuxUring.swift
[608/627] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[609/627] Compiling NIOPosix Bootstrap.swift
[610/627] Compiling NIOPosix ControlMessage.swift
[611/627] Compiling NIOPosix DatagramVectorReadManager.swift
[612/627] Compiling NIOPosix Errors+Any.swift
[613/627] Compiling NIOPosix FileDescriptor.swift
[614/627] Compiling NIOPosix GetaddrinfoResolver.swift
[615/627] Compiling NIOPosix HappyEyeballs.swift
[616/627] Compiling NIOPosix NIOThreadPool.swift
[617/627] Compiling NIOPosix NonBlockingFileIO.swift
[618/627] Compiling NIOPosix PendingDatagramWritesManager.swift
[619/627] Compiling NIOPosix PendingWritesManager.swift
[620/627] Compiling NIOPosix PipeChannel.swift
[621/627] Compiling NIOPosix PipePair.swift
[622/627] Compiling NIOPosix ThreadPosix.swift
[623/627] Compiling NIOPosix ThreadWindows.swift
[624/627] Compiling NIOPosix UnsafeTransfer.swift
[625/627] Compiling NIOPosix Utilities.swift
[626/627] Compiling NIOPosix VsockAddress.swift
[627/627] Compiling NIOPosix VsockChannelEvents.swift
[629/630] Emitting module NIO
[630/630] Compiling NIO Exports.swift
[632/658] Emitting module NIOTLS
[633/658] Compiling NIOTLS TLSEvents.swift
[634/658] Compiling NIOTLS SNIHandler.swift
[635/658] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
[636/658] Compiling NIOTLS ProtocolNegotiationHandlerStateMachine.swift
[637/658] Compiling NIOTLS NIOTypedApplicationProtocolNegotiationHandler.swift
[639/659] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[640/659] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[641/690] Compiling NIOSSL ObjectIdentifier.swift
[642/690] Compiling NIOSSL PosixPort.swift
[643/690] Compiling NIOSSL LinuxCABundle.swift
[644/690] Compiling NIOSSL NIOSSLClientHandler.swift
[645/690] Compiling NIOSSL NIOSSLHandler+Configuration.swift
[646/690] Compiling NIOSSL NIOSSLHandler.swift
[647/690] Compiling NIOSSL IdentityVerification.swift
[648/690] Compiling NIOSSL NIOSSLServerHandler.swift
[649/690] Compiling NIOSSL SSLCallbacks.swift
[650/690] Compiling NIOSSL SSLCertificate.swift
[651/690] Compiling NIOSSL SSLConnection.swift
[652/690] Compiling NIOSSL SSLPrivateKey.swift
[653/690] Emitting module NIOHTTP1
[654/690] Compiling NIOSSL AndroidCABundle.swift
[655/690] Compiling NIOSSL ByteBufferBIO.swift
[656/690] Compiling NIOSSL CustomPrivateKey.swift
[659/698] Compiling NIOSSL SSLPublicKey.swift
[660/698] Compiling NIOSSL SecurityFrameworkCertificateVerification.swift
[661/698] Compiling NIOSSL String+unsafeUninitializedCapacity.swift
[662/702] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[663/702] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[664/702] Compiling NIOHTTPCompression HTTPResponseDecompressor.swift
[665/702] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[666/702] Emitting module NIOFoundationCompat
[667/702] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[668/702] Emitting module NIOHTTPCompression
[669/703] Compiling NIOHTTPCompression HTTPRequestCompressor.swift
[670/703] Emitting module NIOSSL
[680/703] Compiling NIOHTTPCompression HTTPCompression.swift
[681/703] Compiling NIOHTTPCompression HTTPDecompression.swift
[682/703] Compiling NIOHTTPCompression HTTPResponseCompressor.swift
[683/703] Compiling NIOHTTPCompression HTTPRequestDecompressor.swift
[684/704] Compiling NIOSSL SubjectAlternativeName.swift
[685/704] Compiling NIOSSL NIOSSLSecureBytes.swift
[686/704] Compiling NIOSSL RNG.swift
[687/704] Compiling NIOSSL SafeCompare.swift
[694/704] Compiling NIOSSL SSLCertificateExtensions.swift
[695/704] Compiling NIOSSL SSLCertificateName.swift
[697/704] Compiling NIOSSL SSLContext.swift
[698/704] Compiling NIOSSL SSLErrors.swift
[699/704] Compiling NIOSSL SSLInit.swift
[700/704] Compiling NIOSSL SSLPKCS12Bundle.swift
[701/704] Compiling NIOSSL Zeroization.swift
[702/704] Compiling NIOSSL TLSConfiguration.swift
[703/704] Compiling NIOSSL UniversalBootstrapSupport.swift
[704/704] Compiling NIOSSL UnsafeKeyAndChainTarget.swift
[706/713] Compiling AsyncHTTPClient RequestValidation.swift
[707/713] Compiling AsyncHTTPClient Utils.swift
/host/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(())
/host/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?
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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
[708/713] Compiling AsyncHTTPClient HTTPClient+HTTPCookie.swift
[709/713] Emitting module AsyncHTTPClient
/host/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) {
/host/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)
/host/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.
/host/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).
/host/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.
/host/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 |
/host/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 {
/host/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?
/host/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()
[710/713] Compiling AsyncHTTPClient ConnectionPool.swift
/host/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) {
/host/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)
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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
/host/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 {
/host/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 |
/host/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)
/host/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())
/host/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
/host/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(())
/host/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 {
/host/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
/host/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
/host/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 |
/host/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
/host/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
/host/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)
/host/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())
/host/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 {
/host/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
/host/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
/host/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 | }
/host/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 | }
/host/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.
/host/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 | }
/host/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 | }
/host/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.
/host/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)
/host/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):
/host/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):
/host/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
/host/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)
/host/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 {
/host/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 {
/host/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
/host/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
/host/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)
/host/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
/host/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
/host/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()
/host/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 | }
/host/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 | }
/host/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
/host/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 {
/host/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 | }
/host/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
/host/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 | }
/host/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 | }
/host/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):
/host/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
/host/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
/host/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 {
/host/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.
[711/713] Compiling AsyncHTTPClient HTTPClientProxyHandler.swift
/host/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 | }
/host/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
/host/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 |
/host/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>
[712/713] Compiling AsyncHTTPClient HTTPClient.swift
/host/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.
/host/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).
/host/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.
/host/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 {}
/host/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)")
/host/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 | }
/host/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 }
/host/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
/host/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)
/host/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
/host/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)
/host/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 {
/host/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)
/host/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)
/host/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 {
/host/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 |
/host/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 |
/host/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(())
/host/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 |
/host/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)
/host/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
/host/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`
/host/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 {
/host/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 | }
/host/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 | }
/host/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
/host/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 | }
/host/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 | }
/host/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
/host/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(())
/host/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,
/host/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
/host/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,
/host/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 {
/host/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)
/host/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)
/host/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>
/host/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 {
/host/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,
/host/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
/host/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,
/host/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 {
/host/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)
/host/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)
/host/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>
/host/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 {
/host/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 {
/host/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
/host/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 {
/host/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
/host/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`
/host/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 {
/host/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 |
/host/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
/host/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 | }
/host/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
/host/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
/host/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)
/host/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.
/host/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 | }
/host/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
/host/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 |
/host/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.
/host/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 |
/host/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
/host/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 |
/host/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
/host/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 | }
/host/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
/host/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] = [
/host/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)
/host/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
/host/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
/host/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) {
[713/713] Compiling AsyncHTTPClient HTTPHandler.swift
/host/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 |
/host/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 {
/host/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?
/host/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()
/host/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 | }
/host/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 |
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 |
/host/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
/host/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 |
/host/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 |
/host/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)
/host/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
/host/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()
/host/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
/host/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 | }
/host/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
/host/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
/host/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
/host/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
/host/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
/host/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 |
/host/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)
/host/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
/host/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)")
/host/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
/host/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 | }
/host/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)
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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)
/host/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)
/host/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)
/host/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()
/host/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()
/host/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()
/host/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>
/host/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 {
/host/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>
/host/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()
/host/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)
/host/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>
/host/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
/host/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)
/host/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>
/host/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
/host/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 | })
/host/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 | }
/host/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 | }
/host/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>
/host/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 | }
/host/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 | }
/host/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>
/host/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:
/host/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 | }
/host/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! (143.96s)
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" : "/host/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"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.