Build Information
Successful build of ReactiveKit, reference master (5c61e0), with Swift 6.1 for Android on 6 Nov 2025 14:50:32 UTC.
Swift 6 data race errors: 2
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1Build Log
56 |
57 | public static let instance = NonDisposable()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'NonDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | private init() {}
/host/spi-builder-workspace/Sources/ExecutionContext.swift:63:51: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
57 | /// asynchronously on main dispatch queue (main thread).
58 | public static var immediateOnMain: ExecutionContext {
59 | return ExecutionContext { block in
| `- note: parameter 'block' is implicitly non-sendable
60 | if Thread.isMainThread {
61 | block()
62 | } else {
63 | DispatchQueue.main.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
64 | }
65 | }
/host/spi-builder-workspace/Sources/ExecutionContext.swift:96:33: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
93 | /// Creates ExecutionContext from the queue.
94 | public var context: ExecutionContext {
95 | return ExecutionContext { block in
| `- note: parameter 'block' is implicitly non-sendable
96 | self.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
97 | }
98 | }
/host/spi-builder-workspace/Sources/ExecutionContext.swift:103:58: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
100 | /// Schedule given block for execution after given interval passes.
101 | @available(*, deprecated, message: "Please use asyncAfter(deadline:execute:)")
102 | public func after(when interval: Double, block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
103 | asyncAfter(deadline: .now() + interval, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
104 | }
105 |
/host/spi-builder-workspace/Sources/LoadingSignal.swift:356:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
354 |
355 | /// A consumer of ObservedLoadingState. For example, a view what updates its appearance based on loading state.
356 | public protocol LoadingStateListener: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
357 |
358 | /// Consume observed loading state.
[18/46] Compiling ReactiveKit LoadingProperty.swift
/host/spi-builder-workspace/Sources/Deprecations.swift:216:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
214 |
215 | @available(*, deprecated, renamed: "receive(event:)")
216 | open func send(_ event: Event<Element, Error>) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
217 | on(event)
218 | }
/host/spi-builder-workspace/Sources/Disposable.swift:57:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'NonDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | /// A disposable that cannot be disposed.
55 | public struct NonDisposable: Disposable {
| `- note: consider making struct 'NonDisposable' conform to the 'Sendable' protocol
56 |
57 | public static let instance = NonDisposable()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'NonDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | private init() {}
/host/spi-builder-workspace/Sources/ExecutionContext.swift:63:51: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
57 | /// asynchronously on main dispatch queue (main thread).
58 | public static var immediateOnMain: ExecutionContext {
59 | return ExecutionContext { block in
| `- note: parameter 'block' is implicitly non-sendable
60 | if Thread.isMainThread {
61 | block()
62 | } else {
63 | DispatchQueue.main.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
64 | }
65 | }
/host/spi-builder-workspace/Sources/ExecutionContext.swift:96:33: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
93 | /// Creates ExecutionContext from the queue.
94 | public var context: ExecutionContext {
95 | return ExecutionContext { block in
| `- note: parameter 'block' is implicitly non-sendable
96 | self.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
97 | }
98 | }
/host/spi-builder-workspace/Sources/ExecutionContext.swift:103:58: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
100 | /// Schedule given block for execution after given interval passes.
101 | @available(*, deprecated, message: "Please use asyncAfter(deadline:execute:)")
102 | public func after(when interval: Double, block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
103 | asyncAfter(deadline: .now() + interval, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
104 | }
105 |
/host/spi-builder-workspace/Sources/LoadingSignal.swift:356:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
354 |
355 | /// A consumer of ObservedLoadingState. For example, a view what updates its appearance based on loading state.
356 | public protocol LoadingStateListener: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
357 |
358 | /// Consume observed loading state.
[19/46] Compiling ReactiveKit LoadingSignal.swift
/host/spi-builder-workspace/Sources/Deprecations.swift:216:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
214 |
215 | @available(*, deprecated, renamed: "receive(event:)")
216 | open func send(_ event: Event<Element, Error>) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
217 | on(event)
218 | }
/host/spi-builder-workspace/Sources/Disposable.swift:57:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'NonDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | /// A disposable that cannot be disposed.
55 | public struct NonDisposable: Disposable {
| `- note: consider making struct 'NonDisposable' conform to the 'Sendable' protocol
56 |
57 | public static let instance = NonDisposable()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'NonDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | private init() {}
/host/spi-builder-workspace/Sources/ExecutionContext.swift:63:51: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
57 | /// asynchronously on main dispatch queue (main thread).
58 | public static var immediateOnMain: ExecutionContext {
59 | return ExecutionContext { block in
| `- note: parameter 'block' is implicitly non-sendable
60 | if Thread.isMainThread {
61 | block()
62 | } else {
63 | DispatchQueue.main.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
64 | }
65 | }
/host/spi-builder-workspace/Sources/ExecutionContext.swift:96:33: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
93 | /// Creates ExecutionContext from the queue.
94 | public var context: ExecutionContext {
95 | return ExecutionContext { block in
| `- note: parameter 'block' is implicitly non-sendable
96 | self.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
97 | }
98 | }
/host/spi-builder-workspace/Sources/ExecutionContext.swift:103:58: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
100 | /// Schedule given block for execution after given interval passes.
101 | @available(*, deprecated, message: "Please use asyncAfter(deadline:execute:)")
102 | public func after(when interval: Double, block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
103 | asyncAfter(deadline: .now() + interval, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
104 | }
105 |
/host/spi-builder-workspace/Sources/LoadingSignal.swift:356:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
354 |
355 | /// A consumer of ObservedLoadingState. For example, a view what updates its appearance based on loading state.
356 | public protocol LoadingStateListener: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
357 |
358 | /// Consume observed loading state.
[20/46] Compiling ReactiveKit Lock.swift
/host/spi-builder-workspace/Sources/Deprecations.swift:216:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
214 |
215 | @available(*, deprecated, renamed: "receive(event:)")
216 | open func send(_ event: Event<Element, Error>) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
217 | on(event)
218 | }
/host/spi-builder-workspace/Sources/Disposable.swift:57:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'NonDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | /// A disposable that cannot be disposed.
55 | public struct NonDisposable: Disposable {
| `- note: consider making struct 'NonDisposable' conform to the 'Sendable' protocol
56 |
57 | public static let instance = NonDisposable()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'NonDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | private init() {}
/host/spi-builder-workspace/Sources/ExecutionContext.swift:63:51: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
57 | /// asynchronously on main dispatch queue (main thread).
58 | public static var immediateOnMain: ExecutionContext {
59 | return ExecutionContext { block in
| `- note: parameter 'block' is implicitly non-sendable
60 | if Thread.isMainThread {
61 | block()
62 | } else {
63 | DispatchQueue.main.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
64 | }
65 | }
/host/spi-builder-workspace/Sources/ExecutionContext.swift:96:33: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
93 | /// Creates ExecutionContext from the queue.
94 | public var context: ExecutionContext {
95 | return ExecutionContext { block in
| `- note: parameter 'block' is implicitly non-sendable
96 | self.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
97 | }
98 | }
/host/spi-builder-workspace/Sources/ExecutionContext.swift:103:58: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
100 | /// Schedule given block for execution after given interval passes.
101 | @available(*, deprecated, message: "Please use asyncAfter(deadline:execute:)")
102 | public func after(when interval: Double, block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
103 | asyncAfter(deadline: .now() + interval, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
104 | }
105 |
/host/spi-builder-workspace/Sources/LoadingSignal.swift:356:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
354 |
355 | /// A consumer of ObservedLoadingState. For example, a view what updates its appearance based on loading state.
356 | public protocol LoadingStateListener: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
357 |
358 | /// Consume observed loading state.
[21/46] Compiling ReactiveKit Reactive.swift
/host/spi-builder-workspace/Sources/Reactive.swift:49:45: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
47 | }
48 |
49 | public protocol ReactiveExtensionsProvider: class {}
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
50 |
51 | extension ReactiveExtensionsProvider {
/host/spi-builder-workspace/Sources/Scheduler.swift:47:24: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
44 |
45 | @inlinable
46 | public func schedule(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
47 | async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
48 | }
49 | }
/host/spi-builder-workspace/Sources/Signal.swift:171:28: warning: capture of 'disposable' with non-sendable type 'SimpleDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | dispatch = {
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
| `- warning: capture of 'disposable' with non-sendable type 'SimpleDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
172 | dispatch = nil
173 | return
/host/spi-builder-workspace/Sources/Disposable.swift:69:20: note: class 'SimpleDisposable' does not conform to the 'Sendable' protocol
67 |
68 | /// A disposable that just encapsulates disposed state.
69 | public final class SimpleDisposable: Disposable {
| `- note: class 'SimpleDisposable' does not conform to the 'Sendable' protocol
70 |
71 | private let lock = NSRecursiveLock(name: "com.reactive_kit.simple_disposable")
/host/spi-builder-workspace/Sources/Signal.swift:172:25: warning: capture of 'dispatch' with non-sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
172 | dispatch = nil
| |- warning: capture of 'dispatch' 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'
173 | return
174 | }
/host/spi-builder-workspace/Sources/Signal.swift:175:41: warning: capture of 'iterator' with non-sendable type 'S.Iterator' in a '@Sendable' closure; this is an error in the Swift 6 language mode
173 | return
174 | }
175 | guard let element = iterator.next() else {
| `- warning: capture of 'iterator' with non-sendable type 'S.Iterator' in a '@Sendable' closure; this is an error in the Swift 6 language mode
176 | dispatch = nil
177 | observer.receive(completion: .finished)
/host/spi-builder-workspace/Sources/Signal.swift:177:25: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Element, Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | guard let element = iterator.next() else {
176 | dispatch = nil
177 | observer.receive(completion: .finished)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Element, Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | return
179 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/Signal.swift:172:25: warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
172 | dispatch = nil
| `- warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
173 | return
174 | }
/host/spi-builder-workspace/Sources/Signal.swift:175:41: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
173 | return
174 | }
175 | guard let element = iterator.next() else {
| `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
176 | dispatch = nil
177 | observer.receive(completion: .finished)
/host/spi-builder-workspace/Sources/Signal.swift:176:25: warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
174 | }
175 | guard let element = iterator.next() else {
176 | dispatch = nil
| `- warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
177 | observer.receive(completion: .finished)
178 | return
/host/spi-builder-workspace/Sources/Signal.swift:181:21: warning: reference to captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
179 | }
180 | observer.receive(element)
181 | dispatch?()
| `- warning: reference to captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
182 | }
183 | }
/host/spi-builder-workspace/Sources/Signal.swift:229:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
227 | public init(await produce: @escaping () async throws -> Element) {
228 | self.init { observer in
229 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
230 | do {
231 | let element = try await produce()
| `- note: closure captures 'produce' which is accessible to code in the current task
232 | observer.receive(lastElement: element)
233 | } catch {
/host/spi-builder-workspace/Sources/Signal.swift:247:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | public init(await produce: @escaping () async -> Element) {
246 | self.init { observer in
247 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | let element = await produce()
| `- note: closure captures 'produce' which is accessible to code in the current task
249 | observer.receive(lastElement: element)
250 | }
[22/46] Compiling ReactiveKit Scheduler.swift
/host/spi-builder-workspace/Sources/Reactive.swift:49:45: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
47 | }
48 |
49 | public protocol ReactiveExtensionsProvider: class {}
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
50 |
51 | extension ReactiveExtensionsProvider {
/host/spi-builder-workspace/Sources/Scheduler.swift:47:24: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
44 |
45 | @inlinable
46 | public func schedule(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
47 | async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
48 | }
49 | }
/host/spi-builder-workspace/Sources/Signal.swift:171:28: warning: capture of 'disposable' with non-sendable type 'SimpleDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | dispatch = {
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
| `- warning: capture of 'disposable' with non-sendable type 'SimpleDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
172 | dispatch = nil
173 | return
/host/spi-builder-workspace/Sources/Disposable.swift:69:20: note: class 'SimpleDisposable' does not conform to the 'Sendable' protocol
67 |
68 | /// A disposable that just encapsulates disposed state.
69 | public final class SimpleDisposable: Disposable {
| `- note: class 'SimpleDisposable' does not conform to the 'Sendable' protocol
70 |
71 | private let lock = NSRecursiveLock(name: "com.reactive_kit.simple_disposable")
/host/spi-builder-workspace/Sources/Signal.swift:172:25: warning: capture of 'dispatch' with non-sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
172 | dispatch = nil
| |- warning: capture of 'dispatch' 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'
173 | return
174 | }
/host/spi-builder-workspace/Sources/Signal.swift:175:41: warning: capture of 'iterator' with non-sendable type 'S.Iterator' in a '@Sendable' closure; this is an error in the Swift 6 language mode
173 | return
174 | }
175 | guard let element = iterator.next() else {
| `- warning: capture of 'iterator' with non-sendable type 'S.Iterator' in a '@Sendable' closure; this is an error in the Swift 6 language mode
176 | dispatch = nil
177 | observer.receive(completion: .finished)
/host/spi-builder-workspace/Sources/Signal.swift:177:25: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Element, Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | guard let element = iterator.next() else {
176 | dispatch = nil
177 | observer.receive(completion: .finished)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Element, Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | return
179 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/Signal.swift:172:25: warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
172 | dispatch = nil
| `- warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
173 | return
174 | }
/host/spi-builder-workspace/Sources/Signal.swift:175:41: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
173 | return
174 | }
175 | guard let element = iterator.next() else {
| `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
176 | dispatch = nil
177 | observer.receive(completion: .finished)
/host/spi-builder-workspace/Sources/Signal.swift:176:25: warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
174 | }
175 | guard let element = iterator.next() else {
176 | dispatch = nil
| `- warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
177 | observer.receive(completion: .finished)
178 | return
/host/spi-builder-workspace/Sources/Signal.swift:181:21: warning: reference to captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
179 | }
180 | observer.receive(element)
181 | dispatch?()
| `- warning: reference to captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
182 | }
183 | }
/host/spi-builder-workspace/Sources/Signal.swift:229:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
227 | public init(await produce: @escaping () async throws -> Element) {
228 | self.init { observer in
229 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
230 | do {
231 | let element = try await produce()
| `- note: closure captures 'produce' which is accessible to code in the current task
232 | observer.receive(lastElement: element)
233 | } catch {
/host/spi-builder-workspace/Sources/Signal.swift:247:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | public init(await produce: @escaping () async -> Element) {
246 | self.init { observer in
247 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | let element = await produce()
| `- note: closure captures 'produce' which is accessible to code in the current task
249 | observer.receive(lastElement: element)
250 | }
[23/46] Compiling ReactiveKit Signal.Event.swift
/host/spi-builder-workspace/Sources/Reactive.swift:49:45: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
47 | }
48 |
49 | public protocol ReactiveExtensionsProvider: class {}
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
50 |
51 | extension ReactiveExtensionsProvider {
/host/spi-builder-workspace/Sources/Scheduler.swift:47:24: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
44 |
45 | @inlinable
46 | public func schedule(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
47 | async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
48 | }
49 | }
/host/spi-builder-workspace/Sources/Signal.swift:171:28: warning: capture of 'disposable' with non-sendable type 'SimpleDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | dispatch = {
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
| `- warning: capture of 'disposable' with non-sendable type 'SimpleDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
172 | dispatch = nil
173 | return
/host/spi-builder-workspace/Sources/Disposable.swift:69:20: note: class 'SimpleDisposable' does not conform to the 'Sendable' protocol
67 |
68 | /// A disposable that just encapsulates disposed state.
69 | public final class SimpleDisposable: Disposable {
| `- note: class 'SimpleDisposable' does not conform to the 'Sendable' protocol
70 |
71 | private let lock = NSRecursiveLock(name: "com.reactive_kit.simple_disposable")
/host/spi-builder-workspace/Sources/Signal.swift:172:25: warning: capture of 'dispatch' with non-sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
172 | dispatch = nil
| |- warning: capture of 'dispatch' 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'
173 | return
174 | }
/host/spi-builder-workspace/Sources/Signal.swift:175:41: warning: capture of 'iterator' with non-sendable type 'S.Iterator' in a '@Sendable' closure; this is an error in the Swift 6 language mode
173 | return
174 | }
175 | guard let element = iterator.next() else {
| `- warning: capture of 'iterator' with non-sendable type 'S.Iterator' in a '@Sendable' closure; this is an error in the Swift 6 language mode
176 | dispatch = nil
177 | observer.receive(completion: .finished)
/host/spi-builder-workspace/Sources/Signal.swift:177:25: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Element, Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | guard let element = iterator.next() else {
176 | dispatch = nil
177 | observer.receive(completion: .finished)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Element, Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | return
179 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/Signal.swift:172:25: warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
172 | dispatch = nil
| `- warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
173 | return
174 | }
/host/spi-builder-workspace/Sources/Signal.swift:175:41: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
173 | return
174 | }
175 | guard let element = iterator.next() else {
| `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
176 | dispatch = nil
177 | observer.receive(completion: .finished)
/host/spi-builder-workspace/Sources/Signal.swift:176:25: warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
174 | }
175 | guard let element = iterator.next() else {
176 | dispatch = nil
| `- warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
177 | observer.receive(completion: .finished)
178 | return
/host/spi-builder-workspace/Sources/Signal.swift:181:21: warning: reference to captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
179 | }
180 | observer.receive(element)
181 | dispatch?()
| `- warning: reference to captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
182 | }
183 | }
/host/spi-builder-workspace/Sources/Signal.swift:229:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
227 | public init(await produce: @escaping () async throws -> Element) {
228 | self.init { observer in
229 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
230 | do {
231 | let element = try await produce()
| `- note: closure captures 'produce' which is accessible to code in the current task
232 | observer.receive(lastElement: element)
233 | } catch {
/host/spi-builder-workspace/Sources/Signal.swift:247:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | public init(await produce: @escaping () async -> Element) {
246 | self.init { observer in
247 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | let element = await produce()
| `- note: closure captures 'produce' which is accessible to code in the current task
249 | observer.receive(lastElement: element)
250 | }
[24/46] Compiling ReactiveKit Signal.swift
/host/spi-builder-workspace/Sources/Reactive.swift:49:45: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
47 | }
48 |
49 | public protocol ReactiveExtensionsProvider: class {}
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
50 |
51 | extension ReactiveExtensionsProvider {
/host/spi-builder-workspace/Sources/Scheduler.swift:47:24: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
44 |
45 | @inlinable
46 | public func schedule(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
47 | async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
48 | }
49 | }
/host/spi-builder-workspace/Sources/Signal.swift:171:28: warning: capture of 'disposable' with non-sendable type 'SimpleDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | dispatch = {
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
| `- warning: capture of 'disposable' with non-sendable type 'SimpleDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
172 | dispatch = nil
173 | return
/host/spi-builder-workspace/Sources/Disposable.swift:69:20: note: class 'SimpleDisposable' does not conform to the 'Sendable' protocol
67 |
68 | /// A disposable that just encapsulates disposed state.
69 | public final class SimpleDisposable: Disposable {
| `- note: class 'SimpleDisposable' does not conform to the 'Sendable' protocol
70 |
71 | private let lock = NSRecursiveLock(name: "com.reactive_kit.simple_disposable")
/host/spi-builder-workspace/Sources/Signal.swift:172:25: warning: capture of 'dispatch' with non-sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
172 | dispatch = nil
| |- warning: capture of 'dispatch' 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'
173 | return
174 | }
/host/spi-builder-workspace/Sources/Signal.swift:175:41: warning: capture of 'iterator' with non-sendable type 'S.Iterator' in a '@Sendable' closure; this is an error in the Swift 6 language mode
173 | return
174 | }
175 | guard let element = iterator.next() else {
| `- warning: capture of 'iterator' with non-sendable type 'S.Iterator' in a '@Sendable' closure; this is an error in the Swift 6 language mode
176 | dispatch = nil
177 | observer.receive(completion: .finished)
/host/spi-builder-workspace/Sources/Signal.swift:177:25: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Element, Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | guard let element = iterator.next() else {
176 | dispatch = nil
177 | observer.receive(completion: .finished)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Element, Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | return
179 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/Signal.swift:172:25: warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
172 | dispatch = nil
| `- warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
173 | return
174 | }
/host/spi-builder-workspace/Sources/Signal.swift:175:41: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
173 | return
174 | }
175 | guard let element = iterator.next() else {
| `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
176 | dispatch = nil
177 | observer.receive(completion: .finished)
/host/spi-builder-workspace/Sources/Signal.swift:176:25: warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
174 | }
175 | guard let element = iterator.next() else {
176 | dispatch = nil
| `- warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
177 | observer.receive(completion: .finished)
178 | return
/host/spi-builder-workspace/Sources/Signal.swift:181:21: warning: reference to captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
179 | }
180 | observer.receive(element)
181 | dispatch?()
| `- warning: reference to captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
182 | }
183 | }
/host/spi-builder-workspace/Sources/Signal.swift:229:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
227 | public init(await produce: @escaping () async throws -> Element) {
228 | self.init { observer in
229 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
230 | do {
231 | let element = try await produce()
| `- note: closure captures 'produce' which is accessible to code in the current task
232 | observer.receive(lastElement: element)
233 | } catch {
/host/spi-builder-workspace/Sources/Signal.swift:247:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | public init(await produce: @escaping () async -> Element) {
246 | self.init { observer in
247 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | let element = await produce()
| `- note: closure captures 'produce' which is accessible to code in the current task
249 | observer.receive(lastElement: element)
250 | }
[25/46] Compiling ReactiveKit SignalProtocol+Arities.swift
/host/spi-builder-workspace/Sources/Reactive.swift:49:45: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
47 | }
48 |
49 | public protocol ReactiveExtensionsProvider: class {}
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
50 |
51 | extension ReactiveExtensionsProvider {
/host/spi-builder-workspace/Sources/Scheduler.swift:47:24: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
44 |
45 | @inlinable
46 | public func schedule(_ action: @escaping () -> Void) {
| `- note: parameter 'action' is implicitly non-sendable
47 | async(execute: action)
| `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
48 | }
49 | }
/host/spi-builder-workspace/Sources/Signal.swift:171:28: warning: capture of 'disposable' with non-sendable type 'SimpleDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | dispatch = {
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
| `- warning: capture of 'disposable' with non-sendable type 'SimpleDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
172 | dispatch = nil
173 | return
/host/spi-builder-workspace/Sources/Disposable.swift:69:20: note: class 'SimpleDisposable' does not conform to the 'Sendable' protocol
67 |
68 | /// A disposable that just encapsulates disposed state.
69 | public final class SimpleDisposable: Disposable {
| `- note: class 'SimpleDisposable' does not conform to the 'Sendable' protocol
70 |
71 | private let lock = NSRecursiveLock(name: "com.reactive_kit.simple_disposable")
/host/spi-builder-workspace/Sources/Signal.swift:172:25: warning: capture of 'dispatch' with non-sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
172 | dispatch = nil
| |- warning: capture of 'dispatch' 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'
173 | return
174 | }
/host/spi-builder-workspace/Sources/Signal.swift:175:41: warning: capture of 'iterator' with non-sendable type 'S.Iterator' in a '@Sendable' closure; this is an error in the Swift 6 language mode
173 | return
174 | }
175 | guard let element = iterator.next() else {
| `- warning: capture of 'iterator' with non-sendable type 'S.Iterator' in a '@Sendable' closure; this is an error in the Swift 6 language mode
176 | dispatch = nil
177 | observer.receive(completion: .finished)
/host/spi-builder-workspace/Sources/Signal.swift:177:25: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Element, Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | guard let element = iterator.next() else {
176 | dispatch = nil
177 | observer.receive(completion: .finished)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Element, Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | return
179 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/Signal.swift:172:25: warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
170 | queue.asyncAfter(deadline: .now() + interval) {
171 | guard !disposable.isDisposed else {
172 | dispatch = nil
| `- warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
173 | return
174 | }
/host/spi-builder-workspace/Sources/Signal.swift:175:41: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
173 | return
174 | }
175 | guard let element = iterator.next() else {
| `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
176 | dispatch = nil
177 | observer.receive(completion: .finished)
/host/spi-builder-workspace/Sources/Signal.swift:176:25: warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
174 | }
175 | guard let element = iterator.next() else {
176 | dispatch = nil
| `- warning: mutation of captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
177 | observer.receive(completion: .finished)
178 | return
/host/spi-builder-workspace/Sources/Signal.swift:181:21: warning: reference to captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
179 | }
180 | observer.receive(element)
181 | dispatch?()
| `- warning: reference to captured var 'dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
182 | }
183 | }
/host/spi-builder-workspace/Sources/Signal.swift:229:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
227 | public init(await produce: @escaping () async throws -> Element) {
228 | self.init { observer in
229 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
230 | do {
231 | let element = try await produce()
| `- note: closure captures 'produce' which is accessible to code in the current task
232 | observer.receive(lastElement: element)
233 | } catch {
/host/spi-builder-workspace/Sources/Signal.swift:247:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | public init(await produce: @escaping () async -> Element) {
246 | self.init { observer in
247 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | let element = await produce()
| `- note: closure captures 'produce' which is accessible to code in the current task
249 | observer.receive(lastElement: element)
250 | }
[26/46] Compiling ReactiveKit SignalProtocol+Transforming.swift
/host/spi-builder-workspace/Sources/SignalProtocol+Utilities.swift:107:21: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 | return self.observe { event in
106 | queue.asyncAfter(deadline: .now() + interval) {
107 | observer.on(event)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
108 | }
109 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Utilities.swift:107:33: warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 | return self.observe { event in
106 | queue.asyncAfter(deadline: .now() + interval) {
107 | observer.on(event)
| `- warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
108 | }
109 | }
/host/spi-builder-workspace/Sources/Signal.Event.swift:28:17: note: consider making enum 'Event' conform to the 'Sendable' protocol
26 |
27 | /// An event of a sequence.
28 | public enum Event {
| `- note: consider making enum 'Event' conform to the 'Sendable' protocol
29 |
30 | /// An event that carries next element.
[27/46] Compiling ReactiveKit SignalProtocol+Utilities.swift
/host/spi-builder-workspace/Sources/SignalProtocol+Utilities.swift:107:21: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 | return self.observe { event in
106 | queue.asyncAfter(deadline: .now() + interval) {
107 | observer.on(event)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
108 | }
109 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Utilities.swift:107:33: warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 | return self.observe { event in
106 | queue.asyncAfter(deadline: .now() + interval) {
107 | observer.on(event)
| `- warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
108 | }
109 | }
/host/spi-builder-workspace/Sources/Signal.Event.swift:28:17: note: consider making enum 'Event' conform to the 'Sendable' protocol
26 |
27 | /// An event of a sequence.
28 | public enum Event {
| `- note: consider making enum 'Event' conform to the 'Sendable' protocol
29 |
30 | /// An event that carries next element.
[28/46] Compiling ReactiveKit SignalProtocol.swift
/host/spi-builder-workspace/Sources/SignalProtocol+Utilities.swift:107:21: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 | return self.observe { event in
106 | queue.asyncAfter(deadline: .now() + interval) {
107 | observer.on(event)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
108 | }
109 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Utilities.swift:107:33: warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 | return self.observe { event in
106 | queue.asyncAfter(deadline: .now() + interval) {
107 | observer.on(event)
| `- warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
108 | }
109 | }
/host/spi-builder-workspace/Sources/Signal.Event.swift:28:17: note: consider making enum 'Event' conform to the 'Sendable' protocol
26 |
27 | /// An event of a sequence.
28 | public enum Event {
| `- note: consider making enum 'Event' conform to the 'Sendable' protocol
29 |
30 | /// An event that carries next element.
[29/46] Compiling ReactiveKit Subjects.swift
/host/spi-builder-workspace/Sources/SignalProtocol+Utilities.swift:107:21: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 | return self.observe { event in
106 | queue.asyncAfter(deadline: .now() + interval) {
107 | observer.on(event)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
108 | }
109 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Utilities.swift:107:33: warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 | return self.observe { event in
106 | queue.asyncAfter(deadline: .now() + interval) {
107 | observer.on(event)
| `- warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
108 | }
109 | }
/host/spi-builder-workspace/Sources/Signal.Event.swift:28:17: note: consider making enum 'Event' conform to the 'Sendable' protocol
26 |
27 | /// An event of a sequence.
28 | public enum Event {
| `- note: consider making enum 'Event' conform to the 'Sendable' protocol
29 |
30 | /// An event that carries next element.
[30/46] Compiling ReactiveKit Subscriber.swift
/host/spi-builder-workspace/Sources/SignalProtocol+Utilities.swift:107:21: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 | return self.observe { event in
106 | queue.asyncAfter(deadline: .now() + interval) {
107 | observer.on(event)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
108 | }
109 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Utilities.swift:107:33: warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 | return self.observe { event in
106 | queue.asyncAfter(deadline: .now() + interval) {
107 | observer.on(event)
| `- warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
108 | }
109 | }
/host/spi-builder-workspace/Sources/Signal.Event.swift:28:17: note: consider making enum 'Event' conform to the 'Sendable' protocol
26 |
27 | /// An event of a sequence.
28 | public enum Event {
| `- note: consider making enum 'Event' conform to the 'Sendable' protocol
29 |
30 | /// An event that carries next element.
[31/46] Compiling ReactiveKit SignalProtocol+Monad.swift
[32/46] Compiling ReactiveKit SignalProtocol+Optional.swift
[33/46] Compiling ReactiveKit SignalProtocol+Result.swift
[34/46] Compiling ReactiveKit SignalProtocol+Sequence.swift
[35/46] Compiling ReactiveKit SignalProtocol+Threading.swift
[36/46] Compiling ReactiveKit SignalProtocol+Async.swift
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:41:17: warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | }
40 | continuation.onTermination = { @Sendable _ in
41 | disposable.dispose()
| `- warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:63:17: warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
61 | }
62 | continuation.onTermination = { @Sendable _ in
63 | disposable.dispose()
| `- warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | }
65 | }
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:182:28: warning: capture of 'serialDisposable' with non-sendable type 'SerialDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
180 | queue.asyncAfter(deadline: .now() + interval) {
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
| `- warning: capture of 'serialDisposable' with non-sendable type 'SerialDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
183 | _dispatch = nil;
184 | return
/host/spi-builder-workspace/Sources/Disposable.swift:209:20: note: class 'SerialDisposable' does not conform to the 'Sendable' protocol
207 |
208 | /// A disposable that disposes other disposable upon its own disposing.
209 | public final class SerialDisposable: Disposable {
| `- note: class 'SerialDisposable' does not conform to the 'Sendable' protocol
210 |
211 | private let lock = NSRecursiveLock(name: "com.reactive_kit.serial_disposable")
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:183:25: warning: capture of '_dispatch' with non-sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
183 | _dispatch = nil;
| |- warning: capture of '_dispatch' 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'
184 | return
185 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:186:38: warning: capture of '_latestElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
184 | return
185 | }
186 | if let element = _latestElement {
| `- warning: capture of '_latestElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
187 | observer.receive(element)
188 | _latestElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:187:25: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
185 | }
186 | if let element = _latestElement {
187 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 | _latestElement = nil
189 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:183:25: warning: mutation of captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
183 | _dispatch = nil;
| `- warning: mutation of captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | return
185 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:186:38: warning: reference to captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | return
185 | }
186 | if let element = _latestElement {
| `- warning: reference to captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
187 | observer.receive(element)
188 | _latestElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:188:25: warning: mutation of captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
186 | if let element = _latestElement {
187 | observer.receive(element)
188 | _latestElement = nil
| `- warning: mutation of captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
189 | }
190 | _dispatch?()
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:190:21: warning: reference to captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
188 | _latestElement = nil
189 | }
190 | _dispatch?()
| `- warning: reference to captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
191 | }
192 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:396:32: warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
394 | return self.observe { event in
395 | queue.async {
396 | switch event {
| `- warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
397 | case .next(let element):
398 | if isInitialElement {
/host/spi-builder-workspace/Sources/Signal.Event.swift:28:17: note: consider making enum 'Event' conform to the 'Sendable' protocol
26 |
27 | /// An event of a sequence.
28 | public enum Event {
| `- note: consider making enum 'Event' conform to the 'Sendable' protocol
29 |
30 | /// An event that carries next element.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:400:33: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | if isInitialElement {
399 | isInitialElement = false
400 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
401 | } else {
402 | lastElement = element
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:402:33: warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
402 | lastElement = element
| `- warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:404:35: warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
402 | lastElement = element
403 | }
404 | guard throttledDisposable == nil else { return }
| `- warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:398:32: warning: reference to captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
396 | switch event {
397 | case .next(let element):
398 | if isInitialElement {
| `- warning: reference to captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
399 | isInitialElement = false
400 | observer.receive(element)
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:399:33: warning: mutation of captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
397 | case .next(let element):
398 | if isInitialElement {
399 | isInitialElement = false
| `- warning: mutation of captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:402:33: warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
402 | lastElement = element
| `- warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:404:35: warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
402 | lastElement = element
403 | }
404 | guard throttledDisposable == nil else { return }
| `- warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:405:29: warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
| `- warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
406 | if let element = lastElement {
407 | observer.receive(element)
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:406:50: warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in an isolated closure; this is an error in the Swift 6 language mode
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
| `- warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in an isolated closure; this is an error in the Swift 6 language mode
407 | observer.receive(element)
408 | lastElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:407:37: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in an isolated closure; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
407 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in an isolated closure; this is an error in the Swift 6 language mode
408 | lastElement = nil
409 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:413:33: warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in an isolated closure; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
413 | throttledDisposable = nil
| `- warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in an isolated closure; this is an error in the Swift 6 language mode
414 | }
415 | case .failed(let error):
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:406:50: warning: reference to captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
| `- warning: reference to captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
407 | observer.receive(element)
408 | lastElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:408:37: warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
406 | if let element = lastElement {
407 | observer.receive(element)
408 | lastElement = nil
| `- warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
409 | }
410 | if isFinished {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:410:36: warning: reference to captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
408 | lastElement = nil
409 | }
410 | if isFinished {
| `- warning: reference to captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:413:33: warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
413 | throttledDisposable = nil
| `- warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | }
415 | case .failed(let error):
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:418:35: warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
416 | observer.receive(completion: .failure(error))
417 | case .completed:
418 | guard throttledDisposable == nil else {
| `- warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
419 | isFinished = true
420 | return
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:419:33: warning: mutation of captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | case .completed:
418 | guard throttledDisposable == nil else {
419 | isFinished = true
| `- warning: mutation of captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
420 | return
421 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:35:34: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
33 | switch event {
34 | case .next(let element):
35 | continuation.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
36 | case .completed:
37 | continuation.finish()
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:55:34: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
53 | switch event {
54 | case .next(let element):
55 | continuation.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
56 | case .failed(let error):
57 | continuation.finish(throwing: error)
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:74:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | public func toSignal() -> Signal<Element, Swift.Error> {
73 | Signal<Element, Swift.Error> { observer in
74 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | do {
76 | for try await element in self {
| `- note: closure captures non-Sendable 'self'
77 | observer.receive(element)
| `- note: closure captures non-Sendable 'observer'
78 | }
79 | observer.receive(completion: .finished)
[37/46] Compiling ReactiveKit SignalProtocol+Combining.swift
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:41:17: warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | }
40 | continuation.onTermination = { @Sendable _ in
41 | disposable.dispose()
| `- warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:63:17: warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
61 | }
62 | continuation.onTermination = { @Sendable _ in
63 | disposable.dispose()
| `- warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | }
65 | }
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:182:28: warning: capture of 'serialDisposable' with non-sendable type 'SerialDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
180 | queue.asyncAfter(deadline: .now() + interval) {
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
| `- warning: capture of 'serialDisposable' with non-sendable type 'SerialDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
183 | _dispatch = nil;
184 | return
/host/spi-builder-workspace/Sources/Disposable.swift:209:20: note: class 'SerialDisposable' does not conform to the 'Sendable' protocol
207 |
208 | /// A disposable that disposes other disposable upon its own disposing.
209 | public final class SerialDisposable: Disposable {
| `- note: class 'SerialDisposable' does not conform to the 'Sendable' protocol
210 |
211 | private let lock = NSRecursiveLock(name: "com.reactive_kit.serial_disposable")
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:183:25: warning: capture of '_dispatch' with non-sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
183 | _dispatch = nil;
| |- warning: capture of '_dispatch' 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'
184 | return
185 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:186:38: warning: capture of '_latestElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
184 | return
185 | }
186 | if let element = _latestElement {
| `- warning: capture of '_latestElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
187 | observer.receive(element)
188 | _latestElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:187:25: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
185 | }
186 | if let element = _latestElement {
187 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 | _latestElement = nil
189 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:183:25: warning: mutation of captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
183 | _dispatch = nil;
| `- warning: mutation of captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | return
185 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:186:38: warning: reference to captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | return
185 | }
186 | if let element = _latestElement {
| `- warning: reference to captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
187 | observer.receive(element)
188 | _latestElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:188:25: warning: mutation of captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
186 | if let element = _latestElement {
187 | observer.receive(element)
188 | _latestElement = nil
| `- warning: mutation of captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
189 | }
190 | _dispatch?()
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:190:21: warning: reference to captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
188 | _latestElement = nil
189 | }
190 | _dispatch?()
| `- warning: reference to captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
191 | }
192 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:396:32: warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
394 | return self.observe { event in
395 | queue.async {
396 | switch event {
| `- warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
397 | case .next(let element):
398 | if isInitialElement {
/host/spi-builder-workspace/Sources/Signal.Event.swift:28:17: note: consider making enum 'Event' conform to the 'Sendable' protocol
26 |
27 | /// An event of a sequence.
28 | public enum Event {
| `- note: consider making enum 'Event' conform to the 'Sendable' protocol
29 |
30 | /// An event that carries next element.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:400:33: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | if isInitialElement {
399 | isInitialElement = false
400 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
401 | } else {
402 | lastElement = element
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:402:33: warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
402 | lastElement = element
| `- warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:404:35: warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
402 | lastElement = element
403 | }
404 | guard throttledDisposable == nil else { return }
| `- warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:398:32: warning: reference to captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
396 | switch event {
397 | case .next(let element):
398 | if isInitialElement {
| `- warning: reference to captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
399 | isInitialElement = false
400 | observer.receive(element)
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:399:33: warning: mutation of captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
397 | case .next(let element):
398 | if isInitialElement {
399 | isInitialElement = false
| `- warning: mutation of captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:402:33: warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
402 | lastElement = element
| `- warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:404:35: warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
402 | lastElement = element
403 | }
404 | guard throttledDisposable == nil else { return }
| `- warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:405:29: warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
| `- warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
406 | if let element = lastElement {
407 | observer.receive(element)
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:406:50: warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in an isolated closure; this is an error in the Swift 6 language mode
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
| `- warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in an isolated closure; this is an error in the Swift 6 language mode
407 | observer.receive(element)
408 | lastElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:407:37: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in an isolated closure; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
407 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in an isolated closure; this is an error in the Swift 6 language mode
408 | lastElement = nil
409 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:413:33: warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in an isolated closure; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
413 | throttledDisposable = nil
| `- warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in an isolated closure; this is an error in the Swift 6 language mode
414 | }
415 | case .failed(let error):
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:406:50: warning: reference to captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
| `- warning: reference to captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
407 | observer.receive(element)
408 | lastElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:408:37: warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
406 | if let element = lastElement {
407 | observer.receive(element)
408 | lastElement = nil
| `- warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
409 | }
410 | if isFinished {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:410:36: warning: reference to captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
408 | lastElement = nil
409 | }
410 | if isFinished {
| `- warning: reference to captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:413:33: warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
413 | throttledDisposable = nil
| `- warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | }
415 | case .failed(let error):
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:418:35: warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
416 | observer.receive(completion: .failure(error))
417 | case .completed:
418 | guard throttledDisposable == nil else {
| `- warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
419 | isFinished = true
420 | return
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:419:33: warning: mutation of captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | case .completed:
418 | guard throttledDisposable == nil else {
419 | isFinished = true
| `- warning: mutation of captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
420 | return
421 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:35:34: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
33 | switch event {
34 | case .next(let element):
35 | continuation.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
36 | case .completed:
37 | continuation.finish()
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:55:34: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
53 | switch event {
54 | case .next(let element):
55 | continuation.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
56 | case .failed(let error):
57 | continuation.finish(throwing: error)
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:74:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | public func toSignal() -> Signal<Element, Swift.Error> {
73 | Signal<Element, Swift.Error> { observer in
74 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | do {
76 | for try await element in self {
| `- note: closure captures non-Sendable 'self'
77 | observer.receive(element)
| `- note: closure captures non-Sendable 'observer'
78 | }
79 | observer.receive(completion: .finished)
[38/46] Compiling ReactiveKit SignalProtocol+ErrorHandling.swift
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:41:17: warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | }
40 | continuation.onTermination = { @Sendable _ in
41 | disposable.dispose()
| `- warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:63:17: warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
61 | }
62 | continuation.onTermination = { @Sendable _ in
63 | disposable.dispose()
| `- warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | }
65 | }
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:182:28: warning: capture of 'serialDisposable' with non-sendable type 'SerialDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
180 | queue.asyncAfter(deadline: .now() + interval) {
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
| `- warning: capture of 'serialDisposable' with non-sendable type 'SerialDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
183 | _dispatch = nil;
184 | return
/host/spi-builder-workspace/Sources/Disposable.swift:209:20: note: class 'SerialDisposable' does not conform to the 'Sendable' protocol
207 |
208 | /// A disposable that disposes other disposable upon its own disposing.
209 | public final class SerialDisposable: Disposable {
| `- note: class 'SerialDisposable' does not conform to the 'Sendable' protocol
210 |
211 | private let lock = NSRecursiveLock(name: "com.reactive_kit.serial_disposable")
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:183:25: warning: capture of '_dispatch' with non-sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
183 | _dispatch = nil;
| |- warning: capture of '_dispatch' 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'
184 | return
185 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:186:38: warning: capture of '_latestElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
184 | return
185 | }
186 | if let element = _latestElement {
| `- warning: capture of '_latestElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
187 | observer.receive(element)
188 | _latestElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:187:25: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
185 | }
186 | if let element = _latestElement {
187 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 | _latestElement = nil
189 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:183:25: warning: mutation of captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
183 | _dispatch = nil;
| `- warning: mutation of captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | return
185 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:186:38: warning: reference to captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | return
185 | }
186 | if let element = _latestElement {
| `- warning: reference to captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
187 | observer.receive(element)
188 | _latestElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:188:25: warning: mutation of captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
186 | if let element = _latestElement {
187 | observer.receive(element)
188 | _latestElement = nil
| `- warning: mutation of captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
189 | }
190 | _dispatch?()
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:190:21: warning: reference to captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
188 | _latestElement = nil
189 | }
190 | _dispatch?()
| `- warning: reference to captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
191 | }
192 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:396:32: warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
394 | return self.observe { event in
395 | queue.async {
396 | switch event {
| `- warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
397 | case .next(let element):
398 | if isInitialElement {
/host/spi-builder-workspace/Sources/Signal.Event.swift:28:17: note: consider making enum 'Event' conform to the 'Sendable' protocol
26 |
27 | /// An event of a sequence.
28 | public enum Event {
| `- note: consider making enum 'Event' conform to the 'Sendable' protocol
29 |
30 | /// An event that carries next element.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:400:33: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | if isInitialElement {
399 | isInitialElement = false
400 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
401 | } else {
402 | lastElement = element
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:402:33: warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
402 | lastElement = element
| `- warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:404:35: warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
402 | lastElement = element
403 | }
404 | guard throttledDisposable == nil else { return }
| `- warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:398:32: warning: reference to captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
396 | switch event {
397 | case .next(let element):
398 | if isInitialElement {
| `- warning: reference to captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
399 | isInitialElement = false
400 | observer.receive(element)
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:399:33: warning: mutation of captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
397 | case .next(let element):
398 | if isInitialElement {
399 | isInitialElement = false
| `- warning: mutation of captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:402:33: warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
402 | lastElement = element
| `- warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:404:35: warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
402 | lastElement = element
403 | }
404 | guard throttledDisposable == nil else { return }
| `- warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:405:29: warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
| `- warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
406 | if let element = lastElement {
407 | observer.receive(element)
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:406:50: warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in an isolated closure; this is an error in the Swift 6 language mode
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
| `- warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in an isolated closure; this is an error in the Swift 6 language mode
407 | observer.receive(element)
408 | lastElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:407:37: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in an isolated closure; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
407 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in an isolated closure; this is an error in the Swift 6 language mode
408 | lastElement = nil
409 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:413:33: warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in an isolated closure; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
413 | throttledDisposable = nil
| `- warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in an isolated closure; this is an error in the Swift 6 language mode
414 | }
415 | case .failed(let error):
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:406:50: warning: reference to captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
| `- warning: reference to captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
407 | observer.receive(element)
408 | lastElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:408:37: warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
406 | if let element = lastElement {
407 | observer.receive(element)
408 | lastElement = nil
| `- warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
409 | }
410 | if isFinished {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:410:36: warning: reference to captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
408 | lastElement = nil
409 | }
410 | if isFinished {
| `- warning: reference to captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:413:33: warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
413 | throttledDisposable = nil
| `- warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | }
415 | case .failed(let error):
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:418:35: warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
416 | observer.receive(completion: .failure(error))
417 | case .completed:
418 | guard throttledDisposable == nil else {
| `- warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
419 | isFinished = true
420 | return
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:419:33: warning: mutation of captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | case .completed:
418 | guard throttledDisposable == nil else {
419 | isFinished = true
| `- warning: mutation of captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
420 | return
421 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:35:34: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
33 | switch event {
34 | case .next(let element):
35 | continuation.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
36 | case .completed:
37 | continuation.finish()
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:55:34: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
53 | switch event {
54 | case .next(let element):
55 | continuation.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
56 | case .failed(let error):
57 | continuation.finish(throwing: error)
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:74:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | public func toSignal() -> Signal<Element, Swift.Error> {
73 | Signal<Element, Swift.Error> { observer in
74 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | do {
76 | for try await element in self {
| `- note: closure captures non-Sendable 'self'
77 | observer.receive(element)
| `- note: closure captures non-Sendable 'observer'
78 | }
79 | observer.receive(completion: .finished)
[39/46] Compiling ReactiveKit SignalProtocol+Event.swift
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:41:17: warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | }
40 | continuation.onTermination = { @Sendable _ in
41 | disposable.dispose()
| `- warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:63:17: warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
61 | }
62 | continuation.onTermination = { @Sendable _ in
63 | disposable.dispose()
| `- warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | }
65 | }
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:182:28: warning: capture of 'serialDisposable' with non-sendable type 'SerialDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
180 | queue.asyncAfter(deadline: .now() + interval) {
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
| `- warning: capture of 'serialDisposable' with non-sendable type 'SerialDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
183 | _dispatch = nil;
184 | return
/host/spi-builder-workspace/Sources/Disposable.swift:209:20: note: class 'SerialDisposable' does not conform to the 'Sendable' protocol
207 |
208 | /// A disposable that disposes other disposable upon its own disposing.
209 | public final class SerialDisposable: Disposable {
| `- note: class 'SerialDisposable' does not conform to the 'Sendable' protocol
210 |
211 | private let lock = NSRecursiveLock(name: "com.reactive_kit.serial_disposable")
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:183:25: warning: capture of '_dispatch' with non-sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
183 | _dispatch = nil;
| |- warning: capture of '_dispatch' 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'
184 | return
185 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:186:38: warning: capture of '_latestElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
184 | return
185 | }
186 | if let element = _latestElement {
| `- warning: capture of '_latestElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
187 | observer.receive(element)
188 | _latestElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:187:25: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
185 | }
186 | if let element = _latestElement {
187 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 | _latestElement = nil
189 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:183:25: warning: mutation of captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
183 | _dispatch = nil;
| `- warning: mutation of captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | return
185 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:186:38: warning: reference to captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | return
185 | }
186 | if let element = _latestElement {
| `- warning: reference to captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
187 | observer.receive(element)
188 | _latestElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:188:25: warning: mutation of captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
186 | if let element = _latestElement {
187 | observer.receive(element)
188 | _latestElement = nil
| `- warning: mutation of captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
189 | }
190 | _dispatch?()
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:190:21: warning: reference to captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
188 | _latestElement = nil
189 | }
190 | _dispatch?()
| `- warning: reference to captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
191 | }
192 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:396:32: warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
394 | return self.observe { event in
395 | queue.async {
396 | switch event {
| `- warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
397 | case .next(let element):
398 | if isInitialElement {
/host/spi-builder-workspace/Sources/Signal.Event.swift:28:17: note: consider making enum 'Event' conform to the 'Sendable' protocol
26 |
27 | /// An event of a sequence.
28 | public enum Event {
| `- note: consider making enum 'Event' conform to the 'Sendable' protocol
29 |
30 | /// An event that carries next element.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:400:33: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | if isInitialElement {
399 | isInitialElement = false
400 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
401 | } else {
402 | lastElement = element
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:402:33: warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
402 | lastElement = element
| `- warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:404:35: warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
402 | lastElement = element
403 | }
404 | guard throttledDisposable == nil else { return }
| `- warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:398:32: warning: reference to captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
396 | switch event {
397 | case .next(let element):
398 | if isInitialElement {
| `- warning: reference to captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
399 | isInitialElement = false
400 | observer.receive(element)
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:399:33: warning: mutation of captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
397 | case .next(let element):
398 | if isInitialElement {
399 | isInitialElement = false
| `- warning: mutation of captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:402:33: warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
402 | lastElement = element
| `- warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:404:35: warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
402 | lastElement = element
403 | }
404 | guard throttledDisposable == nil else { return }
| `- warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:405:29: warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
| `- warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
406 | if let element = lastElement {
407 | observer.receive(element)
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:406:50: warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in an isolated closure; this is an error in the Swift 6 language mode
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
| `- warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in an isolated closure; this is an error in the Swift 6 language mode
407 | observer.receive(element)
408 | lastElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:407:37: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in an isolated closure; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
407 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in an isolated closure; this is an error in the Swift 6 language mode
408 | lastElement = nil
409 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:413:33: warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in an isolated closure; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
413 | throttledDisposable = nil
| `- warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in an isolated closure; this is an error in the Swift 6 language mode
414 | }
415 | case .failed(let error):
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:406:50: warning: reference to captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
| `- warning: reference to captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
407 | observer.receive(element)
408 | lastElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:408:37: warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
406 | if let element = lastElement {
407 | observer.receive(element)
408 | lastElement = nil
| `- warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
409 | }
410 | if isFinished {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:410:36: warning: reference to captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
408 | lastElement = nil
409 | }
410 | if isFinished {
| `- warning: reference to captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:413:33: warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
413 | throttledDisposable = nil
| `- warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | }
415 | case .failed(let error):
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:418:35: warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
416 | observer.receive(completion: .failure(error))
417 | case .completed:
418 | guard throttledDisposable == nil else {
| `- warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
419 | isFinished = true
420 | return
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:419:33: warning: mutation of captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | case .completed:
418 | guard throttledDisposable == nil else {
419 | isFinished = true
| `- warning: mutation of captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
420 | return
421 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:35:34: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
33 | switch event {
34 | case .next(let element):
35 | continuation.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
36 | case .completed:
37 | continuation.finish()
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:55:34: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
53 | switch event {
54 | case .next(let element):
55 | continuation.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
56 | case .failed(let error):
57 | continuation.finish(throwing: error)
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:74:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | public func toSignal() -> Signal<Element, Swift.Error> {
73 | Signal<Element, Swift.Error> { observer in
74 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | do {
76 | for try await element in self {
| `- note: closure captures non-Sendable 'self'
77 | observer.receive(element)
| `- note: closure captures non-Sendable 'observer'
78 | }
79 | observer.receive(completion: .finished)
[40/46] Compiling ReactiveKit SignalProtocol+Filtering.swift
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:41:17: warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
39 | }
40 | continuation.onTermination = { @Sendable _ in
41 | disposable.dispose()
| `- warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:63:17: warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
61 | }
62 | continuation.onTermination = { @Sendable _ in
63 | disposable.dispose()
| `- warning: capture of 'disposable' with non-sendable type 'any Disposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | }
65 | }
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:182:28: warning: capture of 'serialDisposable' with non-sendable type 'SerialDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
180 | queue.asyncAfter(deadline: .now() + interval) {
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
| `- warning: capture of 'serialDisposable' with non-sendable type 'SerialDisposable' in a '@Sendable' closure; this is an error in the Swift 6 language mode
183 | _dispatch = nil;
184 | return
/host/spi-builder-workspace/Sources/Disposable.swift:209:20: note: class 'SerialDisposable' does not conform to the 'Sendable' protocol
207 |
208 | /// A disposable that disposes other disposable upon its own disposing.
209 | public final class SerialDisposable: Disposable {
| `- note: class 'SerialDisposable' does not conform to the 'Sendable' protocol
210 |
211 | private let lock = NSRecursiveLock(name: "com.reactive_kit.serial_disposable")
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:183:25: warning: capture of '_dispatch' with non-sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
183 | _dispatch = nil;
| |- warning: capture of '_dispatch' 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'
184 | return
185 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:186:38: warning: capture of '_latestElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
184 | return
185 | }
186 | if let element = _latestElement {
| `- warning: capture of '_latestElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
187 | observer.receive(element)
188 | _latestElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:187:25: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
185 | }
186 | if let element = _latestElement {
187 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 | _latestElement = nil
189 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:183:25: warning: mutation of captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
181 | lock.lock(); defer { lock.unlock() }
182 | guard !serialDisposable.isDisposed else {
183 | _dispatch = nil;
| `- warning: mutation of captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | return
185 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:186:38: warning: reference to captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | return
185 | }
186 | if let element = _latestElement {
| `- warning: reference to captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
187 | observer.receive(element)
188 | _latestElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:188:25: warning: mutation of captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
186 | if let element = _latestElement {
187 | observer.receive(element)
188 | _latestElement = nil
| `- warning: mutation of captured var '_latestElement' in concurrently-executing code; this is an error in the Swift 6 language mode
189 | }
190 | _dispatch?()
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:190:21: warning: reference to captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
188 | _latestElement = nil
189 | }
190 | _dispatch?()
| `- warning: reference to captured var '_dispatch' in concurrently-executing code; this is an error in the Swift 6 language mode
191 | }
192 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:396:32: warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
394 | return self.observe { event in
395 | queue.async {
396 | switch event {
| `- warning: capture of 'event' with non-sendable type 'Signal<Self.Element, Self.Error>.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
397 | case .next(let element):
398 | if isInitialElement {
/host/spi-builder-workspace/Sources/Signal.Event.swift:28:17: note: consider making enum 'Event' conform to the 'Sendable' protocol
26 |
27 | /// An event of a sequence.
28 | public enum Event {
| `- note: consider making enum 'Event' conform to the 'Sendable' protocol
29 |
30 | /// An event that carries next element.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:400:33: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
398 | if isInitialElement {
399 | isInitialElement = false
400 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
401 | } else {
402 | lastElement = element
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:402:33: warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
402 | lastElement = element
| `- warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:404:35: warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
402 | lastElement = element
403 | }
404 | guard throttledDisposable == nil else { return }
| `- warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:398:32: warning: reference to captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
396 | switch event {
397 | case .next(let element):
398 | if isInitialElement {
| `- warning: reference to captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
399 | isInitialElement = false
400 | observer.receive(element)
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:399:33: warning: mutation of captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
397 | case .next(let element):
398 | if isInitialElement {
399 | isInitialElement = false
| `- warning: mutation of captured var 'isInitialElement' in concurrently-executing code; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:402:33: warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
400 | observer.receive(element)
401 | } else {
402 | lastElement = element
| `- warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:404:35: warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
402 | lastElement = element
403 | }
404 | guard throttledDisposable == nil else { return }
| `- warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:405:29: warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
403 | }
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
| `- warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
406 | if let element = lastElement {
407 | observer.receive(element)
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:406:50: warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in an isolated closure; this is an error in the Swift 6 language mode
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
| `- warning: capture of 'lastElement' with non-sendable type 'Self.Element?' in an isolated closure; this is an error in the Swift 6 language mode
407 | observer.receive(element)
408 | lastElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:407:37: warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in an isolated closure; this is an error in the Swift 6 language mode
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
407 | observer.receive(element)
| `- warning: capture of 'observer' with non-sendable type 'AtomicObserver<Self.Element, Self.Error>' in an isolated closure; this is an error in the Swift 6 language mode
408 | lastElement = nil
409 | }
/host/spi-builder-workspace/Sources/Observer.swift:65:20: note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
63 |
64 | /// Observer that ensures events are sent atomically.
65 | public final class AtomicObserver<Element, Error: Swift.Error>: ObserverProtocol, Disposable {
| `- note: generic class 'AtomicObserver' does not conform to the 'Sendable' protocol
66 |
67 | private var observer: Observer<Element, Error>?
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:413:33: warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in an isolated closure; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
413 | throttledDisposable = nil
| `- warning: capture of 'throttledDisposable' with non-sendable type '(any Disposable)?' in an isolated closure; this is an error in the Swift 6 language mode
414 | }
415 | case .failed(let error):
/host/spi-builder-workspace/Sources/Disposable.swift:37:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
35 | ///
36 | /// disposable.dispose()
37 | public protocol Disposable: Cancellable {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
38 |
39 | /// Dispose the signal observation or binding.
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:406:50: warning: reference to captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
404 | guard throttledDisposable == nil else { return }
405 | throttledDisposable = queue.disposableAfter(when: seconds) {
406 | if let element = lastElement {
| `- warning: reference to captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
407 | observer.receive(element)
408 | lastElement = nil
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:408:37: warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
406 | if let element = lastElement {
407 | observer.receive(element)
408 | lastElement = nil
| `- warning: mutation of captured var 'lastElement' in concurrently-executing code; this is an error in the Swift 6 language mode
409 | }
410 | if isFinished {
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:410:36: warning: reference to captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
408 | lastElement = nil
409 | }
410 | if isFinished {
| `- warning: reference to captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:413:33: warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
411 | observer.receive(completion: .finished)
412 | }
413 | throttledDisposable = nil
| `- warning: mutation of captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | }
415 | case .failed(let error):
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:418:35: warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
416 | observer.receive(completion: .failure(error))
417 | case .completed:
418 | guard throttledDisposable == nil else {
| `- warning: reference to captured var 'throttledDisposable' in concurrently-executing code; this is an error in the Swift 6 language mode
419 | isFinished = true
420 | return
/host/spi-builder-workspace/Sources/SignalProtocol+Filtering.swift:419:33: warning: mutation of captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | case .completed:
418 | guard throttledDisposable == nil else {
419 | isFinished = true
| `- warning: mutation of captured var 'isFinished' in concurrently-executing code; this is an error in the Swift 6 language mode
420 | return
421 | }
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:35:34: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
33 | switch event {
34 | case .next(let element):
35 | continuation.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
36 | case .completed:
37 | continuation.finish()
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:55:34: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
53 | switch event {
54 | case .next(let element):
55 | continuation.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
56 | case .failed(let error):
57 | continuation.finish(throwing: error)
/host/spi-builder-workspace/Sources/SignalProtocol+Async.swift:74:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | public func toSignal() -> Signal<Element, Swift.Error> {
73 | Signal<Element, Swift.Error> { observer in
74 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | do {
76 | for try await element in self {
| `- note: closure captures non-Sendable 'self'
77 | observer.receive(element)
| `- note: closure captures non-Sendable 'observer'
78 | }
79 | observer.receive(completion: .finished)
[41/46] Compiling ReactiveKit ObservableObject.swift
[42/46] Compiling ReactiveKit Observer.swift
[43/46] Compiling ReactiveKit Property.swift
[44/46] Compiling ReactiveKit Published.swift
[45/46] Compiling ReactiveKit Deferred.swift
[46/46] Compiling ReactiveKit Empty.swift
Build complete! (14.02s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ReactiveKit",
"name" : "ReactiveKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "watchos",
"version" : "2.0"
}
],
"products" : [
{
"name" : "ReactiveKit",
"targets" : [
"ReactiveKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ReactiveKitTests",
"module_type" : "SwiftTarget",
"name" : "ReactiveKitTests",
"path" : "Tests/ReactiveKitTests",
"sources" : [
"CombineTests.swift",
"PropertyTests.swift",
"PublishedTests.swift",
"Scheduler.swift",
"SignalTests.swift",
"Stress.swift",
"SubjectTests.swift"
],
"target_dependencies" : [
"ReactiveKit"
],
"type" : "test"
},
{
"c99name" : "ReactiveKit",
"module_type" : "SwiftTarget",
"name" : "ReactiveKit",
"path" : "Sources",
"product_memberships" : [
"ReactiveKit"
],
"sources" : [
"Atomic.swift",
"Bindable.swift",
"Cancellable.swift",
"Combine.swift",
"Connectable.swift",
"Deallocatable.swift",
"Deprecations.swift",
"Disposable.swift",
"ExecutionContext.swift",
"LoadingProperty.swift",
"LoadingSignal.swift",
"Lock.swift",
"ObservableObject.swift",
"Observer.swift",
"Property.swift",
"Published.swift",
"Publishers/Deferred.swift",
"Publishers/Empty.swift",
"Reactive.swift",
"Scheduler.swift",
"Signal.Event.swift",
"Signal.swift",
"SignalProtocol+Arities.swift",
"SignalProtocol+Async.swift",
"SignalProtocol+Combining.swift",
"SignalProtocol+ErrorHandling.swift",
"SignalProtocol+Event.swift",
"SignalProtocol+Filtering.swift",
"SignalProtocol+Monad.swift",
"SignalProtocol+Optional.swift",
"SignalProtocol+Result.swift",
"SignalProtocol+Sequence.swift",
"SignalProtocol+Threading.swift",
"SignalProtocol+Transforming.swift",
"SignalProtocol+Utilities.swift",
"SignalProtocol.swift",
"Subjects.swift",
"Subscriber.swift",
"Subscribers/Accumulator.swift",
"Subscribers/Completion.swift",
"Subscribers/Demand.swift",
"Subscribers/Sink.swift",
"Subscription.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.