Build Information
Successful build of ReactiveSwift with Swift 6.0 for Linux.
Swift 6 data race errors: 11
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ReactiveCocoa/ReactiveSwift.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/ReactiveCocoa/ReactiveSwift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at f4f3d4d Use unspecified QoS in QueueScheduler when QoS is unspecified (#880)
Submodule path 'Carthage/Checkouts/Nimble': checked out 'c93f16c25af5770f0d3e6af27c9634640946b068'
Submodule path 'Carthage/Checkouts/Quick': checked out 'bd86ca0141e3cfb333546de5a11ede63f0c4a0e6'
Submodule path 'Carthage/Checkouts/Quick/Externals/Nimble': checked out 'd258c638d9ef214723a857a23f4113773aad28fb'
Submodule path 'Carthage/Checkouts/xcconfigs': checked out '4ced0ad5a971220917994a4edfa6abf9702e3818'
Submodule 'Carthage/Checkouts/Nimble' (https://github.com/Quick/Nimble.git) registered for path 'Carthage/Checkouts/Nimble'
Submodule 'Carthage/Checkouts/Quick' (https://github.com/Quick/Quick.git) registered for path 'Carthage/Checkouts/Quick'
Submodule 'Carthage/Checkouts/xcconfigs' (https://github.com/xcconfigs/xcconfigs.git) registered for path 'Carthage/Checkouts/xcconfigs'
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/Nimble'...
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/Quick'...
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/xcconfigs'...
Submodule 'Externals/Nimble' (https://github.com/Quick/Nimble.git) registered for path 'Carthage/Checkouts/Quick/Externals/Nimble'
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/Quick/Externals/Nimble'...
Cloned https://github.com/ReactiveCocoa/ReactiveSwift.git
Revision (git rev-parse @):
f4f3d4d7375ce26a797f7f0b4c246444c3afd43f
SUCCESS checkout https://github.com/ReactiveCocoa/ReactiveSwift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/ReactiveCocoa/ReactiveSwift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
Fetching https://github.com/Quick/Quick.git
[1/1247] Fetching cwlpreconditiontesting
[139/1686] Fetching cwlpreconditiontesting, cwlcatchexception
[1687/16235] Fetching cwlpreconditiontesting, cwlcatchexception, quick
[16236/34875] Fetching cwlpreconditiontesting, cwlcatchexception, quick, nimble
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (1.51s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (1.51s)
Fetched https://github.com/Quick/Quick.git from cache (1.52s)
Fetched https://github.com/Quick/Nimble.git from cache (1.53s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 9.2.0 (0.45s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 4.0.0 (0.47s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.0.0 (0.44s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.1.0 (0.42s)
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.0.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 9.2.0
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.1.0
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 4.0.0
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/48] Emitting module ReactiveSwift
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
/host/spi-builder-workspace/Sources/Flatten.swift:35:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
33 | /// Any failure from the inner streams is propagated immediately to the flattened
34 | /// stream of values.
35 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:51:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
49 | /// Any failure from the inner streams is propagated immediately to the flattened
50 | /// stream of values.
51 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:85:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
83 | /// Any failure from the inner streams is propagated immediately to the flattened
84 | /// stream of values.
85 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:99:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
97 | /// Any failure from the inner streams is propagated immediately to the flattened
98 | /// stream of values.
99 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 | /// Given a first inner stream, all subsequent inner streams sent by the upstream would
/host/spi-builder-workspace/Sources/Flatten.swift:114:20: warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
112 | /// Any failure from the inner streams is propagated immediately to the flattened
113 | /// stream of values.
114 | public static let throttle = FlattenStrategy(kind: .throttle)
| |- warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'throttle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | }
116 |
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
/host/spi-builder-workspace/Sources/Scheduler.swift:207:21: warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| `- warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | deinit
/host/spi-builder-workspace/Sources/Scheduler.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
7 | //
8 |
9 | import Dispatch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
10 | import Foundation
11 |
:
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| |- note: annotate 'dispatchSpecificKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
/host/spi-builder-workspace/Sources/Scheduler.swift:209:21: warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
| |- warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__once' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__once' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
210 | DispatchQueue.main.setSpecific(key: UIScheduler.dispatchSpecificKey,
211 | value: dispatchSpecificValue)
/host/spi-builder-workspace/Sources/Scheduler.swift:329:20: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 | /// A scheduler backed by a serial GCD queue.
322 | public final class QueueScheduler: DateScheduler {
| `- note: class 'QueueScheduler' does not conform to the 'Sendable' protocol
323 | /// A singleton `QueueScheduler` that always targets the main thread's GCD
324 | /// queue.
:
327 | /// future date, and will always schedule asynchronously (even if
328 | /// already running on the main thread).
329 | public static let main = QueueScheduler(internalQueue: DispatchQueue.main)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 |
331 | public var currentDate: Date {
/host/spi-builder-workspace/Sources/SignalProducer.swift:2946:6: warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2942 | /// attachment to a `ReplayState`, and the observer should replay the supplied
2943 | /// values before attempting to observe again.
2944 | private struct ReplayError<Value>: Error {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
2945 | /// The values that should be replayed by the observer.
2946 | let values: [Value]
| `- warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2947 | }
2948 |
[4/54] Compiling ReactiveSwift Operators.swift
[5/54] Compiling ReactiveSwift Reduce.swift
[6/54] Compiling ReactiveSwift ScanMap.swift
[7/54] Compiling ReactiveSwift SkipFirst.swift
[8/54] Compiling ReactiveSwift SkipRepeats.swift
[9/54] Compiling ReactiveSwift SkipWhile.swift
[10/54] Compiling ReactiveSwift CompactMap.swift
[11/54] Compiling ReactiveSwift Debounce.swift
[12/54] Compiling ReactiveSwift Delay.swift
[13/54] Compiling ReactiveSwift Dematerialize.swift
[14/54] Compiling ReactiveSwift DematerializeResults.swift
[15/54] Compiling ReactiveSwift Filter.swift
[16/54] Compiling ReactiveSwift LazyMap.swift
[17/54] Compiling ReactiveSwift Action.swift
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
[18/54] Compiling ReactiveSwift Atomic.swift
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
[19/54] Compiling ReactiveSwift Bag.swift
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
[20/54] Compiling ReactiveSwift Deprecations+Removals.swift
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
[21/54] Compiling ReactiveSwift Disposable.swift
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
[22/54] Compiling ReactiveSwift Event.swift
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
[23/54] Compiling ReactiveSwift EventLogger.swift
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
[24/54] Compiling ReactiveSwift Flatten.swift
/host/spi-builder-workspace/Sources/Flatten.swift:35:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
33 | /// Any failure from the inner streams is propagated immediately to the flattened
34 | /// stream of values.
35 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:51:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
49 | /// Any failure from the inner streams is propagated immediately to the flattened
50 | /// stream of values.
51 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:85:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
83 | /// Any failure from the inner streams is propagated immediately to the flattened
84 | /// stream of values.
85 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:99:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
97 | /// Any failure from the inner streams is propagated immediately to the flattened
98 | /// stream of values.
99 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 | /// Given a first inner stream, all subsequent inner streams sent by the upstream would
/host/spi-builder-workspace/Sources/Flatten.swift:114:20: warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
112 | /// Any failure from the inner streams is propagated immediately to the flattened
113 | /// stream of values.
114 | public static let throttle = FlattenStrategy(kind: .throttle)
| |- warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'throttle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | }
116 |
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[25/54] Compiling ReactiveSwift FoundationExtensions.swift
/host/spi-builder-workspace/Sources/Flatten.swift:35:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
33 | /// Any failure from the inner streams is propagated immediately to the flattened
34 | /// stream of values.
35 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:51:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
49 | /// Any failure from the inner streams is propagated immediately to the flattened
50 | /// stream of values.
51 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:85:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
83 | /// Any failure from the inner streams is propagated immediately to the flattened
84 | /// stream of values.
85 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:99:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
97 | /// Any failure from the inner streams is propagated immediately to the flattened
98 | /// stream of values.
99 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 | /// Given a first inner stream, all subsequent inner streams sent by the upstream would
/host/spi-builder-workspace/Sources/Flatten.swift:114:20: warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
112 | /// Any failure from the inner streams is propagated immediately to the flattened
113 | /// stream of values.
114 | public static let throttle = FlattenStrategy(kind: .throttle)
| |- warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'throttle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | }
116 |
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[26/54] Compiling ReactiveSwift Lifetime.swift
/host/spi-builder-workspace/Sources/Flatten.swift:35:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
33 | /// Any failure from the inner streams is propagated immediately to the flattened
34 | /// stream of values.
35 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:51:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
49 | /// Any failure from the inner streams is propagated immediately to the flattened
50 | /// stream of values.
51 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:85:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
83 | /// Any failure from the inner streams is propagated immediately to the flattened
84 | /// stream of values.
85 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:99:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
97 | /// Any failure from the inner streams is propagated immediately to the flattened
98 | /// stream of values.
99 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 | /// Given a first inner stream, all subsequent inner streams sent by the upstream would
/host/spi-builder-workspace/Sources/Flatten.swift:114:20: warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
112 | /// Any failure from the inner streams is propagated immediately to the flattened
113 | /// stream of values.
114 | public static let throttle = FlattenStrategy(kind: .throttle)
| |- warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'throttle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | }
116 |
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[27/54] Compiling ReactiveSwift AttemptMap.swift
/host/spi-builder-workspace/Sources/Flatten.swift:35:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
33 | /// Any failure from the inner streams is propagated immediately to the flattened
34 | /// stream of values.
35 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:51:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
49 | /// Any failure from the inner streams is propagated immediately to the flattened
50 | /// stream of values.
51 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:85:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
83 | /// Any failure from the inner streams is propagated immediately to the flattened
84 | /// stream of values.
85 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:99:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
97 | /// Any failure from the inner streams is propagated immediately to the flattened
98 | /// stream of values.
99 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 | /// Given a first inner stream, all subsequent inner streams sent by the upstream would
/host/spi-builder-workspace/Sources/Flatten.swift:114:20: warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
112 | /// Any failure from the inner streams is propagated immediately to the flattened
113 | /// stream of values.
114 | public static let throttle = FlattenStrategy(kind: .throttle)
| |- warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'throttle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | }
116 |
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[28/54] Compiling ReactiveSwift Collect.swift
/host/spi-builder-workspace/Sources/Flatten.swift:35:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
33 | /// Any failure from the inner streams is propagated immediately to the flattened
34 | /// stream of values.
35 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:51:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
49 | /// Any failure from the inner streams is propagated immediately to the flattened
50 | /// stream of values.
51 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:85:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
83 | /// Any failure from the inner streams is propagated immediately to the flattened
84 | /// stream of values.
85 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:99:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
97 | /// Any failure from the inner streams is propagated immediately to the flattened
98 | /// stream of values.
99 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 | /// Given a first inner stream, all subsequent inner streams sent by the upstream would
/host/spi-builder-workspace/Sources/Flatten.swift:114:20: warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
112 | /// Any failure from the inner streams is propagated immediately to the flattened
113 | /// stream of values.
114 | public static let throttle = FlattenStrategy(kind: .throttle)
| |- warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'throttle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | }
116 |
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[29/54] Compiling ReactiveSwift CollectEvery.swift
/host/spi-builder-workspace/Sources/Flatten.swift:35:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
33 | /// Any failure from the inner streams is propagated immediately to the flattened
34 | /// stream of values.
35 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:51:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
49 | /// Any failure from the inner streams is propagated immediately to the flattened
50 | /// stream of values.
51 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:85:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
83 | /// Any failure from the inner streams is propagated immediately to the flattened
84 | /// stream of values.
85 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:99:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
97 | /// Any failure from the inner streams is propagated immediately to the flattened
98 | /// stream of values.
99 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 | /// Given a first inner stream, all subsequent inner streams sent by the upstream would
/host/spi-builder-workspace/Sources/Flatten.swift:114:20: warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
112 | /// Any failure from the inner streams is propagated immediately to the flattened
113 | /// stream of values.
114 | public static let throttle = FlattenStrategy(kind: .throttle)
| |- warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'throttle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | }
116 |
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[30/54] Compiling ReactiveSwift CombinePrevious.swift
/host/spi-builder-workspace/Sources/Flatten.swift:35:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
33 | /// Any failure from the inner streams is propagated immediately to the flattened
34 | /// stream of values.
35 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:51:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
49 | /// Any failure from the inner streams is propagated immediately to the flattened
50 | /// stream of values.
51 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:85:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
83 | /// Any failure from the inner streams is propagated immediately to the flattened
84 | /// stream of values.
85 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:99:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
97 | /// Any failure from the inner streams is propagated immediately to the flattened
98 | /// stream of values.
99 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 |
101 | /// Given a first inner stream, all subsequent inner streams sent by the upstream would
/host/spi-builder-workspace/Sources/Flatten.swift:114:20: warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
112 | /// Any failure from the inner streams is propagated immediately to the flattened
113 | /// stream of values.
114 | public static let throttle = FlattenStrategy(kind: .throttle)
| |- warning: static property 'throttle' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'throttle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | }
116 |
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[31/54] Compiling ReactiveSwift UniqueValues.swift
/host/spi-builder-workspace/Sources/Scheduler.swift:207:21: warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| `- warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | deinit
/host/spi-builder-workspace/Sources/Scheduler.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
7 | //
8 |
9 | import Dispatch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
10 | import Foundation
11 |
:
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| |- note: annotate 'dispatchSpecificKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
/host/spi-builder-workspace/Sources/Scheduler.swift:209:21: warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
| |- warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__once' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__once' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
210 | DispatchQueue.main.setSpecific(key: UIScheduler.dispatchSpecificKey,
211 | value: dispatchSpecificValue)
/host/spi-builder-workspace/Sources/Scheduler.swift:329:20: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 | /// A scheduler backed by a serial GCD queue.
322 | public final class QueueScheduler: DateScheduler {
| `- note: class 'QueueScheduler' does not conform to the 'Sendable' protocol
323 | /// A singleton `QueueScheduler` that always targets the main thread's GCD
324 | /// queue.
:
327 | /// future date, and will always schedule asynchronously (even if
328 | /// already running on the main thread).
329 | public static let main = QueueScheduler(internalQueue: DispatchQueue.main)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 |
331 | public var currentDate: Date {
/host/spi-builder-workspace/Sources/Scheduler.swift:174:5: warning: capture of 'disposable' with non-sendable type '(any Disposable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
172 | }
173 | continuation.onTermination = { _ in
174 | 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
175 | }
176 | // NB: This explicit cast is needed to work around a compiler bug in Swift 5.5.2
/host/spi-builder-workspace/Sources/Disposable.swift:11:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
9 | /// Represents something that can be “disposed”, usually associated with freeing
10 | /// resources or canceling work.
11 | public protocol Disposable: AnyObject {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
12 | /// Whether this disposable has been disposed already.
13 | var isDisposed: Bool { get }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| `- warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
267 | action()
268 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: capture of 'action' 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'
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:389:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
387 |
388 | queue.async {
389 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
390 | action()
391 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:390:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
388 | queue.async {
389 | if !d.isDisposed {
390 | action()
| |- warning: capture of 'action' 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'
391 | }
392 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:419:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
420 | action()
421 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:420:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
420 | action()
| |- warning: capture of 'action' 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'
421 | }
422 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'action' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| |- warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'disposable' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
267 | action()
268 | }
269 |
270 | return disposable
| `- note: access can happen concurrently
271 | }
272 | }
[32/54] Compiling ReactiveSwift Optional.swift
/host/spi-builder-workspace/Sources/Scheduler.swift:207:21: warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| `- warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | deinit
/host/spi-builder-workspace/Sources/Scheduler.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
7 | //
8 |
9 | import Dispatch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
10 | import Foundation
11 |
:
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| |- note: annotate 'dispatchSpecificKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
/host/spi-builder-workspace/Sources/Scheduler.swift:209:21: warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
| |- warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__once' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__once' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
210 | DispatchQueue.main.setSpecific(key: UIScheduler.dispatchSpecificKey,
211 | value: dispatchSpecificValue)
/host/spi-builder-workspace/Sources/Scheduler.swift:329:20: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 | /// A scheduler backed by a serial GCD queue.
322 | public final class QueueScheduler: DateScheduler {
| `- note: class 'QueueScheduler' does not conform to the 'Sendable' protocol
323 | /// A singleton `QueueScheduler` that always targets the main thread's GCD
324 | /// queue.
:
327 | /// future date, and will always schedule asynchronously (even if
328 | /// already running on the main thread).
329 | public static let main = QueueScheduler(internalQueue: DispatchQueue.main)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 |
331 | public var currentDate: Date {
/host/spi-builder-workspace/Sources/Scheduler.swift:174:5: warning: capture of 'disposable' with non-sendable type '(any Disposable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
172 | }
173 | continuation.onTermination = { _ in
174 | 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
175 | }
176 | // NB: This explicit cast is needed to work around a compiler bug in Swift 5.5.2
/host/spi-builder-workspace/Sources/Disposable.swift:11:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
9 | /// Represents something that can be “disposed”, usually associated with freeing
10 | /// resources or canceling work.
11 | public protocol Disposable: AnyObject {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
12 | /// Whether this disposable has been disposed already.
13 | var isDisposed: Bool { get }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| `- warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
267 | action()
268 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: capture of 'action' 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'
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:389:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
387 |
388 | queue.async {
389 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
390 | action()
391 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:390:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
388 | queue.async {
389 | if !d.isDisposed {
390 | action()
| |- warning: capture of 'action' 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'
391 | }
392 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:419:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
420 | action()
421 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:420:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
420 | action()
| |- warning: capture of 'action' 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'
421 | }
422 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'action' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| |- warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'disposable' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
267 | action()
268 | }
269 |
270 | return disposable
| `- note: access can happen concurrently
271 | }
272 | }
[33/54] Compiling ReactiveSwift Property.swift
/host/spi-builder-workspace/Sources/Scheduler.swift:207:21: warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| `- warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | deinit
/host/spi-builder-workspace/Sources/Scheduler.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
7 | //
8 |
9 | import Dispatch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
10 | import Foundation
11 |
:
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| |- note: annotate 'dispatchSpecificKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
/host/spi-builder-workspace/Sources/Scheduler.swift:209:21: warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
| |- warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__once' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__once' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
210 | DispatchQueue.main.setSpecific(key: UIScheduler.dispatchSpecificKey,
211 | value: dispatchSpecificValue)
/host/spi-builder-workspace/Sources/Scheduler.swift:329:20: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 | /// A scheduler backed by a serial GCD queue.
322 | public final class QueueScheduler: DateScheduler {
| `- note: class 'QueueScheduler' does not conform to the 'Sendable' protocol
323 | /// A singleton `QueueScheduler` that always targets the main thread's GCD
324 | /// queue.
:
327 | /// future date, and will always schedule asynchronously (even if
328 | /// already running on the main thread).
329 | public static let main = QueueScheduler(internalQueue: DispatchQueue.main)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 |
331 | public var currentDate: Date {
/host/spi-builder-workspace/Sources/Scheduler.swift:174:5: warning: capture of 'disposable' with non-sendable type '(any Disposable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
172 | }
173 | continuation.onTermination = { _ in
174 | 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
175 | }
176 | // NB: This explicit cast is needed to work around a compiler bug in Swift 5.5.2
/host/spi-builder-workspace/Sources/Disposable.swift:11:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
9 | /// Represents something that can be “disposed”, usually associated with freeing
10 | /// resources or canceling work.
11 | public protocol Disposable: AnyObject {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
12 | /// Whether this disposable has been disposed already.
13 | var isDisposed: Bool { get }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| `- warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
267 | action()
268 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: capture of 'action' 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'
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:389:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
387 |
388 | queue.async {
389 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
390 | action()
391 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:390:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
388 | queue.async {
389 | if !d.isDisposed {
390 | action()
| |- warning: capture of 'action' 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'
391 | }
392 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:419:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
420 | action()
421 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:420:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
420 | action()
| |- warning: capture of 'action' 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'
421 | }
422 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'action' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| |- warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'disposable' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
267 | action()
268 | }
269 |
270 | return disposable
| `- note: access can happen concurrently
271 | }
272 | }
[34/54] Compiling ReactiveSwift Reactive.swift
/host/spi-builder-workspace/Sources/Scheduler.swift:207:21: warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| `- warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | deinit
/host/spi-builder-workspace/Sources/Scheduler.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
7 | //
8 |
9 | import Dispatch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
10 | import Foundation
11 |
:
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| |- note: annotate 'dispatchSpecificKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
/host/spi-builder-workspace/Sources/Scheduler.swift:209:21: warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
| |- warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__once' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__once' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
210 | DispatchQueue.main.setSpecific(key: UIScheduler.dispatchSpecificKey,
211 | value: dispatchSpecificValue)
/host/spi-builder-workspace/Sources/Scheduler.swift:329:20: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 | /// A scheduler backed by a serial GCD queue.
322 | public final class QueueScheduler: DateScheduler {
| `- note: class 'QueueScheduler' does not conform to the 'Sendable' protocol
323 | /// A singleton `QueueScheduler` that always targets the main thread's GCD
324 | /// queue.
:
327 | /// future date, and will always schedule asynchronously (even if
328 | /// already running on the main thread).
329 | public static let main = QueueScheduler(internalQueue: DispatchQueue.main)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 |
331 | public var currentDate: Date {
/host/spi-builder-workspace/Sources/Scheduler.swift:174:5: warning: capture of 'disposable' with non-sendable type '(any Disposable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
172 | }
173 | continuation.onTermination = { _ in
174 | 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
175 | }
176 | // NB: This explicit cast is needed to work around a compiler bug in Swift 5.5.2
/host/spi-builder-workspace/Sources/Disposable.swift:11:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
9 | /// Represents something that can be “disposed”, usually associated with freeing
10 | /// resources or canceling work.
11 | public protocol Disposable: AnyObject {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
12 | /// Whether this disposable has been disposed already.
13 | var isDisposed: Bool { get }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| `- warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
267 | action()
268 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: capture of 'action' 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'
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:389:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
387 |
388 | queue.async {
389 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
390 | action()
391 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:390:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
388 | queue.async {
389 | if !d.isDisposed {
390 | action()
| |- warning: capture of 'action' 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'
391 | }
392 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:419:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
420 | action()
421 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:420:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
420 | action()
| |- warning: capture of 'action' 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'
421 | }
422 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'action' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| |- warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'disposable' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
267 | action()
268 | }
269 |
270 | return disposable
| `- note: access can happen concurrently
271 | }
272 | }
[35/54] Compiling ReactiveSwift ResultExtensions.swift
/host/spi-builder-workspace/Sources/Scheduler.swift:207:21: warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| `- warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | deinit
/host/spi-builder-workspace/Sources/Scheduler.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
7 | //
8 |
9 | import Dispatch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
10 | import Foundation
11 |
:
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| |- note: annotate 'dispatchSpecificKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
/host/spi-builder-workspace/Sources/Scheduler.swift:209:21: warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
| |- warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__once' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__once' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
210 | DispatchQueue.main.setSpecific(key: UIScheduler.dispatchSpecificKey,
211 | value: dispatchSpecificValue)
/host/spi-builder-workspace/Sources/Scheduler.swift:329:20: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 | /// A scheduler backed by a serial GCD queue.
322 | public final class QueueScheduler: DateScheduler {
| `- note: class 'QueueScheduler' does not conform to the 'Sendable' protocol
323 | /// A singleton `QueueScheduler` that always targets the main thread's GCD
324 | /// queue.
:
327 | /// future date, and will always schedule asynchronously (even if
328 | /// already running on the main thread).
329 | public static let main = QueueScheduler(internalQueue: DispatchQueue.main)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 |
331 | public var currentDate: Date {
/host/spi-builder-workspace/Sources/Scheduler.swift:174:5: warning: capture of 'disposable' with non-sendable type '(any Disposable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
172 | }
173 | continuation.onTermination = { _ in
174 | 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
175 | }
176 | // NB: This explicit cast is needed to work around a compiler bug in Swift 5.5.2
/host/spi-builder-workspace/Sources/Disposable.swift:11:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
9 | /// Represents something that can be “disposed”, usually associated with freeing
10 | /// resources or canceling work.
11 | public protocol Disposable: AnyObject {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
12 | /// Whether this disposable has been disposed already.
13 | var isDisposed: Bool { get }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| `- warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
267 | action()
268 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: capture of 'action' 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'
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:389:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
387 |
388 | queue.async {
389 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
390 | action()
391 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:390:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
388 | queue.async {
389 | if !d.isDisposed {
390 | action()
| |- warning: capture of 'action' 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'
391 | }
392 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:419:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
420 | action()
421 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:420:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
420 | action()
| |- warning: capture of 'action' 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'
421 | }
422 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'action' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| |- warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'disposable' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
267 | action()
268 | }
269 |
270 | return disposable
| `- note: access can happen concurrently
271 | }
272 | }
[36/54] Compiling ReactiveSwift Scheduler.swift
/host/spi-builder-workspace/Sources/Scheduler.swift:207:21: warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| `- warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | deinit
/host/spi-builder-workspace/Sources/Scheduler.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
7 | //
8 |
9 | import Dispatch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
10 | import Foundation
11 |
:
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| |- note: annotate 'dispatchSpecificKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
/host/spi-builder-workspace/Sources/Scheduler.swift:209:21: warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
209 | private static var __once: () = {
| |- warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__once' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__once' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
210 | DispatchQueue.main.setSpecific(key: UIScheduler.dispatchSpecificKey,
211 | value: dispatchSpecificValue)
/host/spi-builder-workspace/Sources/Scheduler.swift:329:20: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 | /// A scheduler backed by a serial GCD queue.
322 | public final class QueueScheduler: DateScheduler {
| `- note: class 'QueueScheduler' does not conform to the 'Sendable' protocol
323 | /// A singleton `QueueScheduler` that always targets the main thread's GCD
324 | /// queue.
:
327 | /// future date, and will always schedule asynchronously (even if
328 | /// already running on the main thread).
329 | public static let main = QueueScheduler(internalQueue: DispatchQueue.main)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 |
331 | public var currentDate: Date {
/host/spi-builder-workspace/Sources/Scheduler.swift:174:5: warning: capture of 'disposable' with non-sendable type '(any Disposable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
172 | }
173 | continuation.onTermination = { _ in
174 | 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
175 | }
176 | // NB: This explicit cast is needed to work around a compiler bug in Swift 5.5.2
/host/spi-builder-workspace/Sources/Disposable.swift:11:17: note: protocol 'Disposable' does not conform to the 'Sendable' protocol
9 | /// Represents something that can be “disposed”, usually associated with freeing
10 | /// resources or canceling work.
11 | public protocol Disposable: AnyObject {
| `- note: protocol 'Disposable' does not conform to the 'Sendable' protocol
12 | /// Whether this disposable has been disposed already.
13 | var isDisposed: Bool { get }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| `- warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
267 | action()
268 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: capture of 'action' 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'
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
204 | /// scheduled, it may be run synchronously. However, ordering between actions
205 | /// will always be preserved.
206 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
207 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
208 | private static let dispatchSpecificValue = UInt8.max
:
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:389:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
387 |
388 | queue.async {
389 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
390 | action()
391 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:390:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
388 | queue.async {
389 | if !d.isDisposed {
390 | action()
| |- warning: capture of 'action' 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'
391 | }
392 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:419:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
420 | action()
421 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:420:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
418 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
419 | if !d.isDisposed {
420 | action()
| |- warning: capture of 'action' 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'
421 | }
422 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:265:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
263 |
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
266 | guard !disposable.isDisposed else { return }
267 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:267:5: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
267 | action()
| |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'action' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
268 | }
269 |
/host/spi-builder-workspace/Sources/Scheduler.swift:266:12: warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
264 | DispatchQueue.main.async {
265 | defer { self.dequeue() }
266 | guard !disposable.isDisposed else { return }
| |- warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'disposable' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
267 | action()
268 | }
269 |
270 | return disposable
| `- note: access can happen concurrently
271 | }
272 | }
[37/54] Compiling ReactiveSwift Map.swift
[38/54] Compiling ReactiveSwift MapError.swift
[39/54] Compiling ReactiveSwift Materialize.swift
[40/54] Compiling ReactiveSwift MaterializeAsResult.swift
[41/54] Compiling ReactiveSwift ObserveOn.swift
[42/54] Compiling ReactiveSwift Observer.swift
[43/54] Compiling ReactiveSwift TakeFirst.swift
[44/54] Compiling ReactiveSwift TakeLast.swift
[45/54] Compiling ReactiveSwift TakeUntil.swift
[46/54] Compiling ReactiveSwift TakeWhile.swift
[47/54] Compiling ReactiveSwift Throttle.swift
[48/54] Compiling ReactiveSwift UnaryAsyncOperator.swift
[49/54] Compiling ReactiveSwift Signal.Observer.swift
/host/spi-builder-workspace/Sources/SignalProducer.swift:2946:6: warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2942 | /// attachment to a `ReplayState`, and the observer should replay the supplied
2943 | /// values before attempting to observe again.
2944 | private struct ReplayError<Value>: Error {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
2945 | /// The values that should be replayed by the observer.
2946 | let values: [Value]
| `- warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2947 | }
2948 |
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[50/54] Compiling ReactiveSwift Signal.swift
/host/spi-builder-workspace/Sources/SignalProducer.swift:2946:6: warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2942 | /// attachment to a `ReplayState`, and the observer should replay the supplied
2943 | /// values before attempting to observe again.
2944 | private struct ReplayError<Value>: Error {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
2945 | /// The values that should be replayed by the observer.
2946 | let values: [Value]
| `- warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2947 | }
2948 |
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[51/54] Compiling ReactiveSwift SignalProducer.swift
/host/spi-builder-workspace/Sources/SignalProducer.swift:2946:6: warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2942 | /// attachment to a `ReplayState`, and the observer should replay the supplied
2943 | /// values before attempting to observe again.
2944 | private struct ReplayError<Value>: Error {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
2945 | /// The values that should be replayed by the observer.
2946 | let values: [Value]
| `- warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2947 | }
2948 |
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[52/54] Compiling ReactiveSwift UnidirectionalBinding.swift
/host/spi-builder-workspace/Sources/SignalProducer.swift:2946:6: warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2942 | /// attachment to a `ReplayState`, and the observer should replay the supplied
2943 | /// values before attempting to observe again.
2944 | private struct ReplayError<Value>: Error {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
2945 | /// The values that should be replayed by the observer.
2946 | let values: [Value]
| `- warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2947 | }
2948 |
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[53/54] Compiling ReactiveSwift UninhabitedTypeGuards.swift
/host/spi-builder-workspace/Sources/SignalProducer.swift:2946:6: warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2942 | /// attachment to a `ReplayState`, and the observer should replay the supplied
2943 | /// values before attempting to observe again.
2944 | private struct ReplayError<Value>: Error {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
2945 | /// The values that should be replayed by the observer.
2946 | let values: [Value]
| `- warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2947 | }
2948 |
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[54/54] Compiling ReactiveSwift ValidatingProperty.swift
/host/spi-builder-workspace/Sources/SignalProducer.swift:2946:6: warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2942 | /// attachment to a `ReplayState`, and the observer should replay the supplied
2943 | /// values before attempting to observe again.
2944 | private struct ReplayError<Value>: Error {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
2945 | /// The values that should be replayed by the observer.
2946 | let values: [Value]
| `- warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2947 | }
2948 |
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | var isDisposed = true
62 | func dispose() {}
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
Build complete! (25.98s)
Build complete.
{
"dependencies" : [
{
"identity" : "quick",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Quick.git"
},
{
"identity" : "nimble",
"requirement" : {
"range" : [
{
"lower_bound" : "9.0.0",
"upper_bound" : "10.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Nimble.git"
}
],
"manifest_display_name" : "ReactiveSwift",
"name" : "ReactiveSwift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "ReactiveSwift",
"targets" : [
"ReactiveSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "ReactiveSwiftTests",
"module_type" : "SwiftTarget",
"name" : "ReactiveSwiftTests",
"path" : "Tests/ReactiveSwiftTests",
"product_dependencies" : [
"Quick",
"Nimble"
],
"sources" : [
"ActionSpec.swift",
"AtomicSpec.swift",
"BagSpec.swift",
"DateSchedulerAsyncTestCase.swift",
"DeprecationSpec.swift",
"DisposableSpec.swift",
"FlattenSpec.swift",
"FoundationExtensionsSpec.swift",
"LifetimeSpec.swift",
"PropertySpec.swift",
"QueueScheduler+Factory.swift",
"ReactiveExtensionsSpec.swift",
"SchedulerSpec.swift",
"SignalLifetimeSpec.swift",
"SignalProducerLiftingSpec.swift",
"SignalProducerNimbleMatchers.swift",
"SignalProducerSpec.swift",
"SignalSpec.swift",
"TestError.swift",
"TestLogger.swift",
"TestSchedulerAsyncTestCase.swift",
"UnidirectionalBindingSpec.swift",
"ValidatingPropertySpec.swift"
],
"target_dependencies" : [
"ReactiveSwift"
],
"type" : "test"
},
{
"c99name" : "ReactiveSwift",
"module_type" : "SwiftTarget",
"name" : "ReactiveSwift",
"path" : "Sources",
"product_memberships" : [
"ReactiveSwift"
],
"sources" : [
"Action.swift",
"Atomic.swift",
"Bag.swift",
"Deprecations+Removals.swift",
"Disposable.swift",
"Event.swift",
"EventLogger.swift",
"Flatten.swift",
"FoundationExtensions.swift",
"Lifetime.swift",
"Observers/AttemptMap.swift",
"Observers/Collect.swift",
"Observers/CollectEvery.swift",
"Observers/CombinePrevious.swift",
"Observers/CompactMap.swift",
"Observers/Debounce.swift",
"Observers/Delay.swift",
"Observers/Dematerialize.swift",
"Observers/DematerializeResults.swift",
"Observers/Filter.swift",
"Observers/LazyMap.swift",
"Observers/Map.swift",
"Observers/MapError.swift",
"Observers/Materialize.swift",
"Observers/MaterializeAsResult.swift",
"Observers/ObserveOn.swift",
"Observers/Observer.swift",
"Observers/Operators.swift",
"Observers/Reduce.swift",
"Observers/ScanMap.swift",
"Observers/SkipFirst.swift",
"Observers/SkipRepeats.swift",
"Observers/SkipWhile.swift",
"Observers/TakeFirst.swift",
"Observers/TakeLast.swift",
"Observers/TakeUntil.swift",
"Observers/TakeWhile.swift",
"Observers/Throttle.swift",
"Observers/UnaryAsyncOperator.swift",
"Observers/UniqueValues.swift",
"Optional.swift",
"Property.swift",
"Reactive.swift",
"ResultExtensions.swift",
"Scheduler.swift",
"Signal.Observer.swift",
"Signal.swift",
"SignalProducer.swift",
"UnidirectionalBinding.swift",
"UninhabitedTypeGuards.swift",
"ValidatingProperty.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.