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

Failed to build ReactiveStreams, reference 0.4.2 (b66ce5), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 05:56:20 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:15:50: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
13 |   let queue: DispatchQueue
14 |
15 |   public init(label: String, qos: DispatchQoS = .current)
   |                                                  |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                                  `- note: The missing import of module 'CurrentQoS' will be added implicitly
16 |   {
17 |     self.queue = DispatchQueue(label: label+"-\(qos.qosClass)", qos: qos)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:23:18: error: 'OS_dispatch_queue_serial' has been renamed to 'DispatchSerialQueue'
21 |   {
22 | #if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS))
23 |     if target is OS_dispatch_queue_serial
   |                  `- error: 'OS_dispatch_queue_serial' has been renamed to 'DispatchSerialQueue'
24 |     {
25 |       self.queue = target
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/dispatch/queue.h:149:1: note: 'OS_dispatch_queue_serial' was obsoleted in Swift 3
 147 |  */
 148 | API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0), watchos(5.0))
 149 | DISPATCH_DECL_SERIAL_EXECUTOR_SWIFT(dispatch_queue_serial, DispatchSerialQueue);
     | `- note: 'OS_dispatch_queue_serial' was obsoleted in Swift 3
 150 |
 151 | /*!
[29/49] Compiling ReactiveStreams stream-filter.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 30 |           newEvent = Event(error: event.error)
 31 |         }
 32 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                              `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 33 |       }
 34 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 30 |           newEvent = Event(error: event.error)
 31 |         }
 32 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                                              `- warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 33 |       }
 34 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 82 |           newEvent = Event(error: event.error)
 83 |         }
 84 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                              `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 85 |       }
 86 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 82 |           newEvent = Event(error: event.error)
 83 |         }
 84 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                                              `- warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 85 |       }
 86 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a '@Sendable' closure
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |           `- warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a '@Sendable' closure
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in a '@Sendable' closure
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |                        `- warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in a '@Sendable' closure
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
  9 | import Dispatch
 10 |
 11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
    |       `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:26:27: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
26 |           mapped.dispatch(event)
   |                           `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
27 |         }
28 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: reference to captured var 'latest' in concurrently-executing code
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |           `- warning: reference to captured var 'latest' in concurrently-executing code
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |                        `- warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
  9 | import Dispatch
 10 |
 11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
    |       `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-limited.swift:18:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
16 |   public var count: Int64 { return CAtomicsLoad(counter, .relaxed) }
17 |
18 |   public convenience init(qos: DispatchQoS = .current, count: Int64)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
19 |   {
20 |     self.init(validated: ValidatedQueue(label: "limitedstream", qos: qos), count: max(count,0))
[30/49] Compiling ReactiveStreams stream-final.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 30 |           newEvent = Event(error: event.error)
 31 |         }
 32 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                              `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 33 |       }
 34 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 30 |           newEvent = Event(error: event.error)
 31 |         }
 32 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                                              `- warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 33 |       }
 34 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 82 |           newEvent = Event(error: event.error)
 83 |         }
 84 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                              `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 85 |       }
 86 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 82 |           newEvent = Event(error: event.error)
 83 |         }
 84 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                                              `- warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 85 |       }
 86 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a '@Sendable' closure
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |           `- warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a '@Sendable' closure
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in a '@Sendable' closure
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |                        `- warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in a '@Sendable' closure
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
  9 | import Dispatch
 10 |
 11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
    |       `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:26:27: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
26 |           mapped.dispatch(event)
   |                           `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
27 |         }
28 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: reference to captured var 'latest' in concurrently-executing code
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |           `- warning: reference to captured var 'latest' in concurrently-executing code
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |                        `- warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
  9 | import Dispatch
 10 |
 11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
    |       `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-limited.swift:18:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
16 |   public var count: Int64 { return CAtomicsLoad(counter, .relaxed) }
17 |
18 |   public convenience init(qos: DispatchQoS = .current, count: Int64)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
19 |   {
20 |     self.init(validated: ValidatedQueue(label: "limitedstream", qos: qos), count: max(count,0))
[31/49] Compiling ReactiveStreams stream-limited.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 30 |           newEvent = Event(error: event.error)
 31 |         }
 32 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                              `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 33 |       }
 34 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 30 |           newEvent = Event(error: event.error)
 31 |         }
 32 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                                              `- warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 33 |       }
 34 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 82 |           newEvent = Event(error: event.error)
 83 |         }
 84 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                              `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
 85 |       }
 86 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 82 |           newEvent = Event(error: event.error)
 83 |         }
 84 |         mapped.queue.async { mapped.dispatch(newEvent) }
    |                                              `- warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a '@Sendable' closure
 85 |       }
 86 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a '@Sendable' closure
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |           `- warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a '@Sendable' closure
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in a '@Sendable' closure
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |                        `- warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in a '@Sendable' closure
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
  9 | import Dispatch
 10 |
 11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
    |       `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:26:27: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
26 |           mapped.dispatch(event)
   |                           `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
27 |         }
28 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: reference to captured var 'latest' in concurrently-executing code
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |           `- warning: reference to captured var 'latest' in concurrently-executing code
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |                        `- warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
  9 | import Dispatch
 10 |
 11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
    |       `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-limited.swift:18:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
16 |   public var count: Int64 { return CAtomicsLoad(counter, .relaxed) }
17 |
18 |   public convenience init(qos: DispatchQoS = .current, count: Int64)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
19 |   {
20 |     self.init(validated: ValidatedQueue(label: "limitedstream", qos: qos), count: max(count,0))
[32/49] Compiling ReactiveStreams stream-skip.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:30: warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a '@Sendable' closure
29 |         }
30 |
31 |         stream.queue.async { stream.dispatch(event) }
   |                              `- warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a '@Sendable' closure
32 |       }
33 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:46: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
29 |         }
30 |
31 |         stream.queue.async { stream.dispatch(event) }
   |                                              `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
32 |       }
33 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
[33/49] Compiling ReactiveStreams stream-split.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:30: warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a '@Sendable' closure
29 |         }
30 |
31 |         stream.queue.async { stream.dispatch(event) }
   |                              `- warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a '@Sendable' closure
32 |       }
33 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:46: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
29 |         }
30 |
31 |         stream.queue.async { stream.dispatch(event) }
   |                                              `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
32 |       }
33 |     )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
[34/49] Compiling ReactiveStreams stream-map.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> U' in a '@Sendable' closure
17 |       mapped.queue.async {
18 |         do {
19 |           let transformed = try transform(event.get())
   |                                 |- warning: capture of 'transform' with non-sendable type '(Value) throws -> U' in a '@Sendable' closure
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
17 |       mapped.queue.async {
18 |         do {
19 |           let transformed = try transform(event.get())
   |                                           `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:20:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
18 |         do {
19 |           let transformed = try transform(event.get())
20 |           mapped.dispatch(Event(value: transformed))
   |           `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
21 |         }
22 |         catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> Event<U>' in a '@Sendable' closure
50 |       mapped.queue.async {
51 |         do {
52 |           let transformed = try transform(event.get())
   |                                 |- warning: capture of 'transform' with non-sendable type '(Value) throws -> Event<U>' in a '@Sendable' closure
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 |           mapped.dispatch(transformed)
54 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
50 |       mapped.queue.async {
51 |         do {
52 |           let transformed = try transform(event.get())
   |                                           `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
53 |           mapped.dispatch(transformed)
54 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:53:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
51 |         do {
52 |           let transformed = try transform(event.get())
53 |           mapped.dispatch(transformed)
   |           `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
54 |         }
55 |         catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:233:61: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
231 |   }
232 |
233 |   static public func merge<S: Sequence>(qos: DispatchQoS = .current, streams: S, delayingErrors delay: Bool = false) -> EventStream<Value>
    |                                                             |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
    |                                                             `- note: The missing import of module 'CurrentQoS' will be added implicitly
234 |     where S.Iterator.Element: EventStream<Value>
235 |   {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:19: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
 37 |   public func merge(_ source: EventStream<Value>)
 38 |   {
 39 |     queue.async { self.performMerge(source) }
    |                   `- warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
 40 |   }
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:37: warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
 37 |   public func merge(_ source: EventStream<Value>)
 38 |   {
 39 |     queue.async { self.performMerge(source) }
    |                                     `- warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
 40 |   }
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 25 | }
 26 |
 27 | open class EventStream<Value>: Publisher
    |            `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 28 | {
 29 |   public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:74:14: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 72 |         merged, event in
 73 |         merged.queue.async {
 74 |           if event.isValue == false
    |              `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:13: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
 74 |           if event.isValue == false
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
    |             `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: capture of 'subscription' with non-sendable type 'Subscription?' in a '@Sendable' closure
 74 |           if event.isValue == false
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
    |                                         `- warning: capture of 'subscription' with non-sendable type 'Subscription?' in a '@Sendable' closure
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
 15 | #endif
 16 |
 17 | final public class Subscription
    |                    `- note: class 'Subscription' does not conform to the 'Sendable' protocol
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: reference to captured var 'subscription' in concurrently-executing code
 74 |           if event.isValue == false
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
    |                                         `- warning: reference to captured var 'subscription' in concurrently-executing code
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:77:44: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
    |                                            `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 78 |             { // merged stream completed normally
 79 |               if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:79:55: warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
 79 |               if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
    |                                                       `- warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 80 |               { // no other event is forthcoming from any stream
 81 |                 let errorEvent = merged.delayedError.map(Event<Value>.init(error:))
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:88:50: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 86 |             else if merged.delayErrorReporting
 87 |             {
 88 |               let error = merged.delayedError ?? event.error!
    |                                                  `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 89 |               if merged.subscriptions.isEmpty
 90 |               {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:120:7: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
118 |     guard !completed else { return }
119 |     queue.async {
120 |       self.closed = true
    |       `- warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
121 |       self.dispatch(Event.streamCompleted)
122 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:159:7: warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a '@Sendable' closure
137 | }
138 |
139 | internal class FlatMapStream<Value>: MergeStream<Value>
    |                `- note: generic class 'FlatMapStream' does not conform to the 'Sendable' protocol
140 | {
141 |   convenience init(qos: DispatchQoS = .current)
    :
157 |   {
158 |     queue.async {
159 |       self.closeFlatMap()
    |       `- warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a '@Sendable' closure
160 |     }
161 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:13: warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a '@Sendable' closure
137 | }
138 |
139 | internal class FlatMapStream<Value>: MergeStream<Value>
    |                `- note: generic class 'FlatMapStream' does not conform to the 'Sendable' protocol
140 | {
141 |   convenience init(qos: DispatchQoS = .current)
    :
189 |         merged.queue.async {
190 |           do {
191 |             merged.performMerge(transform(try event.get()))
    |             `- warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a '@Sendable' closure
192 |           }
193 |           catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:33: warning: capture of 'transform' with non-sendable type '(Value) -> EventStream<U>' in a '@Sendable' closure
189 |         merged.queue.async {
190 |           do {
191 |             merged.performMerge(transform(try event.get()))
    |                                 |- warning: capture of 'transform' with non-sendable type '(Value) -> EventStream<U>' in a '@Sendable' closure
    |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
192 |           }
193 |           catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:47: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
189 |         merged.queue.async {
190 |           do {
191 |             merged.performMerge(transform(try event.get()))
    |                                               `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
192 |           }
193 |           catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:227:7: warning: capture of 'streams' with non-sendable type 'S' in a '@Sendable' closure
221 |   }
222 |
223 |   static private func merge<S: Sequence>(streams: S, into merged: MergeStream<Value>)
    |                             `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
224 |     where S.Iterator.Element: EventStream<Value>
225 |   {
226 |     merged.queue.async {
227 |       streams.forEach {
    |       `- warning: capture of 'streams' with non-sendable type 'S' in a '@Sendable' closure
228 |         merged.performMerge($0)
229 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
226 |     merged.queue.async {
227 |       streams.forEach {
228 |         merged.performMerge($0)
    |         `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
229 |       }
230 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
226 |     merged.queue.async {
227 |       streams.forEach {
228 |         merged.performMerge($0)
    |         `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
229 |       }
230 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:7: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
257 |     let merged = MergeStream<Value>(qos: qos, delayingErrors: false)
258 |     merged.queue.async {
259 |       merged.performMerge(self)
    |       `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:27: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
257 |     let merged = MergeStream<Value>(qos: qos, delayingErrors: false)
258 |     merged.queue.async {
259 |       merged.performMerge(self)
    |                           `- warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 25 | }
 26 |
 27 | open class EventStream<Value>: Publisher
    |            `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 28 | {
 29 |   public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:7: warning: capture of 'others' with non-sendable type 'S' in a '@Sendable' closure
252 |   }
253 |
254 |   public func merge<S: Sequence>(with others: S) -> EventStream<Value>
    |                     `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
255 |     where S.Iterator.Element: EventStream<Value>
256 |   {
    :
258 |     merged.queue.async {
259 |       merged.performMerge(self)
260 |       others.forEach { merged.performMerge($0) }
    |       `- warning: capture of 'others' with non-sendable type 'S' in a '@Sendable' closure
261 |     }
262 |     return merged
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:24: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
258 |     merged.queue.async {
259 |       merged.performMerge(self)
260 |       others.forEach { merged.performMerge($0) }
    |                        `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
261 |     }
262 |     return merged
[35/49] Compiling ReactiveStreams stream-merge.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> U' in a '@Sendable' closure
17 |       mapped.queue.async {
18 |         do {
19 |           let transformed = try transform(event.get())
   |                                 |- warning: capture of 'transform' with non-sendable type '(Value) throws -> U' in a '@Sendable' closure
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
17 |       mapped.queue.async {
18 |         do {
19 |           let transformed = try transform(event.get())
   |                                           `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:20:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
18 |         do {
19 |           let transformed = try transform(event.get())
20 |           mapped.dispatch(Event(value: transformed))
   |           `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
21 |         }
22 |         catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> Event<U>' in a '@Sendable' closure
50 |       mapped.queue.async {
51 |         do {
52 |           let transformed = try transform(event.get())
   |                                 |- warning: capture of 'transform' with non-sendable type '(Value) throws -> Event<U>' in a '@Sendable' closure
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 |           mapped.dispatch(transformed)
54 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
50 |       mapped.queue.async {
51 |         do {
52 |           let transformed = try transform(event.get())
   |                                           `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
53 |           mapped.dispatch(transformed)
54 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:53:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
51 |         do {
52 |           let transformed = try transform(event.get())
53 |           mapped.dispatch(transformed)
   |           `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
54 |         }
55 |         catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:233:61: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
231 |   }
232 |
233 |   static public func merge<S: Sequence>(qos: DispatchQoS = .current, streams: S, delayingErrors delay: Bool = false) -> EventStream<Value>
    |                                                             |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
    |                                                             `- note: The missing import of module 'CurrentQoS' will be added implicitly
234 |     where S.Iterator.Element: EventStream<Value>
235 |   {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:19: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
 37 |   public func merge(_ source: EventStream<Value>)
 38 |   {
 39 |     queue.async { self.performMerge(source) }
    |                   `- warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
 40 |   }
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:37: warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
 37 |   public func merge(_ source: EventStream<Value>)
 38 |   {
 39 |     queue.async { self.performMerge(source) }
    |                                     `- warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
 40 |   }
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 25 | }
 26 |
 27 | open class EventStream<Value>: Publisher
    |            `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 28 | {
 29 |   public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:74:14: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 72 |         merged, event in
 73 |         merged.queue.async {
 74 |           if event.isValue == false
    |              `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:13: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
 74 |           if event.isValue == false
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
    |             `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: capture of 'subscription' with non-sendable type 'Subscription?' in a '@Sendable' closure
 74 |           if event.isValue == false
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
    |                                         `- warning: capture of 'subscription' with non-sendable type 'Subscription?' in a '@Sendable' closure
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
 15 | #endif
 16 |
 17 | final public class Subscription
    |                    `- note: class 'Subscription' does not conform to the 'Sendable' protocol
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: reference to captured var 'subscription' in concurrently-executing code
 74 |           if event.isValue == false
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
    |                                         `- warning: reference to captured var 'subscription' in concurrently-executing code
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:77:44: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
    |                                            `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 78 |             { // merged stream completed normally
 79 |               if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:79:55: warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
 79 |               if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
    |                                                       `- warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 80 |               { // no other event is forthcoming from any stream
 81 |                 let errorEvent = merged.delayedError.map(Event<Value>.init(error:))
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:88:50: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 86 |             else if merged.delayErrorReporting
 87 |             {
 88 |               let error = merged.delayedError ?? event.error!
    |                                                  `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 89 |               if merged.subscriptions.isEmpty
 90 |               {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:120:7: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
118 |     guard !completed else { return }
119 |     queue.async {
120 |       self.closed = true
    |       `- warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
121 |       self.dispatch(Event.streamCompleted)
122 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:159:7: warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a '@Sendable' closure
137 | }
138 |
139 | internal class FlatMapStream<Value>: MergeStream<Value>
    |                `- note: generic class 'FlatMapStream' does not conform to the 'Sendable' protocol
140 | {
141 |   convenience init(qos: DispatchQoS = .current)
    :
157 |   {
158 |     queue.async {
159 |       self.closeFlatMap()
    |       `- warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a '@Sendable' closure
160 |     }
161 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:13: warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a '@Sendable' closure
137 | }
138 |
139 | internal class FlatMapStream<Value>: MergeStream<Value>
    |                `- note: generic class 'FlatMapStream' does not conform to the 'Sendable' protocol
140 | {
141 |   convenience init(qos: DispatchQoS = .current)
    :
189 |         merged.queue.async {
190 |           do {
191 |             merged.performMerge(transform(try event.get()))
    |             `- warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a '@Sendable' closure
192 |           }
193 |           catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:33: warning: capture of 'transform' with non-sendable type '(Value) -> EventStream<U>' in a '@Sendable' closure
189 |         merged.queue.async {
190 |           do {
191 |             merged.performMerge(transform(try event.get()))
    |                                 |- warning: capture of 'transform' with non-sendable type '(Value) -> EventStream<U>' in a '@Sendable' closure
    |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
192 |           }
193 |           catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:47: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
189 |         merged.queue.async {
190 |           do {
191 |             merged.performMerge(transform(try event.get()))
    |                                               `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
192 |           }
193 |           catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:227:7: warning: capture of 'streams' with non-sendable type 'S' in a '@Sendable' closure
221 |   }
222 |
223 |   static private func merge<S: Sequence>(streams: S, into merged: MergeStream<Value>)
    |                             `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
224 |     where S.Iterator.Element: EventStream<Value>
225 |   {
226 |     merged.queue.async {
227 |       streams.forEach {
    |       `- warning: capture of 'streams' with non-sendable type 'S' in a '@Sendable' closure
228 |         merged.performMerge($0)
229 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
226 |     merged.queue.async {
227 |       streams.forEach {
228 |         merged.performMerge($0)
    |         `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
229 |       }
230 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
226 |     merged.queue.async {
227 |       streams.forEach {
228 |         merged.performMerge($0)
    |         `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
229 |       }
230 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:7: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
257 |     let merged = MergeStream<Value>(qos: qos, delayingErrors: false)
258 |     merged.queue.async {
259 |       merged.performMerge(self)
    |       `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:27: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
257 |     let merged = MergeStream<Value>(qos: qos, delayingErrors: false)
258 |     merged.queue.async {
259 |       merged.performMerge(self)
    |                           `- warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 25 | }
 26 |
 27 | open class EventStream<Value>: Publisher
    |            `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 28 | {
 29 |   public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:7: warning: capture of 'others' with non-sendable type 'S' in a '@Sendable' closure
252 |   }
253 |
254 |   public func merge<S: Sequence>(with others: S) -> EventStream<Value>
    |                     `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
255 |     where S.Iterator.Element: EventStream<Value>
256 |   {
    :
258 |     merged.queue.async {
259 |       merged.performMerge(self)
260 |       others.forEach { merged.performMerge($0) }
    |       `- warning: capture of 'others' with non-sendable type 'S' in a '@Sendable' closure
261 |     }
262 |     return merged
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:24: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
258 |     merged.queue.async {
259 |       merged.performMerge(self)
260 |       others.forEach { merged.performMerge($0) }
    |                        `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
261 |     }
262 |     return merged
[36/49] Compiling ReactiveStreams stream-next.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> U' in a '@Sendable' closure
17 |       mapped.queue.async {
18 |         do {
19 |           let transformed = try transform(event.get())
   |                                 |- warning: capture of 'transform' with non-sendable type '(Value) throws -> U' in a '@Sendable' closure
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
17 |       mapped.queue.async {
18 |         do {
19 |           let transformed = try transform(event.get())
   |                                           `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:20:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
18 |         do {
19 |           let transformed = try transform(event.get())
20 |           mapped.dispatch(Event(value: transformed))
   |           `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
21 |         }
22 |         catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> Event<U>' in a '@Sendable' closure
50 |       mapped.queue.async {
51 |         do {
52 |           let transformed = try transform(event.get())
   |                                 |- warning: capture of 'transform' with non-sendable type '(Value) throws -> Event<U>' in a '@Sendable' closure
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 |           mapped.dispatch(transformed)
54 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
50 |       mapped.queue.async {
51 |         do {
52 |           let transformed = try transform(event.get())
   |                                           `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
53 |           mapped.dispatch(transformed)
54 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:53:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
51 |         do {
52 |           let transformed = try transform(event.get())
53 |           mapped.dispatch(transformed)
   |           `- warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a '@Sendable' closure
54 |         }
55 |         catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
 9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
   |            `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 |   private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:233:61: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
231 |   }
232 |
233 |   static public func merge<S: Sequence>(qos: DispatchQoS = .current, streams: S, delayingErrors delay: Bool = false) -> EventStream<Value>
    |                                                             |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
    |                                                             `- note: The missing import of module 'CurrentQoS' will be added implicitly
234 |     where S.Iterator.Element: EventStream<Value>
235 |   {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:19: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
 37 |   public func merge(_ source: EventStream<Value>)
 38 |   {
 39 |     queue.async { self.performMerge(source) }
    |                   `- warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
 40 |   }
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:37: warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
 37 |   public func merge(_ source: EventStream<Value>)
 38 |   {
 39 |     queue.async { self.performMerge(source) }
    |                                     `- warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
 40 |   }
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 25 | }
 26 |
 27 | open class EventStream<Value>: Publisher
    |            `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 28 | {
 29 |   public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:74:14: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 72 |         merged, event in
 73 |         merged.queue.async {
 74 |           if event.isValue == false
    |              `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:13: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
 74 |           if event.isValue == false
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
    |             `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: capture of 'subscription' with non-sendable type 'Subscription?' in a '@Sendable' closure
 74 |           if event.isValue == false
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
    |                                         `- warning: capture of 'subscription' with non-sendable type 'Subscription?' in a '@Sendable' closure
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
 15 | #endif
 16 |
 17 | final public class Subscription
    |                    `- note: class 'Subscription' does not conform to the 'Sendable' protocol
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: reference to captured var 'subscription' in concurrently-executing code
 74 |           if event.isValue == false
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
    |                                         `- warning: reference to captured var 'subscription' in concurrently-executing code
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:77:44: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
    |                                            `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 78 |             { // merged stream completed normally
 79 |               if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:79:55: warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
 79 |               if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
    |                                                       `- warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 80 |               { // no other event is forthcoming from any stream
 81 |                 let errorEvent = merged.delayedError.map(Event<Value>.init(error:))
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:88:50: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 86 |             else if merged.delayErrorReporting
 87 |             {
 88 |               let error = merged.delayedError ?? event.error!
    |                                                  `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 89 |               if merged.subscriptions.isEmpty
 90 |               {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:120:7: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
118 |     guard !completed else { return }
119 |     queue.async {
120 |       self.closed = true
    |       `- warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
121 |       self.dispatch(Event.streamCompleted)
122 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:159:7: warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a '@Sendable' closure
137 | }
138 |
139 | internal class FlatMapStream<Value>: MergeStream<Value>
    |                `- note: generic class 'FlatMapStream' does not conform to the 'Sendable' protocol
140 | {
141 |   convenience init(qos: DispatchQoS = .current)
    :
157 |   {
158 |     queue.async {
159 |       self.closeFlatMap()
    |       `- warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a '@Sendable' closure
160 |     }
161 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:13: warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a '@Sendable' closure
137 | }
138 |
139 | internal class FlatMapStream<Value>: MergeStream<Value>
    |                `- note: generic class 'FlatMapStream' does not conform to the 'Sendable' protocol
140 | {
141 |   convenience init(qos: DispatchQoS = .current)
    :
189 |         merged.queue.async {
190 |           do {
191 |             merged.performMerge(transform(try event.get()))
    |             `- warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a '@Sendable' closure
192 |           }
193 |           catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:33: warning: capture of 'transform' with non-sendable type '(Value) -> EventStream<U>' in a '@Sendable' closure
189 |         merged.queue.async {
190 |           do {
191 |             merged.performMerge(transform(try event.get()))
    |                                 |- warning: capture of 'transform' with non-sendable type '(Value) -> EventStream<U>' in a '@Sendable' closure
    |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
192 |           }
193 |           catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:47: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
189 |         merged.queue.async {
190 |           do {
191 |             merged.performMerge(transform(try event.get()))
    |                                               `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
192 |           }
193 |           catch is StreamCompleted {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:227:7: warning: capture of 'streams' with non-sendable type 'S' in a '@Sendable' closure
221 |   }
222 |
223 |   static private func merge<S: Sequence>(streams: S, into merged: MergeStream<Value>)
    |                             `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
224 |     where S.Iterator.Element: EventStream<Value>
225 |   {
226 |     merged.queue.async {
227 |       streams.forEach {
    |       `- warning: capture of 'streams' with non-sendable type 'S' in a '@Sendable' closure
228 |         merged.performMerge($0)
229 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
226 |     merged.queue.async {
227 |       streams.forEach {
228 |         merged.performMerge($0)
    |         `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
229 |       }
230 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
226 |     merged.queue.async {
227 |       streams.forEach {
228 |         merged.performMerge($0)
    |         `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
229 |       }
230 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:7: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
257 |     let merged = MergeStream<Value>(qos: qos, delayingErrors: false)
258 |     merged.queue.async {
259 |       merged.performMerge(self)
    |       `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a '@Sendable' closure
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:27: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
257 |     let merged = MergeStream<Value>(qos: qos, delayingErrors: false)
258 |     merged.queue.async {
259 |       merged.performMerge(self)
    |                           `- warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 25 | }
 26 |
 27 | open class EventStream<Value>: Publisher
    |            `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 28 | {
 29 |   public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:7: warning: capture of 'others' with non-sendable type 'S' in a '@Sendable' closure
252 |   }
253 |
254 |   public func merge<S: Sequence>(with others: S) -> EventStream<Value>
    |                     `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
255 |     where S.Iterator.Element: EventStream<Value>
256 |   {
    :
258 |     merged.queue.async {
259 |       merged.performMerge(self)
260 |       others.forEach { merged.performMerge($0) }
    |       `- warning: capture of 'others' with non-sendable type 'S' in a '@Sendable' closure
261 |     }
262 |     return merged
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:24: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
  9 | import Dispatch
 10 |
 11 | public class MergeStream<Value>: SubStream<Value>
    |              `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
 12 | {
 13 |   fileprivate var subscriptions = Set<Subscription>()
    :
258 |     merged.queue.async {
259 |       merged.performMerge(self)
260 |       others.forEach { merged.performMerge($0) }
    |                        `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
261 |     }
262 |     return merged
[37/49] Compiling ReactiveStreams deferred-subscriber.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/publisher.swift:9:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol EventSource: class
   |                              `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   func updateRequest(_ requested: Int64)
[38/49] Compiling ReactiveStreams event.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/publisher.swift:9:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol EventSource: class
   |                              `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   func updateRequest(_ requested: Int64)
[39/49] Compiling ReactiveStreams publisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/publisher.swift:9:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol EventSource: class
   |                              `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   func updateRequest(_ requested: Int64)
[40/49] Compiling ReactiveStreams stream.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:154:7: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
 25 | }
 26 |
 27 | open class EventStream<Value>: Publisher
    |            `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 28 | {
 29 |   public typealias EventType = Value
    :
152 |     guard !completed else { return }
153 |     queue.async {
154 |       self.dispatch(Event.streamCompleted)
    |       `- warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
155 |     }
156 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:44: warning: capture of 'sub' with non-sendable type 'S' in a '@Sendable' closure
181 |   }
182 |
183 |   final public func subscribe<S>(substream: S) where S: SubStream<Value>
    |                               `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
184 |   {
185 |     subscribe(subscriptionHandler: substream.setSubscription) {
186 |       [weak sub = substream] (_, event: Event<Value>) in
187 |       if let sub = sub { sub.queue.async { sub.dispatch(event) } }
    |                                            `- warning: capture of 'sub' with non-sendable type 'S' in a '@Sendable' closure
188 |     }
189 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:57: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
185 |     subscribe(subscriptionHandler: substream.setSubscription) {
186 |       [weak sub = substream] (_, event: Event<Value>) in
187 |       if let sub = sub { sub.queue.async { sub.dispatch(event) } }
    |                                                         `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
188 |     }
189 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:267:16: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
 25 | }
 26 |
 27 | open class EventStream<Value>: Publisher
    |            `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 28 | {
 29 |   public typealias EventType = Value
    :
265 |     {
266 |       queue.async {
267 |         guard !self.completed else { return }
    |                `- warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
268 |
269 |         let key = WeakSubscription(subscription)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:269:36: warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
267 |         guard !self.completed else { return }
268 |
269 |         let key = WeakSubscription(subscription)
    |                                    `- warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
270 |         if let notificationHandler = self.observers.removeValue(forKey: key)
271 |         {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
 15 | #endif
 16 |
 17 | final public class Subscription
    |                    `- note: class 'Subscription' does not conform to the 'Sendable' protocol
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscriber.swift:9:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol Subscriber: class
   |                             `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   associatedtype Value
[41/49] Compiling ReactiveStreams subscriber.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:154:7: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
 25 | }
 26 |
 27 | open class EventStream<Value>: Publisher
    |            `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 28 | {
 29 |   public typealias EventType = Value
    :
152 |     guard !completed else { return }
153 |     queue.async {
154 |       self.dispatch(Event.streamCompleted)
    |       `- warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
155 |     }
156 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:44: warning: capture of 'sub' with non-sendable type 'S' in a '@Sendable' closure
181 |   }
182 |
183 |   final public func subscribe<S>(substream: S) where S: SubStream<Value>
    |                               `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
184 |   {
185 |     subscribe(subscriptionHandler: substream.setSubscription) {
186 |       [weak sub = substream] (_, event: Event<Value>) in
187 |       if let sub = sub { sub.queue.async { sub.dispatch(event) } }
    |                                            `- warning: capture of 'sub' with non-sendable type 'S' in a '@Sendable' closure
188 |     }
189 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:57: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
185 |     subscribe(subscriptionHandler: substream.setSubscription) {
186 |       [weak sub = substream] (_, event: Event<Value>) in
187 |       if let sub = sub { sub.queue.async { sub.dispatch(event) } }
    |                                                         `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
188 |     }
189 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:267:16: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
 25 | }
 26 |
 27 | open class EventStream<Value>: Publisher
    |            `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
 28 | {
 29 |   public typealias EventType = Value
    :
265 |     {
266 |       queue.async {
267 |         guard !self.completed else { return }
    |                `- warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a '@Sendable' closure
268 |
269 |         let key = WeakSubscription(subscription)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:269:36: warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
267 |         guard !self.completed else { return }
268 |
269 |         let key = WeakSubscription(subscription)
    |                                    `- warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
270 |         if let notificationHandler = self.observers.removeValue(forKey: key)
271 |         {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
 15 | #endif
 16 |
 17 | final public class Subscription
    |                    `- note: class 'Subscription' does not conform to the 'Sendable' protocol
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscriber.swift:9:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol Subscriber: class
   |                             `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   associatedtype Value
[42/49] Compiling ReactiveStreams stream-substream.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-timer.swift:23:35: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
21 |   private let timingLeeway: DispatchTimeInterval
22 |
23 |   public init(qos: DispatchQoS = .current, interval: TimeInterval, tolerance: DispatchTimeInterval? = nil)
   |                                   |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                   `- note: The missing import of module 'CurrentQoS' will be added implicitly
24 |   {
25 |     let queue = ValidatedQueue(label: "timerstream", qos: qos)
[43/49] Compiling ReactiveStreams stream-timer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-timer.swift:23:35: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
21 |   private let timingLeeway: DispatchTimeInterval
22 |
23 |   public init(qos: DispatchQoS = .current, interval: TimeInterval, tolerance: DispatchTimeInterval? = nil)
   |                                   |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                   `- note: The missing import of module 'CurrentQoS' will be added implicitly
24 |   {
25 |     let queue = ValidatedQueue(label: "timerstream", qos: qos)
[44/49] Compiling ReactiveStreams stream-notifications.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:56: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
 32 |   func onValue(_ value: Value)
 33 |   {
 34 |     if let handler = self.valueHandler { queue.async { handler(value) } }
    |                                                        |- warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
    |                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 35 |   }
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:64: warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | private class NotificationSubscriber<Value>: Subscriber
    |                                      `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 12 | {
 13 |   private let queue: DispatchQueue
    :
 32 |   func onValue(_ value: Value)
 33 |   {
 34 |     if let handler = self.valueHandler { queue.async { handler(value) } }
    |                                                                `- warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
 35 |   }
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:40:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | private class NotificationSubscriber<Value>: Subscriber
    |               `- note: generic class 'NotificationSubscriber' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let queue: DispatchQueue
    :
 38 |   {
 39 |     queue.async {
 40 |       if let handler = self.errorHandler { handler(error) }
    |                        `- warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
 41 |       self.cleanup()
 42 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:48:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | private class NotificationSubscriber<Value>: Subscriber
    |               `- note: generic class 'NotificationSubscriber' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let queue: DispatchQueue
    :
 46 |   {
 47 |     queue.async {
 48 |       if let handler = self.completionHandler { handler() }
    |                        `- warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
 49 |       self.cleanup()
 50 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:11: warning: capture of 'onEvent' with non-sendable type '(Event<Value>) -> Void' in a '@Sendable' closure
 23 |         notifier, event in
 24 |         notifier.queue.async {
 25 |           onEvent(event)
    |           |- warning: capture of 'onEvent' with non-sendable type '(Event<Value>) -> Void' in a '@Sendable' closure
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 26 |           if event.isValue == false { _ = notifier.sub.take() }
 27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:19: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 23 |         notifier, event in
 24 |         notifier.queue.async {
 25 |           onEvent(event)
    |                   `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 26 |           if event.isValue == false { _ = notifier.sub.take() }
 27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:26:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |              `- note: generic class 'StreamNotifier' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 24 |         notifier.queue.async {
 25 |           onEvent(event)
 26 |           if event.isValue == false { _ = notifier.sub.take() }
    |                                           `- warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
 27 |         }
 28 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:11: warning: capture of 'onEvent' with non-sendable type '(Subscription, Event<Value>) -> Void' in a '@Sendable' closure
 39 |         notifier, subscription, event in
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
    |           |- warning: capture of 'onEvent' with non-sendable type '(Subscription, Event<Value>) -> Void' in a '@Sendable' closure
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:19: warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 39 |         notifier, subscription, event in
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
    |                   `- warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
 15 | #endif
 16 |
 17 | final public class Subscription
    |                    `- note: class 'Subscription' does not conform to the 'Sendable' protocol
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:33: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 39 |         notifier, subscription, event in
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
    |                                 `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:42:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |              `- note: generic class 'StreamNotifier' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
 42 |           if event.isValue == false { _ = notifier.sub.take() }
    |                                           `- warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
 43 |         }
 44 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:34: warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
 55 |         notifier, event in
 56 |         if let value = event.value
 57 |         { notifier.queue.async { onValue(value) } }
    |                                  |- warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 58 |         else
 59 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:42: warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |                             `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 55 |         notifier, event in
 56 |         if let value = event.value
 57 |         { notifier.queue.async { onValue(value) } }
    |                                          `- warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
 58 |         else
 59 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:34: warning: capture of 'onValue' with non-sendable type '(Subscription, Value) -> Void' in a '@Sendable' closure
 71 |         notifier, subscription, event in
 72 |         if let value = event.value
 73 |         { notifier.queue.async { onValue(subscription, value) } }
    |                                  |- warning: capture of 'onValue' with non-sendable type '(Subscription, Value) -> Void' in a '@Sendable' closure
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 74 |         else
 75 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:42: warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 71 |         notifier, subscription, event in
 72 |         if let value = event.value
 73 |         { notifier.queue.async { onValue(subscription, value) } }
    |                                          `- warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 74 |         else
 75 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
 15 | #endif
 16 |
 17 | final public class Subscription
    |                    `- note: class 'Subscription' does not conform to the 'Sendable' protocol
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:56: warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |                             `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 71 |         notifier, subscription, event in
 72 |         if let value = event.value
 73 |         { notifier.queue.async { onValue(subscription, value) } }
    |                                                        `- warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
 74 |         else
 75 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:89:61: warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
 87 |         notifier, event in
 88 |         assert(event.value == nil)
 89 |         if let error = event.error { notifier.queue.async { onError(error) } }
    |                                                             |- warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
    |                                                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 90 |         _ = notifier.sub.take()
 91 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:104:56: warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a '@Sendable' closure
102 |         notifier, event in
103 |         assert(event.value == nil)
104 |         if event.state == nil { notifier.queue.async { onCompletion() } }
    |                                                        |- warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a '@Sendable' closure
    |                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
105 |         _ = notifier.sub.take()
106 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:19:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
17 |   private let task: (Int) throws -> Value
18 |
19 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true, task: @escaping (Int) throws -> Value)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
20 |   {
21 |     self.init(validated: ValidatedQueue(label: "onrequeststream", qos: qos), autostart: autostart, task: task)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:84:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
82 | extension OnRequestStream where Value == Int
83 | {
84 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
85 |   {
86 |     self.init(qos: qos, autostart: autostart, task: { $0 })
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:55:45: warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a '@Sendable' closure
10 | import CAtomics
11 |
12 | open class OnRequestStream<Value>: EventStream<Value>
   |            `- note: generic class 'OnRequestStream' does not conform to the 'Sendable' protocol
13 | {
14 |   private var started = UnsafeMutablePointer<AtomicBool>.allocate(capacity: 1)
   :
53 |       dispatch(Event(value: value))
54 |       counter += 1
55 |       queue.async(execute: { [weak self] in self?.processNext() })
   |                                             `- warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a '@Sendable' closure
56 |     }
57 |     catch {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:69:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
67 |     } while !CAtomicsCompareAndExchangeWeak(started, &streaming, true, .relaxed, .relaxed)
68 |
69 |     queue.async(execute: self.processNext)
   |                               `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
70 |   }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:77:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
75 |     if CAtomicsLoad(started, .relaxed)
76 |     { // enqueue some event processing in case stream had been paused
77 |       queue.async(execute: self.processNext)
   |                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
78 |     }
79 |   }
[45/49] Compiling ReactiveStreams stream-notifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:56: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
 32 |   func onValue(_ value: Value)
 33 |   {
 34 |     if let handler = self.valueHandler { queue.async { handler(value) } }
    |                                                        |- warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
    |                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 35 |   }
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:64: warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | private class NotificationSubscriber<Value>: Subscriber
    |                                      `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 12 | {
 13 |   private let queue: DispatchQueue
    :
 32 |   func onValue(_ value: Value)
 33 |   {
 34 |     if let handler = self.valueHandler { queue.async { handler(value) } }
    |                                                                `- warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
 35 |   }
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:40:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | private class NotificationSubscriber<Value>: Subscriber
    |               `- note: generic class 'NotificationSubscriber' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let queue: DispatchQueue
    :
 38 |   {
 39 |     queue.async {
 40 |       if let handler = self.errorHandler { handler(error) }
    |                        `- warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
 41 |       self.cleanup()
 42 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:48:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | private class NotificationSubscriber<Value>: Subscriber
    |               `- note: generic class 'NotificationSubscriber' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let queue: DispatchQueue
    :
 46 |   {
 47 |     queue.async {
 48 |       if let handler = self.completionHandler { handler() }
    |                        `- warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
 49 |       self.cleanup()
 50 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:11: warning: capture of 'onEvent' with non-sendable type '(Event<Value>) -> Void' in a '@Sendable' closure
 23 |         notifier, event in
 24 |         notifier.queue.async {
 25 |           onEvent(event)
    |           |- warning: capture of 'onEvent' with non-sendable type '(Event<Value>) -> Void' in a '@Sendable' closure
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 26 |           if event.isValue == false { _ = notifier.sub.take() }
 27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:19: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 23 |         notifier, event in
 24 |         notifier.queue.async {
 25 |           onEvent(event)
    |                   `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 26 |           if event.isValue == false { _ = notifier.sub.take() }
 27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:26:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |              `- note: generic class 'StreamNotifier' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 24 |         notifier.queue.async {
 25 |           onEvent(event)
 26 |           if event.isValue == false { _ = notifier.sub.take() }
    |                                           `- warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
 27 |         }
 28 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:11: warning: capture of 'onEvent' with non-sendable type '(Subscription, Event<Value>) -> Void' in a '@Sendable' closure
 39 |         notifier, subscription, event in
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
    |           |- warning: capture of 'onEvent' with non-sendable type '(Subscription, Event<Value>) -> Void' in a '@Sendable' closure
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:19: warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 39 |         notifier, subscription, event in
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
    |                   `- warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
 15 | #endif
 16 |
 17 | final public class Subscription
    |                    `- note: class 'Subscription' does not conform to the 'Sendable' protocol
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:33: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 39 |         notifier, subscription, event in
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
    |                                 `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:42:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |              `- note: generic class 'StreamNotifier' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
 42 |           if event.isValue == false { _ = notifier.sub.take() }
    |                                           `- warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
 43 |         }
 44 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:34: warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
 55 |         notifier, event in
 56 |         if let value = event.value
 57 |         { notifier.queue.async { onValue(value) } }
    |                                  |- warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 58 |         else
 59 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:42: warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |                             `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 55 |         notifier, event in
 56 |         if let value = event.value
 57 |         { notifier.queue.async { onValue(value) } }
    |                                          `- warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
 58 |         else
 59 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:34: warning: capture of 'onValue' with non-sendable type '(Subscription, Value) -> Void' in a '@Sendable' closure
 71 |         notifier, subscription, event in
 72 |         if let value = event.value
 73 |         { notifier.queue.async { onValue(subscription, value) } }
    |                                  |- warning: capture of 'onValue' with non-sendable type '(Subscription, Value) -> Void' in a '@Sendable' closure
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 74 |         else
 75 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:42: warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 71 |         notifier, subscription, event in
 72 |         if let value = event.value
 73 |         { notifier.queue.async { onValue(subscription, value) } }
    |                                          `- warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 74 |         else
 75 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
 15 | #endif
 16 |
 17 | final public class Subscription
    |                    `- note: class 'Subscription' does not conform to the 'Sendable' protocol
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:56: warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |                             `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 71 |         notifier, subscription, event in
 72 |         if let value = event.value
 73 |         { notifier.queue.async { onValue(subscription, value) } }
    |                                                        `- warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
 74 |         else
 75 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:89:61: warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
 87 |         notifier, event in
 88 |         assert(event.value == nil)
 89 |         if let error = event.error { notifier.queue.async { onError(error) } }
    |                                                             |- warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
    |                                                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 90 |         _ = notifier.sub.take()
 91 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:104:56: warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a '@Sendable' closure
102 |         notifier, event in
103 |         assert(event.value == nil)
104 |         if event.state == nil { notifier.queue.async { onCompletion() } }
    |                                                        |- warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a '@Sendable' closure
    |                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
105 |         _ = notifier.sub.take()
106 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:19:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
17 |   private let task: (Int) throws -> Value
18 |
19 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true, task: @escaping (Int) throws -> Value)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
20 |   {
21 |     self.init(validated: ValidatedQueue(label: "onrequeststream", qos: qos), autostart: autostart, task: task)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:84:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
82 | extension OnRequestStream where Value == Int
83 | {
84 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
85 |   {
86 |     self.init(qos: qos, autostart: autostart, task: { $0 })
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:55:45: warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a '@Sendable' closure
10 | import CAtomics
11 |
12 | open class OnRequestStream<Value>: EventStream<Value>
   |            `- note: generic class 'OnRequestStream' does not conform to the 'Sendable' protocol
13 | {
14 |   private var started = UnsafeMutablePointer<AtomicBool>.allocate(capacity: 1)
   :
53 |       dispatch(Event(value: value))
54 |       counter += 1
55 |       queue.async(execute: { [weak self] in self?.processNext() })
   |                                             `- warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a '@Sendable' closure
56 |     }
57 |     catch {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:69:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
67 |     } while !CAtomicsCompareAndExchangeWeak(started, &streaming, true, .relaxed, .relaxed)
68 |
69 |     queue.async(execute: self.processNext)
   |                               `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
70 |   }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:77:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
75 |     if CAtomicsLoad(started, .relaxed)
76 |     { // enqueue some event processing in case stream had been paused
77 |       queue.async(execute: self.processNext)
   |                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
78 |     }
79 |   }
[46/49] Compiling ReactiveStreams stream-onrequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:56: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
 32 |   func onValue(_ value: Value)
 33 |   {
 34 |     if let handler = self.valueHandler { queue.async { handler(value) } }
    |                                                        |- warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
    |                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 35 |   }
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:64: warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | private class NotificationSubscriber<Value>: Subscriber
    |                                      `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 12 | {
 13 |   private let queue: DispatchQueue
    :
 32 |   func onValue(_ value: Value)
 33 |   {
 34 |     if let handler = self.valueHandler { queue.async { handler(value) } }
    |                                                                `- warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
 35 |   }
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:40:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | private class NotificationSubscriber<Value>: Subscriber
    |               `- note: generic class 'NotificationSubscriber' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let queue: DispatchQueue
    :
 38 |   {
 39 |     queue.async {
 40 |       if let handler = self.errorHandler { handler(error) }
    |                        `- warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
 41 |       self.cleanup()
 42 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:48:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | private class NotificationSubscriber<Value>: Subscriber
    |               `- note: generic class 'NotificationSubscriber' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let queue: DispatchQueue
    :
 46 |   {
 47 |     queue.async {
 48 |       if let handler = self.completionHandler { handler() }
    |                        `- warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a '@Sendable' closure
 49 |       self.cleanup()
 50 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:11: warning: capture of 'onEvent' with non-sendable type '(Event<Value>) -> Void' in a '@Sendable' closure
 23 |         notifier, event in
 24 |         notifier.queue.async {
 25 |           onEvent(event)
    |           |- warning: capture of 'onEvent' with non-sendable type '(Event<Value>) -> Void' in a '@Sendable' closure
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 26 |           if event.isValue == false { _ = notifier.sub.take() }
 27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:19: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 23 |         notifier, event in
 24 |         notifier.queue.async {
 25 |           onEvent(event)
    |                   `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 26 |           if event.isValue == false { _ = notifier.sub.take() }
 27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:26:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |              `- note: generic class 'StreamNotifier' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 24 |         notifier.queue.async {
 25 |           onEvent(event)
 26 |           if event.isValue == false { _ = notifier.sub.take() }
    |                                           `- warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
 27 |         }
 28 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:11: warning: capture of 'onEvent' with non-sendable type '(Subscription, Event<Value>) -> Void' in a '@Sendable' closure
 39 |         notifier, subscription, event in
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
    |           |- warning: capture of 'onEvent' with non-sendable type '(Subscription, Event<Value>) -> Void' in a '@Sendable' closure
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:19: warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 39 |         notifier, subscription, event in
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
    |                   `- warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
 15 | #endif
 16 |
 17 | final public class Subscription
    |                    `- note: class 'Subscription' does not conform to the 'Sendable' protocol
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:33: warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 39 |         notifier, subscription, event in
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
    |                                 `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a '@Sendable' closure
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
  9 | import class Foundation.NSError
 10 |
 11 | public struct Event<Value>
    |               `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
 12 | {
 13 |   @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:42:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |              `- note: generic class 'StreamNotifier' does not conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 40 |         notifier.queue.async {
 41 |           onEvent(subscription, event)
 42 |           if event.isValue == false { _ = notifier.sub.take() }
    |                                           `- warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a '@Sendable' closure
 43 |         }
 44 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:34: warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
 55 |         notifier, event in
 56 |         if let value = event.value
 57 |         { notifier.queue.async { onValue(value) } }
    |                                  |- warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a '@Sendable' closure
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 58 |         else
 59 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:42: warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |                             `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 55 |         notifier, event in
 56 |         if let value = event.value
 57 |         { notifier.queue.async { onValue(value) } }
    |                                          `- warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
 58 |         else
 59 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:34: warning: capture of 'onValue' with non-sendable type '(Subscription, Value) -> Void' in a '@Sendable' closure
 71 |         notifier, subscription, event in
 72 |         if let value = event.value
 73 |         { notifier.queue.async { onValue(subscription, value) } }
    |                                  |- warning: capture of 'onValue' with non-sendable type '(Subscription, Value) -> Void' in a '@Sendable' closure
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 74 |         else
 75 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:42: warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 71 |         notifier, subscription, event in
 72 |         if let value = event.value
 73 |         { notifier.queue.async { onValue(subscription, value) } }
    |                                          `- warning: capture of 'subscription' with non-sendable type 'Subscription' in a '@Sendable' closure
 74 |         else
 75 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
 15 | #endif
 16 |
 17 | final public class Subscription
    |                    `- note: class 'Subscription' does not conform to the 'Sendable' protocol
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:56: warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
  9 | import Dispatch
 10 |
 11 | public class StreamNotifier<Value>
    |                             `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 12 | {
 13 |   private let sub = LockedSubscription()
    :
 71 |         notifier, subscription, event in
 72 |         if let value = event.value
 73 |         { notifier.queue.async { onValue(subscription, value) } }
    |                                                        `- warning: capture of 'value' with non-sendable type 'Value' in a '@Sendable' closure
 74 |         else
 75 |         { _ = notifier.sub.take() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:89:61: warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
 87 |         notifier, event in
 88 |         assert(event.value == nil)
 89 |         if let error = event.error { notifier.queue.async { onError(error) } }
    |                                                             |- warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
    |                                                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 90 |         _ = notifier.sub.take()
 91 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:104:56: warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a '@Sendable' closure
102 |         notifier, event in
103 |         assert(event.value == nil)
104 |         if event.state == nil { notifier.queue.async { onCompletion() } }
    |                                                        |- warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a '@Sendable' closure
    |                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
105 |         _ = notifier.sub.take()
106 |       }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:19:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
17 |   private let task: (Int) throws -> Value
18 |
19 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true, task: @escaping (Int) throws -> Value)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
20 |   {
21 |     self.init(validated: ValidatedQueue(label: "onrequeststream", qos: qos), autostart: autostart, task: task)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:84:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
82 | extension OnRequestStream where Value == Int
83 | {
84 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
85 |   {
86 |     self.init(qos: qos, autostart: autostart, task: { $0 })
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:55:45: warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a '@Sendable' closure
10 | import CAtomics
11 |
12 | open class OnRequestStream<Value>: EventStream<Value>
   |            `- note: generic class 'OnRequestStream' does not conform to the 'Sendable' protocol
13 | {
14 |   private var started = UnsafeMutablePointer<AtomicBool>.allocate(capacity: 1)
   :
53 |       dispatch(Event(value: value))
54 |       counter += 1
55 |       queue.async(execute: { [weak self] in self?.processNext() })
   |                                             `- warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a '@Sendable' closure
56 |     }
57 |     catch {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:69:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
67 |     } while !CAtomicsCompareAndExchangeWeak(started, &streaming, true, .relaxed, .relaxed)
68 |
69 |     queue.async(execute: self.processNext)
   |                               `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
70 |   }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:77:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
75 |     if CAtomicsLoad(started, .relaxed)
76 |     { // enqueue some event processing in case stream had been paused
77 |       queue.async(execute: self.processNext)
   |                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
78 |     }
79 |   }
[47/49] Compiling ReactiveStreams stream-paused.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:90:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
 88 |     { // the queue had been empty or blocked
 89 |       // resume processing enqueued events
 90 |       queue.async(execute: self.processNext)
    |                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
 91 |     }
 92 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:132:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
130 |
131 |       dispatch(event)
132 |       queue.async(execute: self.processNext)
    |                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
133 |       return
134 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:145:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
143 |     super.processAdditionalRequest(additional)
144 |     // enqueue some event processing, in case stream had been paused
145 |     queue.async(execute: self.processNext)
    |                               `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
146 |   }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:56:9: warning: capture of 'self' with non-sendable type 'ReducingStream<InputValue, OutputValue>' in a '@Sendable' closure
 28 | }
 29 |
 30 | class ReducingStream<InputValue, OutputValue>: SingleValueStream<InputValue, OutputValue>
    |       `- note: generic class 'ReducingStream' does not conform to the 'Sendable' protocol
 31 | {
 32 |   private var current: OutputValue
    :
 54 |     catch {
 55 |       queue.async {
 56 |         self.dispatch(Event(value: self.current))
    |         `- warning: capture of 'self' with non-sendable type 'ReducingStream<InputValue, OutputValue>' in a '@Sendable' closure
 57 |         if (error is StreamCompleted)
 58 |         { self.dispatch(Event.streamCompleted) }
[48/49] Compiling ReactiveStreams stream-post.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:90:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
 88 |     { // the queue had been empty or blocked
 89 |       // resume processing enqueued events
 90 |       queue.async(execute: self.processNext)
    |                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
 91 |     }
 92 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:132:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
130 |
131 |       dispatch(event)
132 |       queue.async(execute: self.processNext)
    |                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
133 |       return
134 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:145:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
143 |     super.processAdditionalRequest(additional)
144 |     // enqueue some event processing, in case stream had been paused
145 |     queue.async(execute: self.processNext)
    |                               `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
146 |   }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:56:9: warning: capture of 'self' with non-sendable type 'ReducingStream<InputValue, OutputValue>' in a '@Sendable' closure
 28 | }
 29 |
 30 | class ReducingStream<InputValue, OutputValue>: SingleValueStream<InputValue, OutputValue>
    |       `- note: generic class 'ReducingStream' does not conform to the 'Sendable' protocol
 31 | {
 32 |   private var current: OutputValue
    :
 54 |     catch {
 55 |       queue.async {
 56 |         self.dispatch(Event(value: self.current))
    |         `- warning: capture of 'self' with non-sendable type 'ReducingStream<InputValue, OutputValue>' in a '@Sendable' closure
 57 |         if (error is StreamCompleted)
 58 |         { self.dispatch(Event.streamCompleted) }
[49/49] Compiling ReactiveStreams stream-reduce.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:90:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
 88 |     { // the queue had been empty or blocked
 89 |       // resume processing enqueued events
 90 |       queue.async(execute: self.processNext)
    |                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
 91 |     }
 92 |   }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:132:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
130 |
131 |       dispatch(event)
132 |       queue.async(execute: self.processNext)
    |                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
133 |       return
134 |     }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:145:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
143 |     super.processAdditionalRequest(additional)
144 |     // enqueue some event processing, in case stream had been paused
145 |     queue.async(execute: self.processNext)
    |                               `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
146 |   }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:56:9: warning: capture of 'self' with non-sendable type 'ReducingStream<InputValue, OutputValue>' in a '@Sendable' closure
 28 | }
 29 |
 30 | class ReducingStream<InputValue, OutputValue>: SingleValueStream<InputValue, OutputValue>
    |       `- note: generic class 'ReducingStream' does not conform to the 'Sendable' protocol
 31 | {
 32 |   private var current: OutputValue
    :
 54 |     catch {
 55 |       queue.async {
 56 |         self.dispatch(Event(value: self.current))
    |         `- warning: capture of 'self' with non-sendable type 'ReducingStream<InputValue, OutputValue>' in a '@Sendable' closure
 57 |         if (error is StreamCompleted)
 58 |         { self.dispatch(Event.streamCompleted) }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/4] Compiling CurrentQoS CurrentQoS.swift
[3/4] Emitting module CurrentQoS
[4/4] Compiling CurrentQoS BetterQoS.swift
[5/17] Compiling deferred dispatch-utilities.swift
[6/17] Compiling deferred result-extensions.swift
[7/18] Compiling deferred deferred-timeout.swift
[8/18] Compiling deferred deferred-split.swift
[9/18] Compiling deferred deferred-state.swift
[10/18] Compiling deferred deferred.swift
[11/18] Compiling deferred deferred-first.swift
[12/18] Compiling deferred deferred-parallelize.swift
[13/18] Compiling deferred waiter.swift
[14/18] Emitting module deferred
[15/18] Compiling deferred deferred-combine.swift
[16/18] Compiling deferred deferred-delay.swift
[17/18] Compiling deferred deferred-error.swift
[18/18] Compiling deferred deferred-extras.swift
[19/43] Emitting module ReactiveStreams
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/publisher.swift:9:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol EventSource: class
   |                              `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   func updateRequest(_ requested: Int64)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-limited.swift:18:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
16 |   public var count: Int64 { return CAtomicsLoad(counter, .relaxed) }
17 |
18 |   public convenience init(qos: DispatchQoS = .current, count: Int64)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
19 |   {
20 |     self.init(validated: ValidatedQueue(label: "limitedstream", qos: qos), count: max(count,0))
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:233:61: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
231 |   }
232 |
233 |   static public func merge<S: Sequence>(qos: DispatchQoS = .current, streams: S, delayingErrors delay: Bool = false) -> EventStream<Value>
    |                                                             |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
    |                                                             `- note: The missing import of module 'CurrentQoS' will be added implicitly
234 |     where S.Iterator.Element: EventStream<Value>
235 |   {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:19:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
17 |   private let task: (Int) throws -> Value
18 |
19 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true, task: @escaping (Int) throws -> Value)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
20 |   {
21 |     self.init(validated: ValidatedQueue(label: "onrequeststream", qos: qos), autostart: autostart, task: task)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:84:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
82 | extension OnRequestStream where Value == Int
83 | {
84 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
85 |   {
86 |     self.init(qos: qos, autostart: autostart, task: { $0 })
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-timer.swift:23:35: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
21 |   private let timingLeeway: DispatchTimeInterval
22 |
23 |   public init(qos: DispatchQoS = .current, interval: TimeInterval, tolerance: DispatchTimeInterval? = nil)
   |                                   |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                   `- note: The missing import of module 'CurrentQoS' will be added implicitly
24 |   {
25 |     let queue = ValidatedQueue(label: "timerstream", qos: qos)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscriber.swift:9:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol Subscriber: class
   |                             `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   associatedtype Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:15:50: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
13 |   let queue: DispatchQueue
14 |
15 |   public init(label: String, qos: DispatchQoS = .current)
   |                                                  |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                                  `- note: The missing import of module 'CurrentQoS' will be added implicitly
16 |   {
17 |     self.queue = DispatchQueue(label: label+"-\(qos.qosClass)", qos: qos)
[20/45] Compiling ReactiveStreams deferred-final.swift
[21/45] Compiling ReactiveStreams deferred-next.swift
[22/45] Compiling ReactiveStreams deferred-stream.swift
[23/45] Compiling ReactiveStreams stream-map.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:233:61: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
231 |   }
232 |
233 |   static public func merge<S: Sequence>(qos: DispatchQoS = .current, streams: S, delayingErrors delay: Bool = false) -> EventStream<Value>
    |                                                             |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
    |                                                             `- note: The missing import of module 'CurrentQoS' will be added implicitly
234 |     where S.Iterator.Element: EventStream<Value>
235 |   {
[24/45] Compiling ReactiveStreams stream-merge.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:233:61: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
231 |   }
232 |
233 |   static public func merge<S: Sequence>(qos: DispatchQoS = .current, streams: S, delayingErrors delay: Bool = false) -> EventStream<Value>
    |                                                             |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
    |                                                             `- note: The missing import of module 'CurrentQoS' will be added implicitly
234 |     where S.Iterator.Element: EventStream<Value>
235 |   {
[25/45] Compiling ReactiveStreams stream-next.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:233:61: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
231 |   }
232 |
233 |   static public func merge<S: Sequence>(qos: DispatchQoS = .current, streams: S, delayingErrors delay: Bool = false) -> EventStream<Value>
    |                                                             |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
    |                                                             `- note: The missing import of module 'CurrentQoS' will be added implicitly
234 |     where S.Iterator.Element: EventStream<Value>
235 |   {
[26/45] Compiling ReactiveStreams subscription.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:15:50: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
13 |   let queue: DispatchQueue
14 |
15 |   public init(label: String, qos: DispatchQoS = .current)
   |                                                  |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                                  `- note: The missing import of module 'CurrentQoS' will be added implicitly
16 |   {
17 |     self.queue = DispatchQueue(label: label+"-\(qos.qosClass)", qos: qos)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:23:18: error: 'OS_dispatch_queue_serial' has been renamed to 'DispatchSerialQueue'
21 |   {
22 | #if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS))
23 |     if target is OS_dispatch_queue_serial
   |                  `- error: 'OS_dispatch_queue_serial' has been renamed to 'DispatchSerialQueue'
24 |     {
25 |       self.queue = target
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/dispatch/queue.h:149:1: note: 'OS_dispatch_queue_serial' was obsoleted in Swift 3
 147 |  */
 148 | API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0), watchos(5.0))
 149 | DISPATCH_DECL_SERIAL_EXECUTOR_SWIFT(dispatch_queue_serial, DispatchSerialQueue);
     | `- note: 'OS_dispatch_queue_serial' was obsoleted in Swift 3
 150 |
 151 | /*!
[27/45] Compiling ReactiveStreams validated-queue.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:15:50: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
13 |   let queue: DispatchQueue
14 |
15 |   public init(label: String, qos: DispatchQoS = .current)
   |                                                  |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                                  `- note: The missing import of module 'CurrentQoS' will be added implicitly
16 |   {
17 |     self.queue = DispatchQueue(label: label+"-\(qos.qosClass)", qos: qos)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:23:18: error: 'OS_dispatch_queue_serial' has been renamed to 'DispatchSerialQueue'
21 |   {
22 | #if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS))
23 |     if target is OS_dispatch_queue_serial
   |                  `- error: 'OS_dispatch_queue_serial' has been renamed to 'DispatchSerialQueue'
24 |     {
25 |       self.queue = target
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/dispatch/queue.h:149:1: note: 'OS_dispatch_queue_serial' was obsoleted in Swift 3
 147 |  */
 148 | API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0), watchos(5.0))
 149 | DISPATCH_DECL_SERIAL_EXECUTOR_SWIFT(dispatch_queue_serial, DispatchSerialQueue);
     | `- note: 'OS_dispatch_queue_serial' was obsoleted in Swift 3
 150 |
 151 | /*!
[28/45] Compiling ReactiveStreams stream-filter.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-limited.swift:18:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
16 |   public var count: Int64 { return CAtomicsLoad(counter, .relaxed) }
17 |
18 |   public convenience init(qos: DispatchQoS = .current, count: Int64)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
19 |   {
20 |     self.init(validated: ValidatedQueue(label: "limitedstream", qos: qos), count: max(count,0))
[29/45] Compiling ReactiveStreams stream-final.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-limited.swift:18:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
16 |   public var count: Int64 { return CAtomicsLoad(counter, .relaxed) }
17 |
18 |   public convenience init(qos: DispatchQoS = .current, count: Int64)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
19 |   {
20 |     self.init(validated: ValidatedQueue(label: "limitedstream", qos: qos), count: max(count,0))
[30/45] Compiling ReactiveStreams stream-limited.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-limited.swift:18:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
16 |   public var count: Int64 { return CAtomicsLoad(counter, .relaxed) }
17 |
18 |   public convenience init(qos: DispatchQoS = .current, count: Int64)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
19 |   {
20 |     self.init(validated: ValidatedQueue(label: "limitedstream", qos: qos), count: max(count,0))
[31/45] Compiling ReactiveStreams stream-substream.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-timer.swift:23:35: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
21 |   private let timingLeeway: DispatchTimeInterval
22 |
23 |   public init(qos: DispatchQoS = .current, interval: TimeInterval, tolerance: DispatchTimeInterval? = nil)
   |                                   |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                   `- note: The missing import of module 'CurrentQoS' will be added implicitly
24 |   {
25 |     let queue = ValidatedQueue(label: "timerstream", qos: qos)
[32/45] Compiling ReactiveStreams stream-timer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-timer.swift:23:35: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
21 |   private let timingLeeway: DispatchTimeInterval
22 |
23 |   public init(qos: DispatchQoS = .current, interval: TimeInterval, tolerance: DispatchTimeInterval? = nil)
   |                                   |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                   `- note: The missing import of module 'CurrentQoS' will be added implicitly
24 |   {
25 |     let queue = ValidatedQueue(label: "timerstream", qos: qos)
[33/45] Compiling ReactiveStreams stream-notifications.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:19:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
17 |   private let task: (Int) throws -> Value
18 |
19 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true, task: @escaping (Int) throws -> Value)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
20 |   {
21 |     self.init(validated: ValidatedQueue(label: "onrequeststream", qos: qos), autostart: autostart, task: task)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:84:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
82 | extension OnRequestStream where Value == Int
83 | {
84 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
85 |   {
86 |     self.init(qos: qos, autostart: autostart, task: { $0 })
[34/45] Compiling ReactiveStreams stream-notifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:19:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
17 |   private let task: (Int) throws -> Value
18 |
19 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true, task: @escaping (Int) throws -> Value)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
20 |   {
21 |     self.init(validated: ValidatedQueue(label: "onrequeststream", qos: qos), autostart: autostart, task: task)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:84:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
82 | extension OnRequestStream where Value == Int
83 | {
84 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
85 |   {
86 |     self.init(qos: qos, autostart: autostart, task: { $0 })
[35/45] Compiling ReactiveStreams stream-onrequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:19:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
17 |   private let task: (Int) throws -> Value
18 |
19 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true, task: @escaping (Int) throws -> Value)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
20 |   {
21 |     self.init(validated: ValidatedQueue(label: "onrequeststream", qos: qos), autostart: autostart, task: task)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:84:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
82 | extension OnRequestStream where Value == Int
83 | {
84 |   public convenience init(qos: DispatchQoS = .current, autostart: Bool = true)
   |                                               |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
   |                                               `- note: The missing import of module 'CurrentQoS' will be added implicitly
85 |   {
86 |     self.init(qos: qos, autostart: autostart, task: { $0 })
[36/45] Compiling ReactiveStreams stream.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscriber.swift:9:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol Subscriber: class
   |                             `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   associatedtype Value
[37/45] Compiling ReactiveStreams subscriber.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscriber.swift:9:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol Subscriber: class
   |                             `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   associatedtype Value
[38/45] Compiling ReactiveStreams stream-skip.swift
[39/45] Compiling ReactiveStreams stream-split.swift
[40/45] Compiling ReactiveStreams deferred-subscriber.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/publisher.swift:9:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol EventSource: class
   |                              `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   func updateRequest(_ requested: Int64)
[41/45] Compiling ReactiveStreams event.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/publisher.swift:9:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol EventSource: class
   |                              `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   func updateRequest(_ requested: Int64)
[42/45] Compiling ReactiveStreams publisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/publisher.swift:9:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 7 | //
 8 |
 9 | public protocol EventSource: class
   |                              `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 |   func updateRequest(_ requested: Int64)
[43/45] Compiling ReactiveStreams stream-paused.swift
[44/45] Compiling ReactiveStreams stream-post.swift
[45/45] Compiling ReactiveStreams stream-reduce.swift
BUILD FAILURE 6.1 macosSpm