The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of redi-s, reference 0.6.0 (4ec4de), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 08:08:23 UTC.

Swift 6 data race errors: 18

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

 47 |           pubsub.subscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 48 |         }
 49 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:47:42: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 45 |         if !subscribedChannels.contains(key) {
 46 |           subscribedChannels.insert(key)
 47 |           pubsub.subscribe(key, handler: ctx.handler)
    |                                          `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 48 |         }
 49 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:56:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 54 |           ctx.handler.subscribedChannels!.insert(key)
 55 |           let count = ctx.handler.subscribedChannels!.count
 56 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 57 |                       RESPValue(bulkString: key),
 58 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 15 | import Dispatch
 16 | import NIO
 17 | import enum   NIORedis.RESPValue
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 18 | import struct Foundation.Data
 19 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:45:13: warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 43 |     pubsub.Q.async {
 44 |       for key in channelKeys {
 45 |         if !subscribedChannels.contains(key) {
    |             `- warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 46 |           subscribedChannels.insert(key)
 47 |           pubsub.subscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:46:11: warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 44 |       for key in channelKeys {
 45 |         if !subscribedChannels.contains(key) {
 46 |           subscribedChannels.insert(key)
    |           `- warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 47 |           pubsub.subscribe(key, handler: ctx.handler)
 48 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:51:14: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 49 |
 50 |         ctx.eventLoop.execute {
 51 |           if ctx.handler.subscribedChannels == nil {
    |              `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 52 |             ctx.handler.subscribedChannels = Set()
 53 |           }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:56:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 54 |           ctx.handler.subscribedChannels!.insert(key)
 55 |           let count = ctx.handler.subscribedChannels!.count
 56 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 57 |                       RESPValue(bulkString: key),
 58 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:78:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 76 |         if subscribedChannels.contains(key) {
 77 |           subscribedChannels.remove(key)
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 79 |         }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:78:44: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 76 |         if subscribedChannels.contains(key) {
 77 |           subscribedChannels.remove(key)
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |                                            `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 79 |         }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:84:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 82 |           ctx.handler.subscribedChannels?.remove(key)
 83 |           let count = ctx.handler.subscribedChannels?.count ?? 0
 84 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 85 |                       RESPValue(bulkString: key),
 86 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:76:12: warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 74 |     pubsub.Q.async {
 75 |       for key in channelKeys {
 76 |         if subscribedChannels.contains(key) {
    |            `- warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 77 |           subscribedChannels.remove(key)
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:77:11: warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 75 |       for key in channelKeys {
 76 |         if subscribedChannels.contains(key) {
 77 |           subscribedChannels.remove(key)
    |           `- warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
 79 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:82:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 80 |
 81 |         ctx.eventLoop.execute {
 82 |           ctx.handler.subscribedChannels?.remove(key)
    |           `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 83 |           let count = ctx.handler.subscribedChannels?.count ?? 0
 84 |           ctx.write([ subscribeCmd,
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:84:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 82 |           ctx.handler.subscribedChannels?.remove(key)
 83 |           let count = ctx.handler.subscribedChannels?.count ?? 0
 84 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 85 |                       RESPValue(bulkString: key),
 86 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:110:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
108 |         if !subscribedPatterns.contains(key) {
109 |           subscribedPatterns.insert(key)
110 |           pubsub.subscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
111 |         }
112 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:110:42: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
108 |         if !subscribedPatterns.contains(key) {
109 |           subscribedPatterns.insert(key)
110 |           pubsub.subscribe(key, handler: ctx.handler)
    |                                          `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
111 |         }
112 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:119:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
117 |           ctx.handler.subscribedPatterns!.insert(key)
118 |           let count = ctx.handler.subscribedPatterns!.count
119 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
120 |                       RESPValue.bulkString(bb),
121 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:108:13: warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
106 |     pubsub.Q.async {
107 |       for ( bb, key ) in patterns {
108 |         if !subscribedPatterns.contains(key) {
    |             `- warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
109 |           subscribedPatterns.insert(key)
110 |           pubsub.subscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:109:11: warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
107 |       for ( bb, key ) in patterns {
108 |         if !subscribedPatterns.contains(key) {
109 |           subscribedPatterns.insert(key)
    |           `- warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
110 |           pubsub.subscribe(key, handler: ctx.handler)
111 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:114:14: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
112 |
113 |         ctx.eventLoop.execute {
114 |           if ctx.handler.subscribedPatterns == nil {
    |              `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
115 |             ctx.handler.subscribedPatterns = Set()
116 |           }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:119:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
117 |           ctx.handler.subscribedPatterns!.insert(key)
118 |           let count = ctx.handler.subscribedPatterns!.count
119 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
120 |                       RESPValue.bulkString(bb),
121 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:145:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
143 |         if subscribedPatterns.contains(key) {
144 |           subscribedPatterns.remove(key)
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
146 |         }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:145:44: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
143 |         if subscribedPatterns.contains(key) {
144 |           subscribedPatterns.remove(key)
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |                                            `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
146 |         }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:151:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
149 |           ctx.handler.subscribedPatterns?.remove(key)
150 |           let count = ctx.handler.subscribedPatterns?.count ?? 0
151 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
152 |                       RESPValue.bulkString(bb),
153 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:143:12: warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
141 |     pubsub.Q.async {
142 |       for ( bb, key ) in patterns {
143 |         if subscribedPatterns.contains(key) {
    |            `- warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
144 |           subscribedPatterns.remove(key)
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:144:11: warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
142 |       for ( bb, key ) in patterns {
143 |         if subscribedPatterns.contains(key) {
144 |           subscribedPatterns.remove(key)
    |           `- warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
146 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:149:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
147 |
148 |         ctx.eventLoop.execute {
149 |           ctx.handler.subscribedPatterns?.remove(key)
    |           `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
150 |           let count = ctx.handler.subscribedPatterns?.count ?? 0
151 |           ctx.write([ subscribeCmd,
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:151:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
149 |           ctx.handler.subscribedPatterns?.remove(key)
150 |           let count = ctx.handler.subscribedPatterns?.count ?? 0
151 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
152 |                       RESPValue.bulkString(bb),
153 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:202:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
200 |         let pubSub = ctx.handler.server.pubSub
201 |         pubSub.Q.async {
202 |           ctx.write(pubSub.patternToEventLoopToSubscribers.count)
    |           `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
203 |         }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:202:21: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
200 |         let pubSub = ctx.handler.server.pubSub
201 |         pubSub.Q.async {
202 |           ctx.write(pubSub.patternToEventLoopToSubscribers.count)
    |                     `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
203 |         }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:218:30: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
216 |
217 |       for channel in channels {
218 |         guard let loop2Sub = pubSub.channelToEventLoopToSubscribers[channel],
    |                              `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
219 |                  !loop2Sub.isEmpty else {
220 |           channelCountPairs.append(RESPValue(bulkString: channel))
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:230:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
228 |       }
229 |
230 |       ctx.write(.array(channelCountPairs))
    |       `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
231 |     }
232 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:241:36: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
239 |       var channels = ContiguousArray<RESPValue>()
240 |
241 |       for ( channel, loop2Sub ) in pubSub.channelToEventLoopToSubscribers {
    |                                    `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
242 |         guard !loop2Sub.isEmpty                      else { continue }
243 |         if let pattern = pattern {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:257:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
255 |       }
256 |
257 |       ctx.write(.array(channels))
    |       `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
258 |     }
259 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
30 |
31 |     /// command may result in modifications
32 |     public static let write    = Flags(rawValue: 1 << 0)
   |                       |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'write' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 |     /// command will never modify keys
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
33 |
34 |     /// command will never modify keys
35 |     public static let readonly = Flags(rawValue: 1 << 1)
   |                       |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'readonly' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 |     /// reject command if currently OOM
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
36 |
37 |     /// reject command if currently OOM
38 |     public static let denyoom  = Flags(rawValue: 1 << 2)
   |                       |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'denyoom' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 |     /// server admin command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
39 |
40 |     /// server admin command
41 |     public static let admin    = Flags(rawValue: 1 << 3)
   |                       |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'admin' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 |     /// pubsub-related command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
42 |
43 |     /// pubsub-related command
44 |     public static let pubsub   = Flags(rawValue: 1 << 4)
   |                       |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'pubsub' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 |     /// deny this command from scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
45 |
46 |     /// deny this command from scripts
47 |     public static let noscript = Flags(rawValue: 1 << 5)
   |                       |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'noscript' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 |     /// command has random results, dangerous for scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
48 |
49 |     /// command has random results, dangerous for scripts
50 |     public static let random   = Flags(rawValue: 1 << 6)
   |                       |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 |     /// allow command while database is loading
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
51 |
52 |     /// allow command while database is loading
53 |     public static let loading  = Flags(rawValue: 1 << 7)
   |                       |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'loading' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 |     /// allow command while replica has stale data
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
54 |
55 |     /// allow command while replica has stale data
56 |     public static let stale    = Flags(rawValue: 1 << 8)
   |                       |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'stale' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 |     public static let fast     = Flags(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
56 |     public static let stale    = Flags(rawValue: 1 << 8)
57 |
58 |     public static let fast     = Flags(rawValue: 1 << 9)
   |                       |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'fast' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 |     public static let sortForScript = Flags(rawValue: 1 << 10)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
58 |     public static let fast     = Flags(rawValue: 1 << 9)
59 |
60 |     public static let sortForScript = Flags(rawValue: 1 << 10)
   |                       |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'sortForScript' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 |     public var stringArray : [ String ] {
[250/264] Compiling RedisServer PubSubCommands.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:28:19: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 26 |     let pubsub = ctx.handler.server.pubSub
 27 |     pubsub.Q.async {
 28 |       let count = pubsub.publish(channel, message)
    |                   `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 29 |       ctx.write(count)
 30 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:29:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 27 |     pubsub.Q.async {
 28 |       let count = pubsub.publish(channel, message)
 29 |       ctx.write(count)
    |       `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 30 |     }
 31 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:47:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 45 |         if !subscribedChannels.contains(key) {
 46 |           subscribedChannels.insert(key)
 47 |           pubsub.subscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 48 |         }
 49 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:47:42: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 45 |         if !subscribedChannels.contains(key) {
 46 |           subscribedChannels.insert(key)
 47 |           pubsub.subscribe(key, handler: ctx.handler)
    |                                          `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 48 |         }
 49 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:56:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 54 |           ctx.handler.subscribedChannels!.insert(key)
 55 |           let count = ctx.handler.subscribedChannels!.count
 56 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 57 |                       RESPValue(bulkString: key),
 58 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 15 | import Dispatch
 16 | import NIO
 17 | import enum   NIORedis.RESPValue
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 18 | import struct Foundation.Data
 19 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:45:13: warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 43 |     pubsub.Q.async {
 44 |       for key in channelKeys {
 45 |         if !subscribedChannels.contains(key) {
    |             `- warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 46 |           subscribedChannels.insert(key)
 47 |           pubsub.subscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:46:11: warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 44 |       for key in channelKeys {
 45 |         if !subscribedChannels.contains(key) {
 46 |           subscribedChannels.insert(key)
    |           `- warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 47 |           pubsub.subscribe(key, handler: ctx.handler)
 48 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:51:14: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 49 |
 50 |         ctx.eventLoop.execute {
 51 |           if ctx.handler.subscribedChannels == nil {
    |              `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 52 |             ctx.handler.subscribedChannels = Set()
 53 |           }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:56:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 54 |           ctx.handler.subscribedChannels!.insert(key)
 55 |           let count = ctx.handler.subscribedChannels!.count
 56 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 57 |                       RESPValue(bulkString: key),
 58 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:78:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 76 |         if subscribedChannels.contains(key) {
 77 |           subscribedChannels.remove(key)
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 79 |         }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:78:44: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 76 |         if subscribedChannels.contains(key) {
 77 |           subscribedChannels.remove(key)
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |                                            `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 79 |         }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:84:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 82 |           ctx.handler.subscribedChannels?.remove(key)
 83 |           let count = ctx.handler.subscribedChannels?.count ?? 0
 84 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 85 |                       RESPValue(bulkString: key),
 86 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:76:12: warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 74 |     pubsub.Q.async {
 75 |       for key in channelKeys {
 76 |         if subscribedChannels.contains(key) {
    |            `- warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 77 |           subscribedChannels.remove(key)
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:77:11: warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 75 |       for key in channelKeys {
 76 |         if subscribedChannels.contains(key) {
 77 |           subscribedChannels.remove(key)
    |           `- warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
 79 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:82:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 80 |
 81 |         ctx.eventLoop.execute {
 82 |           ctx.handler.subscribedChannels?.remove(key)
    |           `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 83 |           let count = ctx.handler.subscribedChannels?.count ?? 0
 84 |           ctx.write([ subscribeCmd,
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:84:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 82 |           ctx.handler.subscribedChannels?.remove(key)
 83 |           let count = ctx.handler.subscribedChannels?.count ?? 0
 84 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 85 |                       RESPValue(bulkString: key),
 86 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:110:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
108 |         if !subscribedPatterns.contains(key) {
109 |           subscribedPatterns.insert(key)
110 |           pubsub.subscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
111 |         }
112 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:110:42: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
108 |         if !subscribedPatterns.contains(key) {
109 |           subscribedPatterns.insert(key)
110 |           pubsub.subscribe(key, handler: ctx.handler)
    |                                          `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
111 |         }
112 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:119:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
117 |           ctx.handler.subscribedPatterns!.insert(key)
118 |           let count = ctx.handler.subscribedPatterns!.count
119 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
120 |                       RESPValue.bulkString(bb),
121 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:108:13: warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
106 |     pubsub.Q.async {
107 |       for ( bb, key ) in patterns {
108 |         if !subscribedPatterns.contains(key) {
    |             `- warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
109 |           subscribedPatterns.insert(key)
110 |           pubsub.subscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:109:11: warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
107 |       for ( bb, key ) in patterns {
108 |         if !subscribedPatterns.contains(key) {
109 |           subscribedPatterns.insert(key)
    |           `- warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
110 |           pubsub.subscribe(key, handler: ctx.handler)
111 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:114:14: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
112 |
113 |         ctx.eventLoop.execute {
114 |           if ctx.handler.subscribedPatterns == nil {
    |              `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
115 |             ctx.handler.subscribedPatterns = Set()
116 |           }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:119:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
117 |           ctx.handler.subscribedPatterns!.insert(key)
118 |           let count = ctx.handler.subscribedPatterns!.count
119 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
120 |                       RESPValue.bulkString(bb),
121 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:145:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
143 |         if subscribedPatterns.contains(key) {
144 |           subscribedPatterns.remove(key)
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
146 |         }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:145:44: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
143 |         if subscribedPatterns.contains(key) {
144 |           subscribedPatterns.remove(key)
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |                                            `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
146 |         }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:151:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
149 |           ctx.handler.subscribedPatterns?.remove(key)
150 |           let count = ctx.handler.subscribedPatterns?.count ?? 0
151 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
152 |                       RESPValue.bulkString(bb),
153 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:143:12: warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
141 |     pubsub.Q.async {
142 |       for ( bb, key ) in patterns {
143 |         if subscribedPatterns.contains(key) {
    |            `- warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
144 |           subscribedPatterns.remove(key)
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:144:11: warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
142 |       for ( bb, key ) in patterns {
143 |         if subscribedPatterns.contains(key) {
144 |           subscribedPatterns.remove(key)
    |           `- warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
146 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:149:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
147 |
148 |         ctx.eventLoop.execute {
149 |           ctx.handler.subscribedPatterns?.remove(key)
    |           `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
150 |           let count = ctx.handler.subscribedPatterns?.count ?? 0
151 |           ctx.write([ subscribeCmd,
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:151:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
149 |           ctx.handler.subscribedPatterns?.remove(key)
150 |           let count = ctx.handler.subscribedPatterns?.count ?? 0
151 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
152 |                       RESPValue.bulkString(bb),
153 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:202:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
200 |         let pubSub = ctx.handler.server.pubSub
201 |         pubSub.Q.async {
202 |           ctx.write(pubSub.patternToEventLoopToSubscribers.count)
    |           `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
203 |         }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:202:21: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
200 |         let pubSub = ctx.handler.server.pubSub
201 |         pubSub.Q.async {
202 |           ctx.write(pubSub.patternToEventLoopToSubscribers.count)
    |                     `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
203 |         }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:218:30: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
216 |
217 |       for channel in channels {
218 |         guard let loop2Sub = pubSub.channelToEventLoopToSubscribers[channel],
    |                              `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
219 |                  !loop2Sub.isEmpty else {
220 |           channelCountPairs.append(RESPValue(bulkString: channel))
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:230:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
228 |       }
229 |
230 |       ctx.write(.array(channelCountPairs))
    |       `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
231 |     }
232 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:241:36: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
239 |       var channels = ContiguousArray<RESPValue>()
240 |
241 |       for ( channel, loop2Sub ) in pubSub.channelToEventLoopToSubscribers {
    |                                    `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
242 |         guard !loop2Sub.isEmpty                      else { continue }
243 |         if let pattern = pattern {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:257:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
255 |       }
256 |
257 |       ctx.write(.array(channels))
    |       `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
258 |     }
259 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
30 |
31 |     /// command may result in modifications
32 |     public static let write    = Flags(rawValue: 1 << 0)
   |                       |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'write' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 |     /// command will never modify keys
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
33 |
34 |     /// command will never modify keys
35 |     public static let readonly = Flags(rawValue: 1 << 1)
   |                       |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'readonly' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 |     /// reject command if currently OOM
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
36 |
37 |     /// reject command if currently OOM
38 |     public static let denyoom  = Flags(rawValue: 1 << 2)
   |                       |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'denyoom' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 |     /// server admin command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
39 |
40 |     /// server admin command
41 |     public static let admin    = Flags(rawValue: 1 << 3)
   |                       |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'admin' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 |     /// pubsub-related command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
42 |
43 |     /// pubsub-related command
44 |     public static let pubsub   = Flags(rawValue: 1 << 4)
   |                       |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'pubsub' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 |     /// deny this command from scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
45 |
46 |     /// deny this command from scripts
47 |     public static let noscript = Flags(rawValue: 1 << 5)
   |                       |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'noscript' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 |     /// command has random results, dangerous for scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
48 |
49 |     /// command has random results, dangerous for scripts
50 |     public static let random   = Flags(rawValue: 1 << 6)
   |                       |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 |     /// allow command while database is loading
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
51 |
52 |     /// allow command while database is loading
53 |     public static let loading  = Flags(rawValue: 1 << 7)
   |                       |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'loading' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 |     /// allow command while replica has stale data
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
54 |
55 |     /// allow command while replica has stale data
56 |     public static let stale    = Flags(rawValue: 1 << 8)
   |                       |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'stale' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 |     public static let fast     = Flags(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
56 |     public static let stale    = Flags(rawValue: 1 << 8)
57 |
58 |     public static let fast     = Flags(rawValue: 1 << 9)
   |                       |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'fast' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 |     public static let sortForScript = Flags(rawValue: 1 << 10)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
58 |     public static let fast     = Flags(rawValue: 1 << 9)
59 |
60 |     public static let sortForScript = Flags(rawValue: 1 << 10)
   |                       |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'sortForScript' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 |     public var stringArray : [ String ] {
[251/264] Compiling RedisServer RedisCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:28:19: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 26 |     let pubsub = ctx.handler.server.pubSub
 27 |     pubsub.Q.async {
 28 |       let count = pubsub.publish(channel, message)
    |                   `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 29 |       ctx.write(count)
 30 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:29:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 27 |     pubsub.Q.async {
 28 |       let count = pubsub.publish(channel, message)
 29 |       ctx.write(count)
    |       `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 30 |     }
 31 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:47:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 45 |         if !subscribedChannels.contains(key) {
 46 |           subscribedChannels.insert(key)
 47 |           pubsub.subscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 48 |         }
 49 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:47:42: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 45 |         if !subscribedChannels.contains(key) {
 46 |           subscribedChannels.insert(key)
 47 |           pubsub.subscribe(key, handler: ctx.handler)
    |                                          `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 48 |         }
 49 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:56:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 54 |           ctx.handler.subscribedChannels!.insert(key)
 55 |           let count = ctx.handler.subscribedChannels!.count
 56 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 57 |                       RESPValue(bulkString: key),
 58 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 15 | import Dispatch
 16 | import NIO
 17 | import enum   NIORedis.RESPValue
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 18 | import struct Foundation.Data
 19 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:45:13: warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 43 |     pubsub.Q.async {
 44 |       for key in channelKeys {
 45 |         if !subscribedChannels.contains(key) {
    |             `- warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 46 |           subscribedChannels.insert(key)
 47 |           pubsub.subscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:46:11: warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 44 |       for key in channelKeys {
 45 |         if !subscribedChannels.contains(key) {
 46 |           subscribedChannels.insert(key)
    |           `- warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 47 |           pubsub.subscribe(key, handler: ctx.handler)
 48 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:51:14: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 49 |
 50 |         ctx.eventLoop.execute {
 51 |           if ctx.handler.subscribedChannels == nil {
    |              `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 52 |             ctx.handler.subscribedChannels = Set()
 53 |           }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:56:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 54 |           ctx.handler.subscribedChannels!.insert(key)
 55 |           let count = ctx.handler.subscribedChannels!.count
 56 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 57 |                       RESPValue(bulkString: key),
 58 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:78:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 76 |         if subscribedChannels.contains(key) {
 77 |           subscribedChannels.remove(key)
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
 79 |         }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:78:44: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 76 |         if subscribedChannels.contains(key) {
 77 |           subscribedChannels.remove(key)
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |                                            `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 79 |         }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:84:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 82 |           ctx.handler.subscribedChannels?.remove(key)
 83 |           let count = ctx.handler.subscribedChannels?.count ?? 0
 84 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 85 |                       RESPValue(bulkString: key),
 86 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:76:12: warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 74 |     pubsub.Q.async {
 75 |       for key in channelKeys {
 76 |         if subscribedChannels.contains(key) {
    |            `- warning: reference to captured var 'subscribedChannels' in concurrently-executing code
 77 |           subscribedChannels.remove(key)
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:77:11: warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 75 |       for key in channelKeys {
 76 |         if subscribedChannels.contains(key) {
 77 |           subscribedChannels.remove(key)
    |           `- warning: mutation of captured var 'subscribedChannels' in concurrently-executing code
 78 |           pubsub.unsubscribe(key, handler: ctx.handler)
 79 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:82:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 80 |
 81 |         ctx.eventLoop.execute {
 82 |           ctx.handler.subscribedChannels?.remove(key)
    |           `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
 83 |           let count = ctx.handler.subscribedChannels?.count ?? 0
 84 |           ctx.write([ subscribeCmd,
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:84:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 82 |           ctx.handler.subscribedChannels?.remove(key)
 83 |           let count = ctx.handler.subscribedChannels?.count ?? 0
 84 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
 85 |                       RESPValue(bulkString: key),
 86 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:110:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
108 |         if !subscribedPatterns.contains(key) {
109 |           subscribedPatterns.insert(key)
110 |           pubsub.subscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
111 |         }
112 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:110:42: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
108 |         if !subscribedPatterns.contains(key) {
109 |           subscribedPatterns.insert(key)
110 |           pubsub.subscribe(key, handler: ctx.handler)
    |                                          `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
111 |         }
112 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:119:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
117 |           ctx.handler.subscribedPatterns!.insert(key)
118 |           let count = ctx.handler.subscribedPatterns!.count
119 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
120 |                       RESPValue.bulkString(bb),
121 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:108:13: warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
106 |     pubsub.Q.async {
107 |       for ( bb, key ) in patterns {
108 |         if !subscribedPatterns.contains(key) {
    |             `- warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
109 |           subscribedPatterns.insert(key)
110 |           pubsub.subscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:109:11: warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
107 |       for ( bb, key ) in patterns {
108 |         if !subscribedPatterns.contains(key) {
109 |           subscribedPatterns.insert(key)
    |           `- warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
110 |           pubsub.subscribe(key, handler: ctx.handler)
111 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:114:14: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
112 |
113 |         ctx.eventLoop.execute {
114 |           if ctx.handler.subscribedPatterns == nil {
    |              `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
115 |             ctx.handler.subscribedPatterns = Set()
116 |           }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:119:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
117 |           ctx.handler.subscribedPatterns!.insert(key)
118 |           let count = ctx.handler.subscribedPatterns!.count
119 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
120 |                       RESPValue.bulkString(bb),
121 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:145:11: warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
143 |         if subscribedPatterns.contains(key) {
144 |           subscribedPatterns.remove(key)
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |           `- warning: capture of 'pubsub' with non-sendable type 'PubSub' in a '@Sendable' closure
146 |         }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:145:44: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
143 |         if subscribedPatterns.contains(key) {
144 |           subscribedPatterns.remove(key)
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
    |                                            `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
146 |         }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:151:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
149 |           ctx.handler.subscribedPatterns?.remove(key)
150 |           let count = ctx.handler.subscribedPatterns?.count ?? 0
151 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
152 |                       RESPValue.bulkString(bb),
153 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:143:12: warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
141 |     pubsub.Q.async {
142 |       for ( bb, key ) in patterns {
143 |         if subscribedPatterns.contains(key) {
    |            `- warning: reference to captured var 'subscribedPatterns' in concurrently-executing code
144 |           subscribedPatterns.remove(key)
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:144:11: warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
142 |       for ( bb, key ) in patterns {
143 |         if subscribedPatterns.contains(key) {
144 |           subscribedPatterns.remove(key)
    |           `- warning: mutation of captured var 'subscribedPatterns' in concurrently-executing code
145 |           pubsub.unsubscribe(key, handler: ctx.handler)
146 |         }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:149:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
147 |
148 |         ctx.eventLoop.execute {
149 |           ctx.handler.subscribedPatterns?.remove(key)
    |           `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
150 |           let count = ctx.handler.subscribedPatterns?.count ?? 0
151 |           ctx.write([ subscribeCmd,
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:151:23: warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
149 |           ctx.handler.subscribedPatterns?.remove(key)
150 |           let count = ctx.handler.subscribedPatterns?.count ?? 0
151 |           ctx.write([ subscribeCmd,
    |                       `- warning: capture of 'subscribeCmd' with non-sendable type 'RESPValue' in a '@Sendable' closure
152 |                       RESPValue.bulkString(bb),
153 |                       RESPValue.integer(count) ].toRESPValue())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:202:11: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
200 |         let pubSub = ctx.handler.server.pubSub
201 |         pubSub.Q.async {
202 |           ctx.write(pubSub.patternToEventLoopToSubscribers.count)
    |           `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
203 |         }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:202:21: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
200 |         let pubSub = ctx.handler.server.pubSub
201 |         pubSub.Q.async {
202 |           ctx.write(pubSub.patternToEventLoopToSubscribers.count)
    |                     `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
203 |         }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:218:30: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
216 |
217 |       for channel in channels {
218 |         guard let loop2Sub = pubSub.channelToEventLoopToSubscribers[channel],
    |                              `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
219 |                  !loop2Sub.isEmpty else {
220 |           channelCountPairs.append(RESPValue(bulkString: channel))
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:230:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
228 |       }
229 |
230 |       ctx.write(.array(channelCountPairs))
    |       `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
231 |     }
232 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:241:36: warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
239 |       var channels = ContiguousArray<RESPValue>()
240 |
241 |       for ( channel, loop2Sub ) in pubSub.channelToEventLoopToSubscribers {
    |                                    `- warning: capture of 'pubSub' with non-sendable type 'PubSub' in a '@Sendable' closure
242 |         guard !loop2Sub.isEmpty                      else { continue }
243 |         if let pattern = pattern {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:20:7: note: class 'PubSub' does not conform to the 'Sendable' protocol
 18 | import enum   NIORedis.RESPValue
 19 |
 20 | class PubSub {
    |       `- note: class 'PubSub' does not conform to the 'Sendable' protocol
 21 |
 22 |   typealias SubscriberList     = ContiguousArray<RedisCommandHandler>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/PubSubCommands.swift:257:7: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
255 |       }
256 |
257 |       ctx.write(.array(channels))
    |       `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a '@Sendable' closure
258 |     }
259 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 20 |  * The environment commands need to run.
 21 |  */
 22 | public struct RedisCommandContext {
    |               `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
 23 |
 24 |   let command   : RedisCommand
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
30 |
31 |     /// command may result in modifications
32 |     public static let write    = Flags(rawValue: 1 << 0)
   |                       |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'write' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 |     /// command will never modify keys
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
33 |
34 |     /// command will never modify keys
35 |     public static let readonly = Flags(rawValue: 1 << 1)
   |                       |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'readonly' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 |     /// reject command if currently OOM
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
36 |
37 |     /// reject command if currently OOM
38 |     public static let denyoom  = Flags(rawValue: 1 << 2)
   |                       |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'denyoom' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 |     /// server admin command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
39 |
40 |     /// server admin command
41 |     public static let admin    = Flags(rawValue: 1 << 3)
   |                       |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'admin' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 |     /// pubsub-related command
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
42 |
43 |     /// pubsub-related command
44 |     public static let pubsub   = Flags(rawValue: 1 << 4)
   |                       |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'pubsub' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 |     /// deny this command from scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
45 |
46 |     /// deny this command from scripts
47 |     public static let noscript = Flags(rawValue: 1 << 5)
   |                       |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'noscript' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 |     /// command has random results, dangerous for scripts
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
48 |
49 |     /// command has random results, dangerous for scripts
50 |     public static let random   = Flags(rawValue: 1 << 6)
   |                       |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 |     /// allow command while database is loading
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
51 |
52 |     /// allow command while database is loading
53 |     public static let loading  = Flags(rawValue: 1 << 7)
   |                       |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'loading' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 |     /// allow command while replica has stale data
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
54 |
55 |     /// allow command while replica has stale data
56 |     public static let stale    = Flags(rawValue: 1 << 8)
   |                       |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'stale' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 |     public static let fast     = Flags(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
56 |     public static let stale    = Flags(rawValue: 1 << 8)
57 |
58 |     public static let fast     = Flags(rawValue: 1 << 9)
   |                       |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'fast' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 |     public static let sortForScript = Flags(rawValue: 1 << 10)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 |   public let flags : Flags
24 |
25 |   public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
   |                 `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 |     public let rawValue : Int
   :
58 |     public static let fast     = Flags(rawValue: 1 << 9)
59 |
60 |     public static let sortForScript = Flags(rawValue: 1 << 10)
   |                       |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'sortForScript' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 |     public var stringArray : [ String ] {
[252/264] Compiling RedisServer RedisPattern.swift
[253/264] Compiling RedisServer Utilities.swift
[254/264] Compiling RedisServer Monitor.swift
[255/264] Compiling RedisServer Database.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:7: warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a '@Sendable' closure
120 |   func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 |     Q.async {
122 |       cb(self.lastSave, self.lastSaveDuration)
    |       |- warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a '@Sendable' closure
    |       `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
123 |     }
124 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:10: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
120 |   func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 |     Q.async {
122 |       cb(self.lastSave, self.lastSaveDuration)
    |          `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
123 |     }
124 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:132:9: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
130 |       let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
131 |       Q.async {
132 |         self.lastSave         = lastSave
    |         `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
133 |         self.lastSaveDuration = diff
134 |       }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:40: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
137 |       Q.async {
138 |         do {
139 |           let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
    |                                        `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
140 |           self.lastSave         = lastSave
141 |           self.lastSaveDuration = diff
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:59: warning: capture of 'databases' with non-sendable type 'Databases' in a '@Sendable' closure
137 |       Q.async {
138 |         do {
139 |           let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
    |                                                           `- warning: capture of 'databases' with non-sendable type 'Databases' in a '@Sendable' closure
140 |           self.lastSave         = lastSave
141 |           self.lastSaveDuration = diff
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/Database.swift:50:13: note: class 'Databases' does not conform to the 'Sendable' protocol
 48 |  *   Hashable etc.
 49 |  */
 50 | final class Databases : Codable {
    |             `- note: class 'Databases' does not conform to the 'Sendable' protocol
 51 |
 52 |   typealias SavePoints = ContiguousArray<SavePoint>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:196:53: warning: type 'Databases.Context' does not conform to the 'Sendable' protocol
194 |
195 |     let decoder = JSONDecoder()
196 |     decoder.userInfo[CodingUserInfoKey.dbContext] = dbContext
    |                                                     `- warning: type 'Databases.Context' does not conform to the 'Sendable' protocol
197 |
198 |     let dbs : Databases
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/Database.swift:55:15: note: class 'Context' does not conform to the 'Sendable' protocol
 53 |   typealias SavePoint  = RedisServer.Configuration.SavePoint
 54 |
 55 |   final class Context {
    |               `- note: class 'Context' does not conform to the 'Sendable' protocol
 56 |
 57 |     final fileprivate let expirationQueue =
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:29: warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
183 |                           // Careful: running in DB thread
184 |                           me.Q.async {
185 |                             me._scheduleSave(in: savePoint.delay)
    |                             `- warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
186 |                           }
187 |                         })
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:50: warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a '@Sendable' closure
183 |                           // Careful: running in DB thread
184 |                           me.Q.async {
185 |                             me._scheduleSave(in: savePoint.delay)
    |                                                  `- warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a '@Sendable' closure
186 |                           }
187 |                         })
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:32:19: note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
 30 |   open class Configuration {
 31 |
 32 |     public struct SavePoint {
    |                   `- note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
 33 |       public let delay       : TimeInterval
 34 |       public let changeCount : Int
[256/264] Compiling RedisServer DumpManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:7: warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a '@Sendable' closure
120 |   func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 |     Q.async {
122 |       cb(self.lastSave, self.lastSaveDuration)
    |       |- warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a '@Sendable' closure
    |       `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
123 |     }
124 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:10: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
120 |   func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 |     Q.async {
122 |       cb(self.lastSave, self.lastSaveDuration)
    |          `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
123 |     }
124 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:132:9: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
130 |       let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
131 |       Q.async {
132 |         self.lastSave         = lastSave
    |         `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
133 |         self.lastSaveDuration = diff
134 |       }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:40: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
137 |       Q.async {
138 |         do {
139 |           let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
    |                                        `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
140 |           self.lastSave         = lastSave
141 |           self.lastSaveDuration = diff
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:59: warning: capture of 'databases' with non-sendable type 'Databases' in a '@Sendable' closure
137 |       Q.async {
138 |         do {
139 |           let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
    |                                                           `- warning: capture of 'databases' with non-sendable type 'Databases' in a '@Sendable' closure
140 |           self.lastSave         = lastSave
141 |           self.lastSaveDuration = diff
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/Database.swift:50:13: note: class 'Databases' does not conform to the 'Sendable' protocol
 48 |  *   Hashable etc.
 49 |  */
 50 | final class Databases : Codable {
    |             `- note: class 'Databases' does not conform to the 'Sendable' protocol
 51 |
 52 |   typealias SavePoints = ContiguousArray<SavePoint>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:196:53: warning: type 'Databases.Context' does not conform to the 'Sendable' protocol
194 |
195 |     let decoder = JSONDecoder()
196 |     decoder.userInfo[CodingUserInfoKey.dbContext] = dbContext
    |                                                     `- warning: type 'Databases.Context' does not conform to the 'Sendable' protocol
197 |
198 |     let dbs : Databases
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/Database.swift:55:15: note: class 'Context' does not conform to the 'Sendable' protocol
 53 |   typealias SavePoint  = RedisServer.Configuration.SavePoint
 54 |
 55 |   final class Context {
    |               `- note: class 'Context' does not conform to the 'Sendable' protocol
 56 |
 57 |     final fileprivate let expirationQueue =
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:29: warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
183 |                           // Careful: running in DB thread
184 |                           me.Q.async {
185 |                             me._scheduleSave(in: savePoint.delay)
    |                             `- warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
186 |                           }
187 |                         })
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:50: warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a '@Sendable' closure
183 |                           // Careful: running in DB thread
184 |                           me.Q.async {
185 |                             me._scheduleSave(in: savePoint.delay)
    |                                                  `- warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a '@Sendable' closure
186 |                           }
187 |                         })
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:32:19: note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
 30 |   open class Configuration {
 31 |
 32 |     public struct SavePoint {
    |                   `- note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
 33 |       public let delay       : TimeInterval
 34 |       public let changeCount : Int
[257/264] Compiling RedisServer RedisLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:7: warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a '@Sendable' closure
120 |   func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 |     Q.async {
122 |       cb(self.lastSave, self.lastSaveDuration)
    |       |- warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a '@Sendable' closure
    |       `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
123 |     }
124 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:10: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
120 |   func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 |     Q.async {
122 |       cb(self.lastSave, self.lastSaveDuration)
    |          `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
123 |     }
124 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:132:9: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
130 |       let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
131 |       Q.async {
132 |         self.lastSave         = lastSave
    |         `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
133 |         self.lastSaveDuration = diff
134 |       }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:40: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
137 |       Q.async {
138 |         do {
139 |           let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
    |                                        `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
140 |           self.lastSave         = lastSave
141 |           self.lastSaveDuration = diff
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:59: warning: capture of 'databases' with non-sendable type 'Databases' in a '@Sendable' closure
137 |       Q.async {
138 |         do {
139 |           let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
    |                                                           `- warning: capture of 'databases' with non-sendable type 'Databases' in a '@Sendable' closure
140 |           self.lastSave         = lastSave
141 |           self.lastSaveDuration = diff
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/Database.swift:50:13: note: class 'Databases' does not conform to the 'Sendable' protocol
 48 |  *   Hashable etc.
 49 |  */
 50 | final class Databases : Codable {
    |             `- note: class 'Databases' does not conform to the 'Sendable' protocol
 51 |
 52 |   typealias SavePoints = ContiguousArray<SavePoint>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:196:53: warning: type 'Databases.Context' does not conform to the 'Sendable' protocol
194 |
195 |     let decoder = JSONDecoder()
196 |     decoder.userInfo[CodingUserInfoKey.dbContext] = dbContext
    |                                                     `- warning: type 'Databases.Context' does not conform to the 'Sendable' protocol
197 |
198 |     let dbs : Databases
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/Database.swift:55:15: note: class 'Context' does not conform to the 'Sendable' protocol
 53 |   typealias SavePoint  = RedisServer.Configuration.SavePoint
 54 |
 55 |   final class Context {
    |               `- note: class 'Context' does not conform to the 'Sendable' protocol
 56 |
 57 |     final fileprivate let expirationQueue =
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:29: warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
 50 | }
 51 |
 52 | class SimpleJSONDumpManager : DumpManager {
    |       `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
 53 |
 54 |   let Q      = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
    :
183 |                           // Careful: running in DB thread
184 |                           me.Q.async {
185 |                             me._scheduleSave(in: savePoint.delay)
    |                             `- warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a '@Sendable' closure
186 |                           }
187 |                         })
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:50: warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a '@Sendable' closure
183 |                           // Careful: running in DB thread
184 |                           me.Q.async {
185 |                             me._scheduleSave(in: savePoint.delay)
    |                                                  `- warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a '@Sendable' closure
186 |                           }
187 |                         })
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:32:19: note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
 30 |   open class Configuration {
 31 |
 32 |     public struct SavePoint {
    |                   `- note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
 33 |       public let delay       : TimeInterval
 34 |       public let changeCount : Int
[258/264] Compiling RedisServer PubSub.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:60:29: warning: capture of 'subscribers' with non-sendable type 'PubSub.SubscriberList' (aka 'ContiguousArray<RedisCommandHandler>') in a '@Sendable' closure
 58 |
 59 |         loop.execute {
 60 |           for subscriber in subscribers {
    |                             `- warning: capture of 'subscribers' with non-sendable type 'PubSub.SubscriberList' (aka 'ContiguousArray<RedisCommandHandler>') in a '@Sendable' closure
 61 |             subscriber.handleNotification(messagePayload)
 62 |           }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:61:43: warning: capture of 'messagePayload' with non-sendable type 'RESPValue' in a '@Sendable' closure
 59 |         loop.execute {
 60 |           for subscriber in subscribers {
 61 |             subscriber.handleNotification(messagePayload)
    |                                           `- warning: capture of 'messagePayload' with non-sendable type 'RESPValue' in a '@Sendable' closure
 62 |           }
 63 |         }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 16 | import struct Foundation.Data
 17 | import struct NIO.ByteBuffer
 18 | import enum   NIORedis.RESPValue
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 19 |
 20 | class PubSub {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:126:9: warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
124 |     else {
125 |       eventLoop.execute {
126 |         handler.write(context: context, value: value.toRESPValue(),
    |         `- warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
127 |                       promise: nil)
128 |         if flush { context.channel.flush() }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:126:32: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
124 |     else {
125 |       eventLoop.execute {
126 |         handler.write(context: context, value: value.toRESPValue(),
    |                                `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
127 |                       promise: nil)
128 |         if flush { context.channel.flush() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 |     // visible for ChannelPipeline to modify
1788 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:126:48: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
114 |   @_specialize(where T == Int)
115 |   @_specialize(where T == String)
116 |   func write<T: RESPEncodable>(_ value: T, flush: Bool = true) {
    |              `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
117 |     let context = self.context
118 |     let handler = self.handler
    :
124 |     else {
125 |       eventLoop.execute {
126 |         handler.write(context: context, value: value.toRESPValue(),
    |                                                `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
127 |                       promise: nil)
128 |         if flush { context.channel.flush() }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:143:9: warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
141 |     else {
142 |       eventLoop.execute {
143 |         handler.write(context: context, value: value, promise: nil)
    |         `- warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
144 |         if flush { context.channel.flush() }
145 |       }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:143:32: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
141 |     else {
142 |       eventLoop.execute {
143 |         handler.write(context: context, value: value, promise: nil)
    |                                `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
144 |         if flush { context.channel.flush() }
145 |       }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 |     // visible for ChannelPipeline to modify
1788 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:143:48: warning: capture of 'value' with non-sendable type 'RESPValue' in a '@Sendable' closure
141 |     else {
142 |       eventLoop.execute {
143 |         handler.write(context: context, value: value, promise: nil)
    |                                                `- warning: capture of 'value' with non-sendable type 'RESPValue' in a '@Sendable' closure
144 |         if flush { context.channel.flush() }
145 |       }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 14 |
 15 | import NIO
 16 | import NIORedis
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 17 | import struct Foundation.Data
 18 |
[259/264] Compiling RedisServer RedisCommandContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:60:29: warning: capture of 'subscribers' with non-sendable type 'PubSub.SubscriberList' (aka 'ContiguousArray<RedisCommandHandler>') in a '@Sendable' closure
 58 |
 59 |         loop.execute {
 60 |           for subscriber in subscribers {
    |                             `- warning: capture of 'subscribers' with non-sendable type 'PubSub.SubscriberList' (aka 'ContiguousArray<RedisCommandHandler>') in a '@Sendable' closure
 61 |             subscriber.handleNotification(messagePayload)
 62 |           }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:61:43: warning: capture of 'messagePayload' with non-sendable type 'RESPValue' in a '@Sendable' closure
 59 |         loop.execute {
 60 |           for subscriber in subscribers {
 61 |             subscriber.handleNotification(messagePayload)
    |                                           `- warning: capture of 'messagePayload' with non-sendable type 'RESPValue' in a '@Sendable' closure
 62 |           }
 63 |         }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/PubSub.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 16 | import struct Foundation.Data
 17 | import struct NIO.ByteBuffer
 18 | import enum   NIORedis.RESPValue
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 19 |
 20 | class PubSub {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:126:9: warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
124 |     else {
125 |       eventLoop.execute {
126 |         handler.write(context: context, value: value.toRESPValue(),
    |         `- warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
127 |                       promise: nil)
128 |         if flush { context.channel.flush() }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:126:32: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
124 |     else {
125 |       eventLoop.execute {
126 |         handler.write(context: context, value: value.toRESPValue(),
    |                                `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
127 |                       promise: nil)
128 |         if flush { context.channel.flush() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 |     // visible for ChannelPipeline to modify
1788 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:126:48: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
114 |   @_specialize(where T == Int)
115 |   @_specialize(where T == String)
116 |   func write<T: RESPEncodable>(_ value: T, flush: Bool = true) {
    |              `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
117 |     let context = self.context
118 |     let handler = self.handler
    :
124 |     else {
125 |       eventLoop.execute {
126 |         handler.write(context: context, value: value.toRESPValue(),
    |                                                `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
127 |                       promise: nil)
128 |         if flush { context.channel.flush() }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:143:9: warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
141 |     else {
142 |       eventLoop.execute {
143 |         handler.write(context: context, value: value, promise: nil)
    |         `- warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
144 |         if flush { context.channel.flush() }
145 |       }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:143:32: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
141 |     else {
142 |       eventLoop.execute {
143 |         handler.write(context: context, value: value, promise: nil)
    |                                `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
144 |         if flush { context.channel.flush() }
145 |       }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 |     // visible for ChannelPipeline to modify
1788 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:143:48: warning: capture of 'value' with non-sendable type 'RESPValue' in a '@Sendable' closure
141 |     else {
142 |       eventLoop.execute {
143 |         handler.write(context: context, value: value, promise: nil)
    |                                                `- warning: capture of 'value' with non-sendable type 'RESPValue' in a '@Sendable' closure
144 |         if flush { context.channel.flush() }
145 |       }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 14 |
 15 | import NIO
 16 | import NIORedis
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 17 | import struct Foundation.Data
 18 |
[260/264] Compiling RedisServer RedisCommandHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:82:11: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
    :
 80 |       server.pubSub.Q.async {
 81 |         for channel in channels {
 82 |           self.server.pubSub.unsubscribe(channel, handler: self)
    |           `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
 83 |         }
 84 |       }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:91:11: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
    :
 89 |       server.pubSub.Q.async {
 90 |         for pattern in patterns {
 91 |           self.server.pubSub.unsubscribe(pattern, handler: self)
    |           `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
 92 |         }
 93 |       }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:99:7: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
    :
 97 |
 98 |     server.Q.async {
 99 |       self.server._unregisterClient(self)
    |       `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
100 |     }
101 |     self.channel   = nil
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:113:13: warning: type 'RESPValue' does not conform to the 'Sendable' protocol
111 |     }
112 |
113 |     channel.writeAndFlush(payload, promise: nil)
    |             `- warning: type 'RESPValue' does not conform to the 'Sendable' protocol
114 |   }
115 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 14 |
 15 | import NIO
 16 | import NIORedis
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 17 | import class Atomics.ManagedAtomic
 18 | import struct Foundation.Data
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:98:20: warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 24 | public let DefaultRedisPort = 6379
 25 |
 26 | open class RedisServer {
    |            `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
 27 |
 28 |   public typealias Command = RedisCommand
    :
 96 |     Q.async { // Safe? Unsafe. No idea. Probably not :-)
 97 |       // TODO: I think the proper trick is to use a pipe here.
 98 |       if let dbs = self.databases {
    |                    `- warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 99 |         do {
100 |           self.logger.warn("User requested shutdown...")
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:230:17: warning: type 'RESPValue' does not conform to the 'Sendable' protocol
228 |         guard client.isMonitoring.load(ordering: .relaxed) else { continue }
229 |         guard let channel = client.channel                 else { continue }
230 |         channel.writeAndFlush(logPacket, promise: nil)
    |                 `- warning: type 'RESPValue' does not conform to the 'Sendable' protocol
231 |       }
232 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:21:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 19 | import class  Foundation.JSONDecoder
 20 | import class  Atomics.ManagedAtomic
 21 | import enum   NIORedis.RESPValue
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 22 | import NIO
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:227:28: warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 24 | public let DefaultRedisPort = 6379
 25 |
 26 | open class RedisServer {
    |            `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
 27 |
 28 |   public typealias Command = RedisCommand
    :
225 |
226 |     Q.async {
227 |       for ( _, client ) in self.clients {
    |                            `- warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
228 |         guard client.isMonitoring.load(ordering: .relaxed) else { continue }
229 |         guard let channel = client.channel                 else { continue }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:230:31: warning: capture of 'logPacket' with non-sendable type 'RESPValue' in a '@Sendable' closure
228 |         guard client.isMonitoring.load(ordering: .relaxed) else { continue }
229 |         guard let channel = client.channel                 else { continue }
230 |         channel.writeAndFlush(logPacket, promise: nil)
    |                               `- warning: capture of 'logPacket' with non-sendable type 'RESPValue' in a '@Sendable' closure
231 |       }
232 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:251:23: warning: conformance of 'BackPressureHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
249 |       .childChannelInitializer { channel in
250 |         channel.pipeline
251 |           .addHandler(BackPressureHandler() /* Oh well :-) */,
    |                       `- warning: conformance of 'BackPressureHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
252 |                       name: "com.apple.nio.backpressure")
253 |           .flatMap {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelHandlers.swift:179:1: note: conformance of 'BackPressureHandler' to 'Sendable' has been explicitly marked unavailable here
177 |
178 | @available(*, unavailable)
179 | extension BackPressureHandler: Sendable {}
    | `- note: conformance of 'BackPressureHandler' to 'Sendable' has been explicitly marked unavailable here
180 |
181 | /// Triggers an IdleStateEvent when a Channel has not performed read, write, or both operation for a while.
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:262:27: warning: type 'RedisCommandHandler' does not conform to the 'Sendable' protocol
260 |
261 |             return channel.pipeline
262 |               .addHandler(handler, name:"de.zeezide.nio.redis.server.client")
    |                           `- warning: type 'RedisCommandHandler' does not conform to the 'Sendable' protocol
263 |           }
264 |       }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:255:64: warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 24 | public let DefaultRedisPort = 6379
 25 |
 26 | open class RedisServer {
    |            `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
 27 |
 28 |   public typealias Command = RedisCommand
    :
253 |           .flatMap {
254 |             let cid     = clientID.wrappingIncrementThenLoad(ordering: .relaxed)
255 |             let handler = RedisCommandHandler(id: cid, server: self)
    |                                                                `- warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
256 |
257 |             self.Q.async {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:255:64: warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 24 | public let DefaultRedisPort = 6379
 25 |
 26 | open class RedisServer {
    |            `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
 27 |
 28 |   public typealias Command = RedisCommand
    :
253 |           .flatMap {
254 |             let cid     = clientID.wrappingIncrementThenLoad(ordering: .relaxed)
255 |             let handler = RedisCommandHandler(id: cid, server: self)
    |                                                                `- warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
256 |
257 |             self.Q.async {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:258:15: warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 24 | public let DefaultRedisPort = 6379
 25 |
 26 | open class RedisServer {
    |            `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
 27 |
 28 |   public typealias Command = RedisCommand
    :
256 |
257 |             self.Q.async {
258 |               self._registerClient(handler)
    |               `- warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
259 |             }
260 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:258:36: warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
256 |
257 |             self.Q.async {
258 |               self._registerClient(handler)
    |                                    `- warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
259 |             }
260 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
[261/264] Compiling RedisServer RedisServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:82:11: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
    :
 80 |       server.pubSub.Q.async {
 81 |         for channel in channels {
 82 |           self.server.pubSub.unsubscribe(channel, handler: self)
    |           `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
 83 |         }
 84 |       }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:91:11: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
    :
 89 |       server.pubSub.Q.async {
 90 |         for pattern in patterns {
 91 |           self.server.pubSub.unsubscribe(pattern, handler: self)
    |           `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
 92 |         }
 93 |       }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:99:7: warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
    :
 97 |
 98 |     server.Q.async {
 99 |       self.server._unregisterClient(self)
    |       `- warning: capture of 'self' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
100 |     }
101 |     self.channel   = nil
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:113:13: warning: type 'RESPValue' does not conform to the 'Sendable' protocol
111 |     }
112 |
113 |     channel.writeAndFlush(payload, promise: nil)
    |             `- warning: type 'RESPValue' does not conform to the 'Sendable' protocol
114 |   }
115 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 14 |
 15 | import NIO
 16 | import NIORedis
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 17 | import class Atomics.ManagedAtomic
 18 | import struct Foundation.Data
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:98:20: warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 24 | public let DefaultRedisPort = 6379
 25 |
 26 | open class RedisServer {
    |            `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
 27 |
 28 |   public typealias Command = RedisCommand
    :
 96 |     Q.async { // Safe? Unsafe. No idea. Probably not :-)
 97 |       // TODO: I think the proper trick is to use a pipe here.
 98 |       if let dbs = self.databases {
    |                    `- warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 99 |         do {
100 |           self.logger.warn("User requested shutdown...")
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:230:17: warning: type 'RESPValue' does not conform to the 'Sendable' protocol
228 |         guard client.isMonitoring.load(ordering: .relaxed) else { continue }
229 |         guard let channel = client.channel                 else { continue }
230 |         channel.writeAndFlush(logPacket, promise: nil)
    |                 `- warning: type 'RESPValue' does not conform to the 'Sendable' protocol
231 |       }
232 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:21:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 19 | import class  Foundation.JSONDecoder
 20 | import class  Atomics.ManagedAtomic
 21 | import enum   NIORedis.RESPValue
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
 22 | import NIO
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:227:28: warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 24 | public let DefaultRedisPort = 6379
 25 |
 26 | open class RedisServer {
    |            `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
 27 |
 28 |   public typealias Command = RedisCommand
    :
225 |
226 |     Q.async {
227 |       for ( _, client ) in self.clients {
    |                            `- warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
228 |         guard client.isMonitoring.load(ordering: .relaxed) else { continue }
229 |         guard let channel = client.channel                 else { continue }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:230:31: warning: capture of 'logPacket' with non-sendable type 'RESPValue' in a '@Sendable' closure
228 |         guard client.isMonitoring.load(ordering: .relaxed) else { continue }
229 |         guard let channel = client.channel                 else { continue }
230 |         channel.writeAndFlush(logPacket, promise: nil)
    |                               `- warning: capture of 'logPacket' with non-sendable type 'RESPValue' in a '@Sendable' closure
231 |       }
232 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 16 | import Foundation
 17 |
 18 | public enum RESPValue {
    |             `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
 19 |   case simpleString(ByteBuffer)
 20 |   case bulkString  (ByteBuffer?)
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:251:23: warning: conformance of 'BackPressureHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
249 |       .childChannelInitializer { channel in
250 |         channel.pipeline
251 |           .addHandler(BackPressureHandler() /* Oh well :-) */,
    |                       `- warning: conformance of 'BackPressureHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
252 |                       name: "com.apple.nio.backpressure")
253 |           .flatMap {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelHandlers.swift:179:1: note: conformance of 'BackPressureHandler' to 'Sendable' has been explicitly marked unavailable here
177 |
178 | @available(*, unavailable)
179 | extension BackPressureHandler: Sendable {}
    | `- note: conformance of 'BackPressureHandler' to 'Sendable' has been explicitly marked unavailable here
180 |
181 | /// Triggers an IdleStateEvent when a Channel has not performed read, write, or both operation for a while.
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:262:27: warning: type 'RedisCommandHandler' does not conform to the 'Sendable' protocol
260 |
261 |             return channel.pipeline
262 |               .addHandler(handler, name:"de.zeezide.nio.redis.server.client")
    |                           `- warning: type 'RedisCommandHandler' does not conform to the 'Sendable' protocol
263 |           }
264 |       }
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:255:64: warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 24 | public let DefaultRedisPort = 6379
 25 |
 26 | open class RedisServer {
    |            `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
 27 |
 28 |   public typealias Command = RedisCommand
    :
253 |           .flatMap {
254 |             let cid     = clientID.wrappingIncrementThenLoad(ordering: .relaxed)
255 |             let handler = RedisCommandHandler(id: cid, server: self)
    |                                                                `- warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
256 |
257 |             self.Q.async {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:255:64: warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 24 | public let DefaultRedisPort = 6379
 25 |
 26 | open class RedisServer {
    |            `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
 27 |
 28 |   public typealias Command = RedisCommand
    :
253 |           .flatMap {
254 |             let cid     = clientID.wrappingIncrementThenLoad(ordering: .relaxed)
255 |             let handler = RedisCommandHandler(id: cid, server: self)
    |                                                                `- warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
256 |
257 |             self.Q.async {
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:258:15: warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
 24 | public let DefaultRedisPort = 6379
 25 |
 26 | open class RedisServer {
    |            `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
 27 |
 28 |   public typealias Command = RedisCommand
    :
256 |
257 |             self.Q.async {
258 |               self._registerClient(handler)
    |               `- warning: capture of 'self' with non-sendable type 'RedisServer' in a '@Sendable' closure
259 |             }
260 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:258:36: warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
256 |
257 |             self.Q.async {
258 |               self._registerClient(handler)
    |                                    `- warning: capture of 'handler' with non-sendable type 'RedisCommandHandler' in a '@Sendable' closure
259 |             }
260 |
/Users/admin/builder/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 30 |  *
 31 |  */
 32 | final class RedisCommandHandler : RESPChannelHandler {
    |             `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
 33 |   // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
 34 |   // for the reason why this is a subclass (instead of a consumer of the
[262/267] Compiling redi_s ConfigFile.swift
[263/267] Compiling redi_s main.swift
[264/267] Emitting module redi_s
[264/267] Write Objects.LinkFileList
[265/267] Linking redi-s
[266/267] Applying redi-s
Build complete! (15.12s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-nio-redis",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.11.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SwiftNIOExtras/swift-nio-redis.git"
    },
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics"
    }
  ],
  "manifest_display_name" : "redi-s",
  "name" : "redi-s",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RedisServer",
      "targets" : [
        "RedisServer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "redi-s",
      "targets" : [
        "redi-s"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "redi_s",
      "module_type" : "SwiftTarget",
      "name" : "redi-s",
      "path" : "Sources/redi-s",
      "product_memberships" : [
        "redi-s"
      ],
      "sources" : [
        "ConfigFile.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "RedisServer"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "RedisServer",
      "module_type" : "SwiftTarget",
      "name" : "RedisServer",
      "path" : "Sources/RedisServer",
      "product_dependencies" : [
        "NIORedis",
        "Atomics"
      ],
      "product_memberships" : [
        "RedisServer",
        "redi-s"
      ],
      "sources" : [
        "Commands/CommandTable.swift",
        "Commands/CommandType.swift",
        "Commands/ExpirationCommands.swift",
        "Commands/HashCommands.swift",
        "Commands/IntCommands.swift",
        "Commands/KeyCommands.swift",
        "Commands/ListCommands.swift",
        "Commands/PubSubCommands.swift",
        "Commands/RedisCommand.swift",
        "Commands/ServerCommands.swift",
        "Commands/SetCommands.swift",
        "Commands/StringCommands.swift",
        "Database/Database.swift",
        "Database/DumpManager.swift",
        "Helpers/RedisLogger.swift",
        "Helpers/RedisPattern.swift",
        "Helpers/Utilities.swift",
        "Server/Monitor.swift",
        "Server/PubSub.swift",
        "Server/RedisCommandContext.swift",
        "Server/RedisCommandHandler.swift",
        "Server/RedisServer.swift",
        "Values/RedisError.swift",
        "Values/RedisList.swift",
        "Values/RedisValue.swift",
        "Values/RedisValueCoding.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.