The Swift Package Index logo.Swift Package Index

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

Build Information

Successful build of ReactiveStreams, reference 0.4.2 (b66ce5), with Swift 6.0 for Linux on 27 Nov 2024 20:34:37 UTC.

Swift 6 data race errors: 7

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

 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; this is an error in the Swift 6 language mode
 43 |         }
 44 |       }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:34: warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 58 |         else
 59 |         { _ = notifier.sub.take() }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:42: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 58 |         else
 59 |         { _ = notifier.sub.take() }
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 74 |         else
 75 |         { _ = notifier.sub.take() }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:42: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 74 |         else
 75 |         { _ = notifier.sub.take() }
/host/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> = {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:56: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 74 |         else
 75 |         { _ = notifier.sub.take() }
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                                                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 90 |         _ = notifier.sub.take()
 91 |       }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:104:56: warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
    |                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
105 |         _ = notifier.sub.take()
106 |       }
[31/51] Compiling ReactiveStreams stream-notifications.swift
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:56: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 35 |   }
 36 |
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:64: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 35 |   }
 36 |
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:40:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 41 |       self.cleanup()
 42 |     }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:48:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 49 |       self.cleanup()
 50 |     }
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 26 |           if event.isValue == false { _ = notifier.sub.take() }
 27 |         }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:19: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 26 |           if event.isValue == false { _ = notifier.sub.take() }
 27 |         }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:26:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 27 |         }
 28 |       }
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:19: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/host/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> = {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:33: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:42:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 43 |         }
 44 |       }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:34: warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 58 |         else
 59 |         { _ = notifier.sub.take() }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:42: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 58 |         else
 59 |         { _ = notifier.sub.take() }
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 74 |         else
 75 |         { _ = notifier.sub.take() }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:42: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 74 |         else
 75 |         { _ = notifier.sub.take() }
/host/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> = {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:56: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 74 |         else
 75 |         { _ = notifier.sub.take() }
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                                                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 90 |         _ = notifier.sub.take()
 91 |       }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:104:56: warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
    |                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
105 |         _ = notifier.sub.take()
106 |       }
[32/51] Compiling ReactiveStreams stream-notifier.swift
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:56: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 35 |   }
 36 |
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:64: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 35 |   }
 36 |
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:40:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 41 |       self.cleanup()
 42 |     }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:48:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 49 |       self.cleanup()
 50 |     }
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 26 |           if event.isValue == false { _ = notifier.sub.take() }
 27 |         }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:19: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 26 |           if event.isValue == false { _ = notifier.sub.take() }
 27 |         }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:26:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 27 |         }
 28 |       }
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:19: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/host/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> = {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:33: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 42 |           if event.isValue == false { _ = notifier.sub.take() }
 43 |         }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:42:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 43 |         }
 44 |       }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:34: warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 58 |         else
 59 |         { _ = notifier.sub.take() }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:42: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 58 |         else
 59 |         { _ = notifier.sub.take() }
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 74 |         else
 75 |         { _ = notifier.sub.take() }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:42: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 74 |         else
 75 |         { _ = notifier.sub.take() }
/host/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> = {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:56: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  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; this is an error in the Swift 6 language mode
 74 |         else
 75 |         { _ = notifier.sub.take() }
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                                                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 90 |         _ = notifier.sub.take()
 91 |       }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:104:56: warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
    |                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
105 |         _ = notifier.sub.take()
106 |       }
[33/51] Compiling ReactiveStreams stream-limited.swift
/host/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))
/host/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:20:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
21 |         }
22 |         catch is StreamCompleted {
/host/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()
/host/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 |           mapped.dispatch(transformed)
54 |         }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
53 |           mapped.dispatch(transformed)
54 |         }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:53:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
54 |         }
55 |         catch is StreamCompleted {
/host/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()
/host/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 |   {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:19: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
 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; this is an error in the Swift 6 language mode
 40 |   }
 41 |
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:37: warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 40 |   }
 41 |
/host/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
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:74:14: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:13: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
 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; this is an error in the Swift 6 language mode
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: capture of 'subscription' with non-sendable type 'Subscription?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/host/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> = {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: reference to captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/host/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
/host/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>?
/host/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:))
/host/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 |               {
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:120:7: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
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; this is an error in the Swift 6 language mode
121 |       self.dispatch(Event.streamCompleted)
122 |     }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:159:7: warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
160 |     }
161 |   }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:13: warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
192 |           }
193 |           catch is StreamCompleted {
/host/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
    |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
192 |           }
193 |           catch is StreamCompleted {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:47: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
192 |           }
193 |           catch is StreamCompleted {
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:227:7: warning: capture of 'streams' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
228 |         merged.performMerge($0)
229 |       }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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 a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |       }
230 |     }
/host/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 |     }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:7: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
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; this is an error in the Swift 6 language mode
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:27: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/host/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
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:7: warning: capture of 'others' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
261 |     }
262 |     return merged
/host/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
[34/51] Compiling ReactiveStreams stream-map.swift
/host/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))
/host/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:20:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
21 |         }
22 |         catch is StreamCompleted {
/host/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()
/host/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 |           mapped.dispatch(transformed)
54 |         }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
53 |           mapped.dispatch(transformed)
54 |         }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:53:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
54 |         }
55 |         catch is StreamCompleted {
/host/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()
/host/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 |   {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:19: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
 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; this is an error in the Swift 6 language mode
 40 |   }
 41 |
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:37: warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 40 |   }
 41 |
/host/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
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:74:14: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:13: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
 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; this is an error in the Swift 6 language mode
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: capture of 'subscription' with non-sendable type 'Subscription?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/host/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> = {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: reference to captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/host/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
/host/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>?
/host/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:))
/host/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 |               {
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:120:7: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
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; this is an error in the Swift 6 language mode
121 |       self.dispatch(Event.streamCompleted)
122 |     }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:159:7: warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
160 |     }
161 |   }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:13: warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
192 |           }
193 |           catch is StreamCompleted {
/host/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
    |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
192 |           }
193 |           catch is StreamCompleted {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:47: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
192 |           }
193 |           catch is StreamCompleted {
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:227:7: warning: capture of 'streams' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
228 |         merged.performMerge($0)
229 |       }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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 a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |       }
230 |     }
/host/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 |     }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:7: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
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; this is an error in the Swift 6 language mode
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:27: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/host/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
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:7: warning: capture of 'others' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
261 |     }
262 |     return merged
/host/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/51] Compiling ReactiveStreams stream-merge.swift
/host/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))
/host/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
20 |           mapped.dispatch(Event(value: transformed))
21 |         }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:20:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
21 |         }
22 |         catch is StreamCompleted {
/host/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()
/host/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
   |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 |           mapped.dispatch(transformed)
54 |         }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
53 |           mapped.dispatch(transformed)
54 |         }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:53:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
54 |         }
55 |         catch is StreamCompleted {
/host/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()
/host/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 |   {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:19: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
 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; this is an error in the Swift 6 language mode
 40 |   }
 41 |
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:37: warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 40 |   }
 41 |
/host/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
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:74:14: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 75 |           { // event terminates merged stream; remove it from sources
 76 |             merged.subscriptions.remove(subscription)
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:13: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
 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; this is an error in the Swift 6 language mode
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: capture of 'subscription' with non-sendable type 'Subscription?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/host/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> = {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: reference to captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 77 |             if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
 78 |             { // merged stream completed normally
/host/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
/host/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>?
/host/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:))
/host/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 |               {
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:120:7: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
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; this is an error in the Swift 6 language mode
121 |       self.dispatch(Event.streamCompleted)
122 |     }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:159:7: warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
160 |     }
161 |   }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:13: warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
192 |           }
193 |           catch is StreamCompleted {
/host/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
    |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
192 |           }
193 |           catch is StreamCompleted {
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:47: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
192 |           }
193 |           catch is StreamCompleted {
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:227:7: warning: capture of 'streams' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
228 |         merged.performMerge($0)
229 |       }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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 a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |       }
230 |     }
/host/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 |     }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:7: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` 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>()
    :
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; this is an error in the Swift 6 language mode
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:27: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
260 |       others.forEach { merged.performMerge($0) }
261 |     }
/host/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
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:7: warning: capture of 'others' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
261 |     }
262 |     return merged
/host/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/51] Compiling ReactiveStreams stream-onrequest.swift
/host/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)
/host/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 })
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:55:45: warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
56 |     }
57 |     catch {
/host/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 |
/host/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 |   }
/host/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 |   }
/host/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 |     }
/host/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 | }
[37/51] Compiling ReactiveStreams stream-paused.swift
/host/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)
/host/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 })
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:55:45: warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
56 |     }
57 |     catch {
/host/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 |
/host/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 |   }
/host/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 |   }
/host/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 |     }
/host/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 | }
[38/51] Compiling ReactiveStreams stream-post.swift
/host/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)
/host/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 })
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:55:45: warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
56 |     }
57 |     catch {
/host/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 |
/host/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 |   }
/host/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 |   }
/host/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 |     }
/host/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 | }
[39/51] Compiling ReactiveStreams event.swift
/host/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)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 33 |       }
 34 |     )
/host/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()
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 33 |       }
 34 |     )
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 85 |       }
 86 |     )
/host/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()
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 85 |       }
 86 |     )
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a `@Sendable` 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 'latest' with non-sendable type 'Event<Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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>?
/host/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; 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 a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:26:27: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
27 |         }
28 |       }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: reference to captured var 'latest' in concurrently-executing code; this is an error in the Swift 6 language mode
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |           `- warning: reference to captured var 'latest' in concurrently-executing code; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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 |         }
/host/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)
[40/51] Compiling ReactiveStreams publisher.swift
/host/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)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 33 |       }
 34 |     )
/host/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()
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 33 |       }
 34 |     )
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 85 |       }
 86 |     )
/host/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()
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 85 |       }
 86 |     )
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a `@Sendable` 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 'latest' with non-sendable type 'Event<Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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>?
/host/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; 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 a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:26:27: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
27 |         }
28 |       }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: reference to captured var 'latest' in concurrently-executing code; this is an error in the Swift 6 language mode
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |           `- warning: reference to captured var 'latest' in concurrently-executing code; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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 |         }
/host/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)
[41/51] Compiling ReactiveStreams stream-filter.swift
/host/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)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 33 |       }
 34 |     )
/host/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()
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 33 |       }
 34 |     )
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 85 |       }
 86 |     )
/host/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()
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 85 |       }
 86 |     )
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a `@Sendable` 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 'latest' with non-sendable type 'Event<Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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>?
/host/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; 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 a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:26:27: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
27 |         }
28 |       }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: reference to captured var 'latest' in concurrently-executing code; this is an error in the Swift 6 language mode
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |           `- warning: reference to captured var 'latest' in concurrently-executing code; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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 |         }
/host/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)
[42/51] Compiling ReactiveStreams stream-final.swift
/host/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)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 33 |       }
 34 |     )
/host/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()
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 33 |       }
 34 |     )
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 85 |       }
 86 |     )
/host/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()
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 85 |       }
 86 |     )
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a `@Sendable` 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 'latest' with non-sendable type 'Event<Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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>?
/host/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; 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 a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:26:27: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
27 |         }
28 |       }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: reference to captured var 'latest' in concurrently-executing code; this is an error in the Swift 6 language mode
23 |       {
24 |         mapped.queue.async {
25 |           latest.map({ mapped.dispatch($0) })
   |           `- warning: reference to captured var 'latest' in concurrently-executing code; this is an error in the Swift 6 language mode
26 |           mapped.dispatch(event)
27 |         }
/host/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 |         }
/host/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)
[43/51] Compiling ReactiveStreams stream-reduce.swift
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 57 |         if (error is StreamCompleted)
 58 |         { self.dispatch(Event.streamCompleted) }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:30: warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |         }
30 |
31 |         stream.queue.async { stream.dispatch(event) }
   |                              `- warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |       }
33 |     )
/host/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()
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:46: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |         }
30 |
31 |         stream.queue.async { stream.dispatch(event) }
   |                                              `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |       }
33 |     )
/host/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>?
[44/51] Compiling ReactiveStreams stream-skip.swift
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 57 |         if (error is StreamCompleted)
 58 |         { self.dispatch(Event.streamCompleted) }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:30: warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |         }
30 |
31 |         stream.queue.async { stream.dispatch(event) }
   |                              `- warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |       }
33 |     )
/host/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()
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:46: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |         }
30 |
31 |         stream.queue.async { stream.dispatch(event) }
   |                                              `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |       }
33 |     )
/host/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>?
[45/51] Compiling ReactiveStreams stream-split.swift
/host/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
 57 |         if (error is StreamCompleted)
 58 |         { self.dispatch(Event.streamCompleted) }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:30: warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |         }
30 |
31 |         stream.queue.async { stream.dispatch(event) }
   |                              `- warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |       }
33 |     )
/host/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()
/host/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:46: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |         }
30 |
31 |         stream.queue.async { stream.dispatch(event) }
   |                                              `- warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |       }
33 |     )
/host/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>?
[46/51] Compiling ReactiveStreams stream-substream.swift
/host/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)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:154:7: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
155 |     }
156 |   }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:44: warning: capture of 'sub' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
188 |     }
189 |   }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:57: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
188 |     }
189 |   }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:267:16: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
268 |
269 |         let key = WeakSubscription(subscription)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:269:36: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
270 |         if let notificationHandler = self.observers.removeValue(forKey: key)
271 |         {
/host/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> = {
[47/51] Compiling ReactiveStreams stream-timer.swift
/host/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)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:154:7: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
155 |     }
156 |   }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:44: warning: capture of 'sub' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
188 |     }
189 |   }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:57: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
188 |     }
189 |   }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:267:16: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
268 |
269 |         let key = WeakSubscription(subscription)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:269:36: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
270 |         if let notificationHandler = self.observers.removeValue(forKey: key)
271 |         {
/host/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> = {
[48/51] Compiling ReactiveStreams stream.swift
/host/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)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:154:7: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
155 |     }
156 |   }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:44: warning: capture of 'sub' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
188 |     }
189 |   }
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:57: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
188 |     }
189 |   }
/host/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>?
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:267:16: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
268 |
269 |         let key = WeakSubscription(subscription)
/host/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:269:36: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
270 |         if let notificationHandler = self.observers.removeValue(forKey: key)
271 |         {
/host/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> = {
[49/51] Compiling ReactiveStreams subscriber.swift
/host/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
/host/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:19:22: warning: static property 'serial' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<AtomicUInt64>' may have shared mutable state; this is an error in the Swift 6 language mode
 17 | final public class Subscription
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
    |                      |- warning: static property 'serial' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<AtomicUInt64>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: annotate 'serial' with '@MainActor' if property should only be accessed from the main actor
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     let p = UnsafeMutablePointer<AtomicUInt64>.allocate(capacity: 1)
 21 |     CAtomicsInitialize(p, 0)
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
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)
/host/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)
[50/51] Compiling ReactiveStreams subscription.swift
/host/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
/host/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:19:22: warning: static property 'serial' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<AtomicUInt64>' may have shared mutable state; this is an error in the Swift 6 language mode
 17 | final public class Subscription
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
    |                      |- warning: static property 'serial' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<AtomicUInt64>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: annotate 'serial' with '@MainActor' if property should only be accessed from the main actor
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     let p = UnsafeMutablePointer<AtomicUInt64>.allocate(capacity: 1)
 21 |     CAtomicsInitialize(p, 0)
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
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)
/host/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)
[51/51] Compiling ReactiveStreams validated-queue.swift
/host/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
/host/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:19:22: warning: static property 'serial' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<AtomicUInt64>' may have shared mutable state; this is an error in the Swift 6 language mode
 17 | final public class Subscription
 18 | {
 19 |   private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
    |                      |- warning: static property 'serial' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<AtomicUInt64>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: annotate 'serial' with '@MainActor' if property should only be accessed from the main actor
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     let p = UnsafeMutablePointer<AtomicUInt64>.allocate(capacity: 1)
 21 |     CAtomicsInitialize(p, 0)
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
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)
/host/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)
Build complete! (17.54s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "catomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.5.0",
            "upper_bound" : "7.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/glessard/CAtomics.git"
    },
    {
      "identity" : "currentqos",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/glessard/CurrentQoS.git"
    },
    {
      "identity" : "deferred",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.7.1",
            "upper_bound" : "7.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/glessard/deferred.git"
    }
  ],
  "manifest_display_name" : "ReactiveStreams",
  "name" : "ReactiveStreams",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ReactiveStreams",
      "targets" : [
        "ReactiveStreams"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "ReactiveStreamsTests",
      "module_type" : "SwiftTarget",
      "name" : "ReactiveStreamsTests",
      "path" : "Tests/ReactiveStreamsTests",
      "sources" : [
        "TestError.swift",
        "XCTestManifests.swift",
        "deferredTests.swift",
        "eventTests.swift",
        "filterTests.swift",
        "flatMapTests.swift",
        "mapTests.swift",
        "mergeTests.swift",
        "notificationTests.swift",
        "nzRandom.swift",
        "onRequestTests.swift",
        "postBoxTests.swift",
        "reduceTests.swift",
        "streamTests.swift",
        "subscriberTests.swift",
        "timerTests.swift"
      ],
      "target_dependencies" : [
        "ReactiveStreams"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ReactiveStreams",
      "module_type" : "SwiftTarget",
      "name" : "ReactiveStreams",
      "path" : "Sources/ReactiveStreams",
      "product_dependencies" : [
        "CAtomics",
        "CurrentQoS",
        "deferred"
      ],
      "product_memberships" : [
        "ReactiveStreams"
      ],
      "sources" : [
        "deferred-final.swift",
        "deferred-next.swift",
        "deferred-stream.swift",
        "deferred-subscriber.swift",
        "event.swift",
        "publisher.swift",
        "stream-filter.swift",
        "stream-final.swift",
        "stream-limited.swift",
        "stream-map.swift",
        "stream-merge.swift",
        "stream-next.swift",
        "stream-notifications.swift",
        "stream-notifier.swift",
        "stream-onrequest.swift",
        "stream-paused.swift",
        "stream-post.swift",
        "stream-reduce.swift",
        "stream-skip.swift",
        "stream-split.swift",
        "stream-substream.swift",
        "stream-timer.swift",
        "stream.swift",
        "subscriber.swift",
        "subscription.swift",
        "validated-queue.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.