Build Information
Failed to build ReactiveStreams, reference main (b66ce5
), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 20:40:57 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
10 | import deferred
11 |
12 | public class DeferredStream<Value>: EventStream<Value>
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
13 | {
14 | private var deferred: Deferred<Value, Error>?
:
70 | queue.async {
71 | [weak self] in
72 | self?.dispatch(result)
| `- warning: capture of 'result' with non-sendable type 'Result<Value, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | }
74 | }
[29/49] Emitting module ReactiveStreams
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/publisher.swift:9:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
7 | //
8 |
9 | public protocol EventSource: class
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 | func updateRequest(_ requested: Int64)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-limited.swift:18:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
16 | public var count: Int64 { return CAtomicsLoad(counter, .relaxed) }
17 |
18 | public convenience init(qos: DispatchQoS = .current, count: Int64)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
19 | {
20 | self.init(validated: ValidatedQueue(label: "limitedstream", qos: qos), count: max(count,0))
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:233:61: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
231 | }
232 |
233 | static public func merge<S: Sequence>(qos: DispatchQoS = .current, streams: S, delayingErrors delay: Bool = false) -> EventStream<Value>
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
234 | where S.Iterator.Element: EventStream<Value>
235 | {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:19:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
17 | private let task: (Int) throws -> Value
18 |
19 | public convenience init(qos: DispatchQoS = .current, autostart: Bool = true, task: @escaping (Int) throws -> Value)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
20 | {
21 | self.init(validated: ValidatedQueue(label: "onrequeststream", qos: qos), autostart: autostart, task: task)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:84:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
82 | extension OnRequestStream where Value == Int
83 | {
84 | public convenience init(qos: DispatchQoS = .current, autostart: Bool = true)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
85 | {
86 | self.init(qos: qos, autostart: autostart, task: { $0 })
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-timer.swift:23:35: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
21 | private let timingLeeway: DispatchTimeInterval
22 |
23 | public init(qos: DispatchQoS = .current, interval: TimeInterval, tolerance: DispatchTimeInterval? = nil)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
24 | {
25 | let queue = ValidatedQueue(label: "timerstream", qos: qos)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscriber.swift:9:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
7 | //
8 |
9 | public protocol Subscriber: class
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 | associatedtype Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/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)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:15:50: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
13 | let queue: DispatchQueue
14 |
15 | public init(label: String, qos: DispatchQoS = .current)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
16 | {
17 | self.queue = DispatchQueue(label: label+"-\(qos.qosClass)", qos: qos)
[30/49] Compiling ReactiveStreams stream-map.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> U' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:20:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> Event<U>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:53:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:233:61: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
231 | }
232 |
233 | static public func merge<S: Sequence>(qos: DispatchQoS = .current, streams: S, delayingErrors delay: Bool = false) -> EventStream<Value>
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
234 | where S.Iterator.Element: EventStream<Value>
235 | {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:19: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:37: warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
25 | }
26 |
27 | open class EventStream<Value>: Publisher
| `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
28 | {
29 | public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:74:14: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:13: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: capture of 'subscription' with non-sendable type 'Subscription?' in a `@Sendable` closure; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
15 | #endif
16 |
17 | final public class Subscription
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
18 | {
19 | private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: reference to captured var 'subscription' in concurrently-executing code; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:77:44: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
75 | { // event terminates merged stream; remove it from sources
76 | merged.subscriptions.remove(subscription)
77 | if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
| `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
78 | { // merged stream completed normally
79 | if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:79:55: warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class MergeStream<Value>: SubStream<Value>
| `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
12 | {
13 | fileprivate var subscriptions = Set<Subscription>()
:
77 | if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
78 | { // merged stream completed normally
79 | if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
| `- warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | { // no other event is forthcoming from any stream
81 | let errorEvent = merged.delayedError.map(Event<Value>.init(error:))
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:88:50: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
86 | else if merged.delayErrorReporting
87 | {
88 | let error = merged.delayedError ?? event.error!
| `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
89 | if merged.subscriptions.isEmpty
90 | {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:120:7: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:159:7: warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:13: warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:33: warning: capture of 'transform' with non-sendable type '(Value) -> EventStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:47: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:227:7: warning: capture of 'streams' with non-sendable type 'S' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class MergeStream<Value>: SubStream<Value>
| `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
12 | {
13 | fileprivate var subscriptions = Set<Subscription>()
:
226 | merged.queue.async {
227 | streams.forEach {
228 | merged.performMerge($0)
| `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
229 | }
230 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:7: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:27: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
25 | }
26 |
27 | open class EventStream<Value>: Publisher
| `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
28 | {
29 | public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:7: warning: capture of 'others' with non-sendable type 'S' in a `@Sendable` closure; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:24: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class MergeStream<Value>: SubStream<Value>
| `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
12 | {
13 | fileprivate var subscriptions = Set<Subscription>()
:
258 | merged.queue.async {
259 | merged.performMerge(self)
260 | others.forEach { merged.performMerge($0) }
| `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
261 | }
262 | return merged
[31/49] Compiling ReactiveStreams stream-merge.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> U' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:20:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> Event<U>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:53:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:233:61: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
231 | }
232 |
233 | static public func merge<S: Sequence>(qos: DispatchQoS = .current, streams: S, delayingErrors delay: Bool = false) -> EventStream<Value>
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
234 | where S.Iterator.Element: EventStream<Value>
235 | {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:19: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:37: warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
25 | }
26 |
27 | open class EventStream<Value>: Publisher
| `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
28 | {
29 | public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:74:14: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:13: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: capture of 'subscription' with non-sendable type 'Subscription?' in a `@Sendable` closure; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
15 | #endif
16 |
17 | final public class Subscription
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
18 | {
19 | private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: reference to captured var 'subscription' in concurrently-executing code; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:77:44: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
75 | { // event terminates merged stream; remove it from sources
76 | merged.subscriptions.remove(subscription)
77 | if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
| `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
78 | { // merged stream completed normally
79 | if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:79:55: warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class MergeStream<Value>: SubStream<Value>
| `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
12 | {
13 | fileprivate var subscriptions = Set<Subscription>()
:
77 | if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
78 | { // merged stream completed normally
79 | if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
| `- warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | { // no other event is forthcoming from any stream
81 | let errorEvent = merged.delayedError.map(Event<Value>.init(error:))
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:88:50: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
86 | else if merged.delayErrorReporting
87 | {
88 | let error = merged.delayedError ?? event.error!
| `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
89 | if merged.subscriptions.isEmpty
90 | {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:120:7: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:159:7: warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:13: warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:33: warning: capture of 'transform' with non-sendable type '(Value) -> EventStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:47: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:227:7: warning: capture of 'streams' with non-sendable type 'S' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class MergeStream<Value>: SubStream<Value>
| `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
12 | {
13 | fileprivate var subscriptions = Set<Subscription>()
:
226 | merged.queue.async {
227 | streams.forEach {
228 | merged.performMerge($0)
| `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
229 | }
230 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:7: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:27: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
25 | }
26 |
27 | open class EventStream<Value>: Publisher
| `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
28 | {
29 | public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:7: warning: capture of 'others' with non-sendable type 'S' in a `@Sendable` closure; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:24: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class MergeStream<Value>: SubStream<Value>
| `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
12 | {
13 | fileprivate var subscriptions = Set<Subscription>()
:
258 | merged.queue.async {
259 | merged.performMerge(self)
260 | others.forEach { merged.performMerge($0) }
| `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
261 | }
262 | return merged
[32/49] Compiling ReactiveStreams stream-next.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> U' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:19:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:20:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:33: warning: capture of 'transform' with non-sendable type '(Value) throws -> Event<U>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:52:43: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-map.swift:53:11: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:233:61: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
231 | }
232 |
233 | static public func merge<S: Sequence>(qos: DispatchQoS = .current, streams: S, delayingErrors delay: Bool = false) -> EventStream<Value>
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
234 | where S.Iterator.Element: EventStream<Value>
235 | {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:19: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:39:37: warning: capture of 'source' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
25 | }
26 |
27 | open class EventStream<Value>: Publisher
| `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
28 | {
29 | public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:74:14: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:13: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: capture of 'subscription' with non-sendable type 'Subscription?' in a `@Sendable` closure; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
15 | #endif
16 |
17 | final public class Subscription
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
18 | {
19 | private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:76:41: warning: reference to captured var 'subscription' in concurrently-executing code; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:77:44: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
75 | { // event terminates merged stream; remove it from sources
76 | merged.subscriptions.remove(subscription)
77 | if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
| `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
78 | { // merged stream completed normally
79 | if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:79:55: warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class MergeStream<Value>: SubStream<Value>
| `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
12 | {
13 | fileprivate var subscriptions = Set<Subscription>()
:
77 | if event.completedNormally || (event.error is StreamCompleted) // for .lateSubscription
78 | { // merged stream completed normally
79 | if (merged.closeWhenLastSourceCloses || merged.closed), merged.subscriptions.isEmpty
| `- warning: implicit capture of 'merged' requires that 'MergeStream<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | { // no other event is forthcoming from any stream
81 | let errorEvent = merged.delayedError.map(Event<Value>.init(error:))
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:88:50: warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
86 | else if merged.delayErrorReporting
87 | {
88 | let error = merged.delayedError ?? event.error!
| `- warning: implicit capture of 'event' requires that 'Event<Value>' conforms to `Sendable`; this is an error in the Swift 6 language mode
89 | if merged.subscriptions.isEmpty
90 | {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:120:7: warning: capture of 'self' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:159:7: warning: capture of 'self' with non-sendable type 'FlatMapStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:13: warning: capture of 'merged' with non-sendable type 'FlatMapStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:33: warning: capture of 'transform' with non-sendable type '(Value) -> EventStream<U>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:191:47: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:227:7: warning: capture of 'streams' with non-sendable type 'S' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:228:9: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class MergeStream<Value>: SubStream<Value>
| `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
12 | {
13 | fileprivate var subscriptions = Set<Subscription>()
:
226 | merged.queue.async {
227 | streams.forEach {
228 | merged.performMerge($0)
| `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
229 | }
230 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:7: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:259:27: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:27:12: note: generic class 'EventStream' does not conform to the 'Sendable' protocol
25 | }
26 |
27 | open class EventStream<Value>: Publisher
| `- note: generic class 'EventStream' does not conform to the 'Sendable' protocol
28 | {
29 | public typealias EventType = Value
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:7: warning: capture of 'others' with non-sendable type 'S' in a `@Sendable` closure; 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
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-merge.swift:260:24: warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class MergeStream<Value>: SubStream<Value>
| `- note: generic class 'MergeStream' does not conform to the 'Sendable' protocol
12 | {
13 | fileprivate var subscriptions = Set<Subscription>()
:
258 | merged.queue.async {
259 | merged.performMerge(self)
260 | others.forEach { merged.performMerge($0) }
| `- warning: capture of 'merged' with non-sendable type 'MergeStream<Value>' in an isolated closure; this is an error in the Swift 6 language mode
261 | }
262 | return merged
[33/49] Compiling ReactiveStreams stream-skip.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:30: warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:46: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
[34/49] Compiling ReactiveStreams stream-split.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:30: warning: capture of 'stream' with non-sendable type 'SubStream<Value>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-skip.swift:31:46: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
[35/49] Compiling ReactiveStreams stream-filter.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
9 | import Dispatch
10 |
11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
| `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
12 | {
13 | override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:26:27: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: reference to captured var 'latest' in concurrently-executing code; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
23 | {
24 | mapped.queue.async {
25 | latest.map({ mapped.dispatch($0) })
| `- warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
26 | mapped.dispatch(event)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
9 | import Dispatch
10 |
11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
| `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
12 | {
13 | override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-limited.swift:18:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
16 | public var count: Int64 { return CAtomicsLoad(counter, .relaxed) }
17 |
18 | public convenience init(qos: DispatchQoS = .current, count: Int64)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
19 | {
20 | self.init(validated: ValidatedQueue(label: "limitedstream", qos: qos), count: max(count,0))
[36/49] Compiling ReactiveStreams stream-final.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
9 | import Dispatch
10 |
11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
| `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
12 | {
13 | override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:26:27: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: reference to captured var 'latest' in concurrently-executing code; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
23 | {
24 | mapped.queue.async {
25 | latest.map({ mapped.dispatch($0) })
| `- warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
26 | mapped.dispatch(event)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
9 | import Dispatch
10 |
11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
| `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
12 | {
13 | override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-limited.swift:18:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
16 | public var count: Int64 { return CAtomicsLoad(counter, .relaxed) }
17 |
18 | public convenience init(qos: DispatchQoS = .current, count: Int64)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
19 | {
20 | self.init(validated: ValidatedQueue(label: "limitedstream", qos: qos), count: max(count,0))
[37/49] Compiling ReactiveStreams stream-limited.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:32:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:30: warning: capture of 'mapped' with non-sendable type 'SubStream<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-substream.swift:11:12: note: generic class 'SubStream' does not conform to the 'Sendable' protocol
9 | import CAtomics
10 |
11 | open class SubStream<Value>: EventStream<Value>
| `- note: generic class 'SubStream' does not conform to the 'Sendable' protocol
12 | {
13 | private var sub = LockedSubscription()
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-filter.swift:84:46: warning: capture of 'newEvent' with non-sendable type 'Event<U>' in a `@Sendable` closure; 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: capture of 'latest' with non-sendable type 'Event<Value>?' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
9 | import Dispatch
10 |
11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
| `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
12 | {
13 | override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:26:27: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:11: warning: reference to captured var 'latest' in concurrently-executing code; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-final.swift:25:24: warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
23 | {
24 | mapped.queue.async {
25 | latest.map({ mapped.dispatch($0) })
| `- warning: capture of 'mapped' with non-sendable type 'SingleValueStream<Value, Value>' in an isolated closure; this is an error in the Swift 6 language mode
26 | mapped.dispatch(event)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:11:7: note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
9 | import Dispatch
10 |
11 | class SingleValueStream<InputValue, OutputValue>: SubStream<OutputValue>
| `- note: generic class 'SingleValueStream' does not conform to the 'Sendable' protocol
12 | {
13 | override init(validated: ValidatedQueue)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-limited.swift:18:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
16 | public var count: Int64 { return CAtomicsLoad(counter, .relaxed) }
17 |
18 | public convenience init(qos: DispatchQoS = .current, count: Int64)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
19 | {
20 | self.init(validated: ValidatedQueue(label: "limitedstream", qos: qos), count: max(count,0))
[38/49] Compiling ReactiveStreams stream.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:154:7: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:44: warning: capture of 'sub' with non-sendable type 'S' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:57: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:267:16: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; 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)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:269:36: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; 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 | {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
15 | #endif
16 |
17 | final public class Subscription
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
18 | {
19 | private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscriber.swift:9:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
7 | //
8 |
9 | public protocol Subscriber: class
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 | associatedtype Value
[39/49] Compiling ReactiveStreams subscriber.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:154:7: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:44: warning: capture of 'sub' with non-sendable type 'S' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:187:57: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:267:16: warning: capture of 'self' with non-sendable type 'EventStream<Value>' in a `@Sendable` closure; 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)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream.swift:269:36: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; 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 | {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
15 | #endif
16 |
17 | final public class Subscription
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
18 | {
19 | private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscriber.swift:9:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
7 | //
8 |
9 | public protocol Subscriber: class
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
10 | {
11 | associatedtype Value
[40/49] Compiling ReactiveStreams stream-substream.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-timer.swift:23:35: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
21 | private let timingLeeway: DispatchTimeInterval
22 |
23 | public init(qos: DispatchQoS = .current, interval: TimeInterval, tolerance: DispatchTimeInterval? = nil)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
24 | {
25 | let queue = ValidatedQueue(label: "timerstream", qos: qos)
[41/49] Compiling ReactiveStreams stream-timer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-timer.swift:23:35: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
21 | private let timingLeeway: DispatchTimeInterval
22 |
23 | public init(qos: DispatchQoS = .current, interval: TimeInterval, tolerance: DispatchTimeInterval? = nil)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
24 | {
25 | let queue = ValidatedQueue(label: "timerstream", qos: qos)
[42/49] Compiling ReactiveStreams stream-paused.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:90:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
88 | { // the queue had been empty or blocked
89 | // resume processing enqueued events
90 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
91 | }
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:132:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
130 |
131 | dispatch(event)
132 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
133 | return
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:145:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
143 | super.processAdditionalRequest(additional)
144 | // enqueue some event processing, in case stream had been paused
145 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:56:9: warning: capture of 'self' with non-sendable type 'ReducingStream<InputValue, OutputValue>' in a `@Sendable` closure; 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) }
[43/49] Compiling ReactiveStreams stream-post.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:90:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
88 | { // the queue had been empty or blocked
89 | // resume processing enqueued events
90 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
91 | }
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:132:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
130 |
131 | dispatch(event)
132 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
133 | return
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:145:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
143 | super.processAdditionalRequest(additional)
144 | // enqueue some event processing, in case stream had been paused
145 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:56:9: warning: capture of 'self' with non-sendable type 'ReducingStream<InputValue, OutputValue>' in a `@Sendable` closure; 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) }
[44/49] Compiling ReactiveStreams stream-reduce.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:90:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
88 | { // the queue had been empty or blocked
89 | // resume processing enqueued events
90 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
91 | }
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:132:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
130 |
131 | dispatch(event)
132 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
133 | return
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-post.swift:145:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
143 | super.processAdditionalRequest(additional)
144 | // enqueue some event processing, in case stream had been paused
145 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
146 | }
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-reduce.swift:56:9: warning: capture of 'self' with non-sendable type 'ReducingStream<InputValue, OutputValue>' in a `@Sendable` closure; 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) }
[45/49] Compiling ReactiveStreams stream-notifications.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:56: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:64: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:40:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:48:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:11: warning: capture of 'onEvent' with non-sendable type '(Event<Value>) -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:19: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:26:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:11: warning: capture of 'onEvent' with non-sendable type '(Subscription, Event<Value>) -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:19: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
15 | #endif
16 |
17 | final public class Subscription
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
18 | {
19 | private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:33: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:42:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:34: warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:42: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:34: warning: capture of 'onValue' with non-sendable type '(Subscription, Value) -> Void' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:42: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
15 | #endif
16 |
17 | final public class Subscription
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
18 | {
19 | private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:56: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:89:61: warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:104:56: warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:19:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
17 | private let task: (Int) throws -> Value
18 |
19 | public convenience init(qos: DispatchQoS = .current, autostart: Bool = true, task: @escaping (Int) throws -> Value)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
20 | {
21 | self.init(validated: ValidatedQueue(label: "onrequeststream", qos: qos), autostart: autostart, task: task)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:84:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
82 | extension OnRequestStream where Value == Int
83 | {
84 | public convenience init(qos: DispatchQoS = .current, autostart: Bool = true)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
85 | {
86 | self.init(qos: qos, autostart: autostart, task: { $0 })
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:55:45: warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:69:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
67 | } while !CAtomicsCompareAndExchangeWeak(started, &streaming, true, .relaxed, .relaxed)
68 |
69 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:77:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
75 | if CAtomicsLoad(started, .relaxed)
76 | { // enqueue some event processing in case stream had been paused
77 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
78 | }
79 | }
[46/49] Compiling ReactiveStreams stream-notifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:56: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:64: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:40:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:48:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:11: warning: capture of 'onEvent' with non-sendable type '(Event<Value>) -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:19: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:26:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:11: warning: capture of 'onEvent' with non-sendable type '(Subscription, Event<Value>) -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:19: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
15 | #endif
16 |
17 | final public class Subscription
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
18 | {
19 | private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:33: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:42:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:34: warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:42: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:34: warning: capture of 'onValue' with non-sendable type '(Subscription, Value) -> Void' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:42: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
15 | #endif
16 |
17 | final public class Subscription
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
18 | {
19 | private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:56: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:89:61: warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:104:56: warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:19:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
17 | private let task: (Int) throws -> Value
18 |
19 | public convenience init(qos: DispatchQoS = .current, autostart: Bool = true, task: @escaping (Int) throws -> Value)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
20 | {
21 | self.init(validated: ValidatedQueue(label: "onrequeststream", qos: qos), autostart: autostart, task: task)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:84:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
82 | extension OnRequestStream where Value == Int
83 | {
84 | public convenience init(qos: DispatchQoS = .current, autostart: Bool = true)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
85 | {
86 | self.init(qos: qos, autostart: autostart, task: { $0 })
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:55:45: warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:69:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
67 | } while !CAtomicsCompareAndExchangeWeak(started, &streaming, true, .relaxed, .relaxed)
68 |
69 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:77:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
75 | if CAtomicsLoad(started, .relaxed)
76 | { // enqueue some event processing in case stream had been paused
77 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
78 | }
79 | }
[47/49] Compiling ReactiveStreams stream-onrequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:56: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:34:64: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; 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 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:40:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifications.swift:48:24: warning: capture of 'self' with non-sendable type 'NotificationSubscriber<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:11: warning: capture of 'onEvent' with non-sendable type '(Event<Value>) -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:25:19: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:26:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:11: warning: capture of 'onEvent' with non-sendable type '(Subscription, Event<Value>) -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:19: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
15 | #endif
16 |
17 | final public class Subscription
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
18 | {
19 | private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:41:33: warning: capture of 'event' with non-sendable type 'Event<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/event.swift:11:15: note: consider making generic struct 'Event' conform to the 'Sendable' protocol
9 | import class Foundation.NSError
10 |
11 | public struct Event<Value>
| `- note: consider making generic struct 'Event' conform to the 'Sendable' protocol
12 | {
13 | @usableFromInline var state: Result<Value, Swift.Error>?
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:42:43: warning: capture of 'notifier' with non-sendable type 'StreamNotifier<Value>' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:34: warning: capture of 'onValue' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:57:42: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:34: warning: capture of 'onValue' with non-sendable type '(Subscription, Value) -> Void' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:42: warning: capture of 'subscription' with non-sendable type 'Subscription' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/subscription.swift:17:20: note: class 'Subscription' does not conform to the 'Sendable' protocol
15 | #endif
16 |
17 | final public class Subscription
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
18 | {
19 | private static let serial: UnsafeMutablePointer<AtomicUInt64> = {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:73:56: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; 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() }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:89:61: warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-notifier.swift:104:56: warning: capture of 'onCompletion' with non-sendable type '() -> Void' in a `@Sendable` closure; 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:19:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
17 | private let task: (Int) throws -> Value
18 |
19 | public convenience init(qos: DispatchQoS = .current, autostart: Bool = true, task: @escaping (Int) throws -> Value)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
20 | {
21 | self.init(validated: ValidatedQueue(label: "onrequeststream", qos: qos), autostart: autostart, task: task)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:84:47: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
82 | extension OnRequestStream where Value == Int
83 | {
84 | public convenience init(qos: DispatchQoS = .current, autostart: Bool = true)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
85 | {
86 | self.init(qos: qos, autostart: autostart, task: { $0 })
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:55:45: warning: capture of 'self' with non-sendable type 'OnRequestStream<Value>?' in a `@Sendable` closure; 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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:69:31: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
67 | } while !CAtomicsCompareAndExchangeWeak(started, &streaming, true, .relaxed, .relaxed)
68 |
69 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/stream-onrequest.swift:77:33: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
75 | if CAtomicsLoad(started, .relaxed)
76 | { // enqueue some event processing in case stream had been paused
77 | queue.async(execute: self.processNext)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
78 | }
79 | }
[48/49] Compiling ReactiveStreams subscription.swift
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:15:50: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
13 | let queue: DispatchQueue
14 |
15 | public init(label: String, qos: DispatchQoS = .current)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
16 | {
17 | self.queue = DispatchQueue(label: label+"-\(qos.qosClass)", qos: qos)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:23:18: error: 'OS_dispatch_queue_serial' has been renamed to 'DispatchSerialQueue'
21 | {
22 | #if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS))
23 | if target is OS_dispatch_queue_serial
| `- error: 'OS_dispatch_queue_serial' has been renamed to 'DispatchSerialQueue'
24 | {
25 | self.queue = target
Dispatch.OS_dispatch_queue_serial:3:18: note: 'OS_dispatch_queue_serial' was obsoleted in Swift 3
1 | @available(macOS 10.14, *)
2 | @available(swift, obsoleted: 3, renamed: "DispatchSerialQueue")
3 | public typealias OS_dispatch_queue_serial = DispatchSerialQueue
| `- note: 'OS_dispatch_queue_serial' was obsoleted in Swift 3
[49/49] Compiling ReactiveStreams validated-queue.swift
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:15:50: warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
13 | let queue: DispatchQueue
14 |
15 | public init(label: String, qos: DispatchQoS = .current)
| |- warning: static property 'current' cannot be used in a default argument value because 'CurrentQoS' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'CurrentQoS' will be added implicitly
16 | {
17 | self.queue = DispatchQueue(label: label+"-\(qos.qosClass)", qos: qos)
/Users/admin/builder/spi-builder-workspace/Sources/ReactiveStreams/validated-queue.swift:23:18: error: 'OS_dispatch_queue_serial' has been renamed to 'DispatchSerialQueue'
21 | {
22 | #if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS))
23 | if target is OS_dispatch_queue_serial
| `- error: 'OS_dispatch_queue_serial' has been renamed to 'DispatchSerialQueue'
24 | {
25 | self.queue = target
Dispatch.OS_dispatch_queue_serial:3:18: note: 'OS_dispatch_queue_serial' was obsoleted in Swift 3
1 | @available(macOS 10.14, *)
2 | @available(swift, obsoleted: 3, renamed: "DispatchSerialQueue")
3 | public typealias OS_dispatch_queue_serial = DispatchSerialQueue
| `- note: 'OS_dispatch_queue_serial' was obsoleted in Swift 3
BUILD FAILURE 6.0 macosSpm