This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 SwiftyNats with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sodiray/swifty-nats.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sodiray/swifty-nats
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 3e25dc9 + fix osx error
Cloned https://github.com/sodiray/swifty-nats.git
Revision (git rev-parse @):
3e25dc90e5e020aa0e13027c0add9685e96319ee
SUCCESS checkout https://github.com/sodiray/swifty-nats.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/sodiray/swifty-nats.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/10] Write sources
[4/10] Compiling CNIOLinux ifaddrs-android.c
[5/10] Compiling CNIOLinux shim.c
[6/10] Write swift-version-6F35C1178C84523A.txt
[7/13] Compiling CNIOSHA1 c_nio_sha1.c
[8/13] Compiling CNIODarwin shim.c
[9/13] Compiling c-atomics.c
[11/16] Compiling NIOPriorityQueue PriorityQueue.swift
[12/16] Compiling NIOConcurrencyHelpers atomics.swift
[13/16] Emitting module NIOConcurrencyHelpers
[14/16] Compiling NIOConcurrencyHelpers lock.swift
[15/16] Emitting module NIOPriorityQueue
[16/16] Compiling NIOPriorityQueue Heap.swift
[17/67] Compiling NIO IOData.swift
[18/67] Compiling NIO IntegerTypes.swift
[19/67] Compiling NIO Interfaces.swift
[20/67] Compiling NIO Linux.swift
[21/67] Compiling NIO LinuxCPUSet.swift
[22/72] Compiling NIO PendingWritesManager.swift
[23/72] Compiling NIO PriorityQueue.swift
[24/72] Compiling NIO RecvByteBufferAllocator.swift
[25/72] Compiling NIO Resolver.swift
[26/72] Compiling NIO Selectable.swift
[27/72] Compiling NIO SocketOptionProvider.swift
[28/72] Compiling NIO System.swift
[29/72] Compiling NIO Thread.swift
[30/72] Compiling NIO TypeAssistedChannelHandler.swift
[31/72] Compiling NIO Utilities.swift
[32/72] Compiling NIO MarkedCircularBuffer.swift
[33/72] Compiling NIO MulticastChannel.swift
[34/72] Compiling NIO NIOAny.swift
[35/72] Compiling NIO NonBlockingFileIO.swift
[36/72] Compiling NIO PendingDatagramWritesManager.swift
[37/72] Compiling NIO ContiguousCollection.swift
[38/72] Compiling NIO DeadChannel.swift
[39/72] Compiling NIO Embedded.swift
[40/72] Compiling NIO EventLoop.swift
[41/72] Compiling NIO EventLoopFuture.swift
[42/72] Compiling NIO FileDescriptor.swift
[43/72] Compiling NIO ChannelInvoker.swift
[44/72] Compiling NIO ChannelOption.swift
[45/72] Compiling NIO ChannelPipeline.swift
[46/72] Compiling NIO CircularBuffer.swift
[47/72] Compiling NIO Codec.swift
[48/72] Compiling NIO CompositeError.swift
[49/72] Compiling NIO FileHandle.swift
[50/72] Compiling NIO FileRegion.swift
[51/72] Compiling NIO GetaddrinfoResolver.swift
[52/72] Compiling NIO HappyEyeballs.swift
[53/72] Compiling NIO Heap.swift
[54/72] Compiling NIO IO.swift
[55/72] Compiling NIO AddressedEnvelope.swift
[56/72] Compiling NIO BaseSocket.swift
[57/72] Compiling NIO BaseSocketChannel.swift
[58/72] Compiling NIO BlockingIOThreadPool.swift
[59/72] Compiling NIO Bootstrap.swift
[60/72] Compiling NIO ByteBuffer-aux.swift
[61/72] Emitting module NIO
[62/72] Compiling NIO Selector.swift
[63/72] Compiling NIO ServerSocket.swift
[64/72] Compiling NIO Socket.swift
[65/72] Compiling NIO SocketAddresses.swift
[66/72] Compiling NIO SocketChannel.swift
[67/72] Compiling NIO ByteBuffer-core.swift
[68/72] Compiling NIO ByteBuffer-int.swift
[69/72] Compiling NIO ByteBuffer-views.swift
[70/72] Compiling NIO Channel.swift
[71/72] Compiling NIO ChannelHandler.swift
[72/72] Compiling NIO ChannelHandlers.swift
[73/89] Compiling SwiftyNats NatsEventHandler.swift
[74/89] Compiling SwiftyNats NatsMessage.swift
[75/89] Compiling SwiftyNats NatsClientConfig.swift
[76/89] Compiling SwiftyNats NatsError.swift
[77/89] Compiling SwiftyNats NatsResponse.swift
[78/89] Compiling SwiftyNats NatsServer.swift
[79/89] Compiling SwiftyNats NatsClient+Subscribe.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:16:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 14 |
 15 |     @discardableResult
 16 |     open func subscribe(to subject: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 17 |
 18 |         let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 26 |
 27 |     @discardableResult
 28 |     open func subscribe(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 29 |
 30 |         let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:40:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 38 |     }
 39 |
 40 |     open func unsubscribe(from subject: NatsSubject) {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 41 |
 42 |         self.sendMessage(NatsMessage.unsubscribe(sid: subject.id))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:47:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 45 |     }
 46 |
 47 |     open func unsubscribeSync(from subject: NatsSubject) throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 48 |
 49 |         let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:72:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 70 |
 71 |     @discardableResult
 72 |     open func subscribeSync(to subject: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 73 |         return try subSync(to: subject, asPartOf: "", handler)
 74 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:77:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 75 |
 76 |     @discardableResult
 77 |     open func subscribeSync(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 78 |         return try subSync(to: subject, asPartOf: queue, handler)
 79 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | public enum NatsEvent: String {
    |             `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
 18 |     case connected = "connected"
 19 |     case disconnected = "disconnected"
    :
 23 |     case reconnecting = "reconnecting"
 24 |     case informed = "informed"
 25 |     static let all = [ connected, disconnected, response, error, dropped, reconnecting ]
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:54:26: warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
 52 |     internal var state: NatsState = .disconnected
 53 |     internal var connectionError: NatsError?
 54 |     internal let group = MultiThreadedEventLoopGroup(numThreads: 1)
    |                          |- warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
    |                          `- note: use 'init(numberOfThreads:)' instead
 55 |     internal var channel: Channel?
 56 |     internal let dispatchGroup = DispatchGroup()
[80/89] Compiling SwiftyNats NatsClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:16:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 14 |
 15 |     @discardableResult
 16 |     open func subscribe(to subject: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 17 |
 18 |         let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 26 |
 27 |     @discardableResult
 28 |     open func subscribe(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 29 |
 30 |         let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:40:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 38 |     }
 39 |
 40 |     open func unsubscribe(from subject: NatsSubject) {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 41 |
 42 |         self.sendMessage(NatsMessage.unsubscribe(sid: subject.id))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:47:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 45 |     }
 46 |
 47 |     open func unsubscribeSync(from subject: NatsSubject) throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 48 |
 49 |         let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:72:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 70 |
 71 |     @discardableResult
 72 |     open func subscribeSync(to subject: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 73 |         return try subSync(to: subject, asPartOf: "", handler)
 74 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:77:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 75 |
 76 |     @discardableResult
 77 |     open func subscribeSync(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 78 |         return try subSync(to: subject, asPartOf: queue, handler)
 79 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | public enum NatsEvent: String {
    |             `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
 18 |     case connected = "connected"
 19 |     case disconnected = "disconnected"
    :
 23 |     case reconnecting = "reconnecting"
 24 |     case informed = "informed"
 25 |     static let all = [ connected, disconnected, response, error, dropped, reconnecting ]
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:54:26: warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
 52 |     internal var state: NatsState = .disconnected
 53 |     internal var connectionError: NatsError?
 54 |     internal let group = MultiThreadedEventLoopGroup(numThreads: 1)
    |                          |- warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
    |                          `- note: use 'init(numberOfThreads:)' instead
 55 |     internal var channel: Channel?
 56 |     internal let dispatchGroup = DispatchGroup()
[81/90] Compiling SwiftyNats String+Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:92:13: warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 |
91 |         self.messageQueue.addOperation {
92 |             handler(message)
   |             |- warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
93 |         }
94 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:92:21: warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 |
91 |         self.messageQueue.addOperation {
92 |             handler(message)
   |                     `- warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
93 |         }
94 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsMessage.swift:10:15: note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct NatsMessage {
   |               `- note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
11 |
12 |     public let payload: String?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:54:26: warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
 52 |     internal var state: NatsState = .disconnected
 53 |     internal var connectionError: NatsError?
 54 |     internal let group = MultiThreadedEventLoopGroup(numThreads: 1)
    |                          |- warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
    |                          `- note: use 'init(numberOfThreads:)' instead
 55 |     internal var channel: Channel?
 56 |     internal let dispatchGroup = DispatchGroup()
[82/90] Compiling SwiftyNats NatsClient+ChannelHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:92:13: warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 |
91 |         self.messageQueue.addOperation {
92 |             handler(message)
   |             |- warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
93 |         }
94 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:92:21: warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 |
91 |         self.messageQueue.addOperation {
92 |             handler(message)
   |                     `- warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
93 |         }
94 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsMessage.swift:10:15: note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct NatsMessage {
   |               `- note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
11 |
12 |     public let payload: String?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:54:26: warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
 52 |     internal var state: NatsState = .disconnected
 53 |     internal var connectionError: NatsError?
 54 |     internal let group = MultiThreadedEventLoopGroup(numThreads: 1)
    |                          |- warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
    |                          `- note: use 'init(numberOfThreads:)' instead
 55 |     internal var channel: Channel?
 56 |     internal let dispatchGroup = DispatchGroup()
[83/90] Compiling SwiftyNats NatsClient+Connection.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:16:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 14 |     // MARK - Implement NatsConnection Protocol
 15 |
 16 |     open func connect() throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 17 |
 18 |         guard self.state != .connected else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:47:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 45 |     }
 46 |
 47 |     open func disconnect() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 48 |
 49 |         try? self.channel?.close().wait()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:54:26: warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
 52 |     internal var state: NatsState = .disconnected
 53 |     internal var connectionError: NatsError?
 54 |     internal let group = MultiThreadedEventLoopGroup(numThreads: 1)
    |                          |- warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
    |                          `- note: use 'init(numberOfThreads:)' instead
 55 |     internal var channel: Channel?
 56 |     internal let dispatchGroup = DispatchGroup()
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/ChannelOption.swift:192:23: warning: static property 'socket' is not concurrency-safe because non-'Sendable' type '(SocketOptionLevel, SocketOptionName) -> SocketOption' (aka '(Int32, Int32) -> SocketOption') may have shared mutable state; this is an error in the Swift 6 language mode
190 | public struct ChannelOptions {
191 |     /// - seealso: `SocketOption`.
192 |     public static let socket = { (level: SocketOptionLevel, name: SocketOptionName) -> SocketOption in .const((level, name)) }
    |                       |- warning: static property 'socket' is not concurrency-safe because non-'Sendable' type '(SocketOptionLevel, SocketOptionName) -> SocketOption' (aka '(Int32, Int32) -> SocketOption') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'socket' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 |     /// - seealso: `AllocatorOption`.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:13:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
11 |
12 |     @discardableResult
13 |     open func on(_ events: [NatsEvent], _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
14 |
15 |         return self.addListeners(for: events, using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:20:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
18 |
19 |     @discardableResult
20 |     open func on(_ event: NatsEvent, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
21 |
22 |         return self.addListeners(for: [event], using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:27:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
25 |
26 |     @discardableResult
27 |     open func on(_ event: NatsEvent, autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
28 |
29 |         return self.addListeners(for: [event], using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:34:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
32 |
33 |     @discardableResult
34 |     open func on(_ events: [NatsEvent], autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
35 |
36 |         return self.addListeners(for: events, using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:40:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
38 |     }
39 |
40 |     open func off(_ id: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
41 |
42 |         self.removeListener(id)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | public enum NatsEvent: String {
    |             `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
 18 |     case connected = "connected"
 19 |     case disconnected = "disconnected"
    :
 23 |     case reconnecting = "reconnecting"
 24 |     case informed = "informed"
 25 |     static let all = [ connected, disconnected, response, error, dropped, reconnecting ]
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | }
 27 |
[84/90] Compiling SwiftyNats NatsClient+EventBus.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:16:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 14 |     // MARK - Implement NatsConnection Protocol
 15 |
 16 |     open func connect() throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 17 |
 18 |         guard self.state != .connected else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:47:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 45 |     }
 46 |
 47 |     open func disconnect() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 48 |
 49 |         try? self.channel?.close().wait()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:54:26: warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
 52 |     internal var state: NatsState = .disconnected
 53 |     internal var connectionError: NatsError?
 54 |     internal let group = MultiThreadedEventLoopGroup(numThreads: 1)
    |                          |- warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
    |                          `- note: use 'init(numberOfThreads:)' instead
 55 |     internal var channel: Channel?
 56 |     internal let dispatchGroup = DispatchGroup()
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/ChannelOption.swift:192:23: warning: static property 'socket' is not concurrency-safe because non-'Sendable' type '(SocketOptionLevel, SocketOptionName) -> SocketOption' (aka '(Int32, Int32) -> SocketOption') may have shared mutable state; this is an error in the Swift 6 language mode
190 | public struct ChannelOptions {
191 |     /// - seealso: `SocketOption`.
192 |     public static let socket = { (level: SocketOptionLevel, name: SocketOptionName) -> SocketOption in .const((level, name)) }
    |                       |- warning: static property 'socket' is not concurrency-safe because non-'Sendable' type '(SocketOptionLevel, SocketOptionName) -> SocketOption' (aka '(Int32, Int32) -> SocketOption') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'socket' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 |     /// - seealso: `AllocatorOption`.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:13:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
11 |
12 |     @discardableResult
13 |     open func on(_ events: [NatsEvent], _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
14 |
15 |         return self.addListeners(for: events, using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:20:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
18 |
19 |     @discardableResult
20 |     open func on(_ event: NatsEvent, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
21 |
22 |         return self.addListeners(for: [event], using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:27:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
25 |
26 |     @discardableResult
27 |     open func on(_ event: NatsEvent, autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
28 |
29 |         return self.addListeners(for: [event], using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:34:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
32 |
33 |     @discardableResult
34 |     open func on(_ events: [NatsEvent], autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
35 |
36 |         return self.addListeners(for: events, using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:40:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
38 |     }
39 |
40 |     open func off(_ id: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
41 |
42 |         self.removeListener(id)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | public enum NatsEvent: String {
    |             `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
 18 |     case connected = "connected"
 19 |     case disconnected = "disconnected"
    :
 23 |     case reconnecting = "reconnecting"
 24 |     case informed = "informed"
 25 |     static let all = [ connected, disconnected, response, error, dropped, reconnecting ]
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | }
 27 |
[85/90] Emitting module SwiftyNats
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:16:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 14 |     // MARK - Implement NatsConnection Protocol
 15 |
 16 |     open func connect() throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 17 |
 18 |         guard self.state != .connected else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:47:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 45 |     }
 46 |
 47 |     open func disconnect() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 48 |
 49 |         try? self.channel?.close().wait()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:13:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
11 |
12 |     @discardableResult
13 |     open func on(_ events: [NatsEvent], _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
14 |
15 |         return self.addListeners(for: events, using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:20:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
18 |
19 |     @discardableResult
20 |     open func on(_ event: NatsEvent, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
21 |
22 |         return self.addListeners(for: [event], using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:27:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
25 |
26 |     @discardableResult
27 |     open func on(_ event: NatsEvent, autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
28 |
29 |         return self.addListeners(for: [event], using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:34:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
32 |
33 |     @discardableResult
34 |     open func on(_ events: [NatsEvent], autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
35 |
36 |         return self.addListeners(for: events, using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:40:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
38 |     }
39 |
40 |     open func off(_ id: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
41 |
42 |         self.removeListener(id)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:15:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
13 |     // MARK - Implement NatsPublish Protocol
14 |
15 |     open func publish(_ payload: String, to subject: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |         sendMessage(NatsMessage.publish(payload: payload, subject: subject))
17 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:19:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
17 |     }
18 |
19 |     open func publish(_ payload: String, to subject: NatsSubject) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |         publish(payload, to: subject.subject)
21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:23:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
21 |     }
22 |
23 |     open func reply(to message: NatsMessage, withPayload payload: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
24 |         guard let replySubject = message.replySubject else { return }
25 |         publish(payload, to: replySubject.subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |     }
27 |
28 |     open func publishSync(_ payload: String, to subject: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
29 |
30 |         let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:50:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
48 |     }
49 |
50 |     open func publishSync(_ payload: String, to subject: NatsSubject) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
51 |         try publishSync(payload, to: subject.subject)
52 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:54:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
52 |     }
53 |
54 |     open func replySync(to message: NatsMessage, withPayload payload: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
55 |         guard let replySubject = message.replySubject else { return }
56 |         try publishSync(payload, to: replySubject.subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:21:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |     }
20 |
21 |     open func flushQueue(maxWait: TimeInterval? = nil) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
22 |
23 |         let startTimestamp = Date().timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:16:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 14 |
 15 |     @discardableResult
 16 |     open func subscribe(to subject: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 17 |
 18 |         let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 26 |
 27 |     @discardableResult
 28 |     open func subscribe(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 29 |
 30 |         let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:40:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 38 |     }
 39 |
 40 |     open func unsubscribe(from subject: NatsSubject) {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 41 |
 42 |         self.sendMessage(NatsMessage.unsubscribe(sid: subject.id))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:47:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 45 |     }
 46 |
 47 |     open func unsubscribeSync(from subject: NatsSubject) throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 48 |
 49 |         let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:72:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 70 |
 71 |     @discardableResult
 72 |     open func subscribeSync(to subject: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 73 |         return try subSync(to: subject, asPartOf: "", handler)
 74 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:77:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 75 |
 76 |     @discardableResult
 77 |     open func subscribeSync(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 78 |         return try subSync(to: subject, asPartOf: queue, handler)
 79 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | public enum NatsEvent: String {
    |             `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
 18 |     case connected = "connected"
 19 |     case disconnected = "disconnected"
    :
 23 |     case reconnecting = "reconnecting"
 24 |     case informed = "informed"
 25 |     static let all = [ connected, disconnected, response, error, dropped, reconnecting ]
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:54:26: warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
 52 |     internal var state: NatsState = .disconnected
 53 |     internal var connectionError: NatsError?
 54 |     internal let group = MultiThreadedEventLoopGroup(numThreads: 1)
    |                          |- warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
    |                          `- note: use 'init(numberOfThreads:)' instead
 55 |     internal var channel: Channel?
 56 |     internal let dispatchGroup = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsSubject.swift:31:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'NatsSubject' to 'Hashable' by implementing 'hash(into:)' instead
29 |         return lhs.hashValue == rhs.hashValue
30 |     }
31 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'NatsSubject' to 'Hashable' by implementing 'hash(into:)' instead
32 |         return self.id.hashValue
33 |     }
[86/90] Compiling SwiftyNats Data+String.swift
[87/90] Compiling SwiftyNats Streams+Read+Write.swift
[88/90] Compiling SwiftyNats NatsClient+Publish.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:15:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
13 |     // MARK - Implement NatsPublish Protocol
14 |
15 |     open func publish(_ payload: String, to subject: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |         sendMessage(NatsMessage.publish(payload: payload, subject: subject))
17 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:19:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
17 |     }
18 |
19 |     open func publish(_ payload: String, to subject: NatsSubject) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |         publish(payload, to: subject.subject)
21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:23:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
21 |     }
22 |
23 |     open func reply(to message: NatsMessage, withPayload payload: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
24 |         guard let replySubject = message.replySubject else { return }
25 |         publish(payload, to: replySubject.subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |     }
27 |
28 |     open func publishSync(_ payload: String, to subject: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
29 |
30 |         let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:50:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
48 |     }
49 |
50 |     open func publishSync(_ payload: String, to subject: NatsSubject) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
51 |         try publishSync(payload, to: subject.subject)
52 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:54:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
52 |     }
53 |
54 |     open func replySync(to message: NatsMessage, withPayload payload: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
55 |         guard let replySubject = message.replySubject else { return }
56 |         try publishSync(payload, to: replySubject.subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:21:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |     }
20 |
21 |     open func flushQueue(maxWait: TimeInterval? = nil) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
22 |
23 |         let startTimestamp = Date().timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:28:13: warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |
27 |         DispatchQueue.global(qos: .default).async { [weak self] in
28 |             self?.messageQueue.waitUntilAllOperationsAreFinished()
   |             `- warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |         }
30 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:41:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 39 | }
 40 |
 41 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 42 |
 43 |     var urls = [String]()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:54:26: warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
 52 |     internal var state: NatsState = .disconnected
 53 |     internal var connectionError: NatsError?
 54 |     internal let group = MultiThreadedEventLoopGroup(numThreads: 1)
    |                          |- warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
    |                          `- note: use 'init(numberOfThreads:)' instead
 55 |     internal var channel: Channel?
 56 |     internal let dispatchGroup = DispatchGroup()
[89/90] Compiling SwiftyNats NatsClient+Queue.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:15:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
13 |     // MARK - Implement NatsPublish Protocol
14 |
15 |     open func publish(_ payload: String, to subject: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |         sendMessage(NatsMessage.publish(payload: payload, subject: subject))
17 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:19:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
17 |     }
18 |
19 |     open func publish(_ payload: String, to subject: NatsSubject) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |         publish(payload, to: subject.subject)
21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:23:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
21 |     }
22 |
23 |     open func reply(to message: NatsMessage, withPayload payload: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
24 |         guard let replySubject = message.replySubject else { return }
25 |         publish(payload, to: replySubject.subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |     }
27 |
28 |     open func publishSync(_ payload: String, to subject: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
29 |
30 |         let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:50:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
48 |     }
49 |
50 |     open func publishSync(_ payload: String, to subject: NatsSubject) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
51 |         try publishSync(payload, to: subject.subject)
52 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:54:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
52 |     }
53 |
54 |     open func replySync(to message: NatsMessage, withPayload payload: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
55 |         guard let replySubject = message.replySubject else { return }
56 |         try publishSync(payload, to: replySubject.subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:21:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |     }
20 |
21 |     open func flushQueue(maxWait: TimeInterval? = nil) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
22 |
23 |         let startTimestamp = Date().timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:28:13: warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |
27 |         DispatchQueue.global(qos: .default).async { [weak self] in
28 |             self?.messageQueue.waitUntilAllOperationsAreFinished()
   |             `- warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |         }
30 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:41:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 39 | }
 40 |
 41 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 42 |
 43 |     var urls = [String]()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:54:26: warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
 52 |     internal var state: NatsState = .disconnected
 53 |     internal var connectionError: NatsError?
 54 |     internal let group = MultiThreadedEventLoopGroup(numThreads: 1)
    |                          |- warning: 'init(numThreads:)' is deprecated: replaced by 'init(numberOfThreads:)'
    |                          `- note: use 'init(numberOfThreads:)' instead
 55 |     internal var channel: Channel?
 56 |     internal let dispatchGroup = DispatchGroup()
[90/90] Compiling SwiftyNats NatsSubject.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsSubject.swift:31:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'NatsSubject' to 'Hashable' by implementing 'hash(into:)' instead
29 |         return lhs.hashValue == rhs.hashValue
30 |     }
31 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'NatsSubject' to 'Hashable' by implementing 'hash(into:)' instead
32 |         return self.id.hashValue
33 |     }
Build complete! (33.90s)
Fetching https://github.com/apple/swift-nio.git
[1/65607] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (8.16s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.72s)
Fetching https://github.com/apple/swift-nio-zlib-support.git
[1/15] Fetching swift-nio-zlib-support
Fetched https://github.com/apple/swift-nio-zlib-support.git from cache (0.71s)
Computing version for https://github.com/apple/swift-nio-zlib-support.git
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (0.65s)
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: couldn't find pc file for zlib
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    }
  ],
  "manifest_display_name" : "SwiftyNats",
  "name" : "SwiftyNats",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftyNats",
      "targets" : [
        "SwiftyNats"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftyNatsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyNatsTests",
      "path" : "Tests/SwiftyNatsTests",
      "sources" : [
        "Extensions/StringExtensionTests.swift",
        "Integration/ConnectionTests.swift",
        "Integration/EventBusTests.swift",
        "Integration/PublishTests.swift",
        "Integration/SubscribeTests.swift",
        "TestSettings.swift",
        "Unit/NatsMessageTests.swift"
      ],
      "target_dependencies" : [
        "SwiftyNats"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftyNats",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyNats",
      "path" : "Sources/SwiftyNats",
      "product_dependencies" : [
        "NIO"
      ],
      "product_memberships" : [
        "SwiftyNats"
      ],
      "sources" : [
        "Extensions/Data+String.swift",
        "Extensions/Streams+Read+Write.swift",
        "Extensions/String+Utilities.swift",
        "NatsClient/NatsClient+ChannelHandler.swift",
        "NatsClient/NatsClient+Connection.swift",
        "NatsClient/NatsClient+EventBus.swift",
        "NatsClient/NatsClient+Publish.swift",
        "NatsClient/NatsClient+Queue.swift",
        "NatsClient/NatsClient+Subscribe.swift",
        "NatsClient/NatsClient.swift",
        "NatsClientConfig.swift",
        "NatsError.swift",
        "NatsEventHandler.swift",
        "NatsMessage.swift",
        "NatsResponse.swift",
        "NatsServer.swift",
        "NatsSubject.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.