Build Information
Successful build of Emitter, reference main (5480d5
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 15:42:58 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/GoodHatsLLC/Emitter.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/GoodHatsLLC/Emitter
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5480d5b fix swift 5.9 and documentation build warnings
Cloned https://github.com/GoodHatsLLC/Emitter.git
Revision (git rev-parse @):
5480d5b6f1ad63371e91a39f499e5795dc6b6615
SUCCESS checkout https://github.com/GoodHatsLLC/Emitter.git at main
Fetching https://github.com/GoodHatsLLC/Disposable.git
[1/274] Fetching disposable
Fetched https://github.com/GoodHatsLLC/Disposable.git from cache (0.68s)
Computing version for https://github.com/GoodHatsLLC/Disposable.git
Computed https://github.com/GoodHatsLLC/Disposable.git at 1.0.0 (1.18s)
Creating working copy for https://github.com/GoodHatsLLC/Disposable.git
Working copy of https://github.com/GoodHatsLLC/Disposable.git resolved at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "emitter",
"name": "Emitter",
"url": "https://github.com/GoodHatsLLC/Emitter.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Emitter",
"dependencies": [
{
"identity": "disposable",
"name": "Disposable",
"url": "https://github.com/GoodHatsLLC/Disposable.git",
"version": "1.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Disposable",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/GoodHatsLLC/Emitter.git
[1/926] Fetching emitter
Fetched https://github.com/GoodHatsLLC/Emitter.git from cache (0.85s)
Fetching https://github.com/GoodHatsLLC/Disposable.git from cache
Fetched https://github.com/GoodHatsLLC/Disposable.git from cache (0.42s)
Computing version for https://github.com/GoodHatsLLC/Disposable.git
Computed https://github.com/GoodHatsLLC/Disposable.git at 1.0.0 (0.47s)
Creating working copy for https://github.com/GoodHatsLLC/Disposable.git
Working copy of https://github.com/GoodHatsLLC/Disposable.git resolved at 1.0.0
Creating working copy for https://github.com/GoodHatsLLC/Emitter.git
Working copy of https://github.com/GoodHatsLLC/Emitter.git resolved at main (5480d5b)
warning: '.resolve-product-dependencies': dependency 'emitter' is not used by any target
Found 1 product dependencies
- Disposable
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/GoodHatsLLC/Emitter.git
https://github.com/GoodHatsLLC/Emitter.git
{
"dependencies" : [
{
"identity" : "disposable",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "1.1.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/GoodHatsLLC/Disposable.git"
}
],
"manifest_display_name" : "Emitter",
"name" : "Emitter",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.3"
},
{
"name" : "ios",
"version" : "15.4"
},
{
"name" : "tvos",
"version" : "15.4"
},
{
"name" : "watchos",
"version" : "8.5"
},
{
"name" : "maccatalyst",
"version" : "15.4"
}
],
"products" : [
{
"name" : "Emitter",
"targets" : [
"Emitter"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EmitterTests",
"module_type" : "SwiftTarget",
"name" : "EmitterTests",
"path" : "Tests/EmitterTests",
"product_dependencies" : [
"Disposable"
],
"sources" : [
"Benchmarks/Benchmarks.swift",
"Benchmarks/Blackhole.swift",
"BridgingTests/AsyncToEmitterTests.swift",
"BridgingTests/CombineToEmitterTests.swift",
"BridgingTests/EmitterToAsyncTests.swift",
"BridgingTests/EmitterToCombineTests.swift",
"LifecycleTests/FinishTests.swift",
"OperatorTests/CombineLatestThreeTests.swift",
"OperatorTests/CombineLatestTwoTests.swift",
"OperatorTests/CompactMapTests.swift",
"OperatorTests/DedupingTests.swift",
"OperatorTests/FilterTests.swift",
"OperatorTests/FirstTests.swift",
"OperatorTests/FlatMapLatestTests.swift",
"OperatorTests/MapFailureTests.swift",
"OperatorTests/MapTests.swift",
"OperatorTests/Merge2Tests.swift",
"OperatorTests/Merge3Tests.swift",
"OperatorTests/ReplacingFailuresTests.swift",
"OperatorTests/SharedTests.swift",
"OperatorTests/TryMapTests.swift",
"OperatorTests/UnionThreeTests.swift",
"OperatorTests/UnionTwoTests.swift",
"OperatorTests/WithFailureTypeTests.swift",
"OperatorTests/WithPrefixTests.swift",
"OperatorTests/WithSuffixTests.swift",
"SourceTests/CreateTests.swift",
"SourceTests/PublishSubjectTests.swift",
"SourceTests/ValueSubjectTests.swift",
"StressTests/ThreadingTests.swift",
"SubscriberTests/FirstValueTests.swift",
"Utils/AsyncValue.swift",
"Utils/Flush.swift",
"Utils/Unchecked.swift"
],
"target_dependencies" : [
"Emitter"
],
"type" : "test"
},
{
"c99name" : "Emitter",
"module_type" : "SwiftTarget",
"name" : "Emitter",
"path" : "Sources/Emitter",
"product_dependencies" : [
"Disposable"
],
"product_memberships" : [
"Emitter"
],
"sources" : [
"Bridging/AsyncToEmitterBridge.swift",
"Bridging/CombineToEmitterBridge.swift",
"Bridging/EmitterToAsyncBridge.swift",
"Bridging/EmitterToCombineBridge.swift",
"Bridging/SequenceToEmitterBridge.swift",
"Erasure/AnyEmitter.swift",
"Export.swift",
"Interface/Emission.swift",
"Interface/Emitter.swift",
"Interface/Subject.swift",
"Interface/Subscriber.swift",
"Interface/Tuple.swift",
"Interface/Union.swift",
"Operators/CombineLatestThree.swift",
"Operators/CombineLatestTwo.swift",
"Operators/CompactMap.swift",
"Operators/Dedupe.swift",
"Operators/Filter.swift",
"Operators/First.swift",
"Operators/FlatMapLatest.swift",
"Operators/Map.swift",
"Operators/MapFailure.swift",
"Operators/MergeThree.swift",
"Operators/MergeTwo.swift",
"Operators/Print.swift",
"Operators/Redirect.swift",
"Operators/ReplaceFailures.swift",
"Operators/Shared.swift",
"Operators/TryMap.swift",
"Operators/UnionThree.swift",
"Operators/UnionTwo.swift",
"Operators/WithFailureType.swift",
"Operators/WithPrefix.swift",
"Operators/WithSuffix.swift",
"Sources/Create.swift",
"Sources/FailureEmitter.swift",
"Sources/JustEmitter.swift",
"Sources/NeverEmitter.swift",
"Sources/PublishSubject.swift",
"Sources/ValueSubject.swift",
"Subscribers/EmissionDataProxy.swift",
"Subscribers/FirstValue.swift",
"Subscribers/Subscribe.swift",
"Subscribers/SubscribeMain.swift",
"Subscribers/Subscription.swift",
"Subscribers/TransformProxy.swift",
"Utilities/AsyncValue.swift",
"Utilities/Locked.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/13] Compiling Disposable DisposableBuilder.swift
[5/14] Compiling Disposable Task.swift
[6/14] Compiling Disposable AutoDisposable.swift
[7/14] Compiling Disposable ErasedDisposable.swift
[8/14] Compiling Disposable Disposable.swift
[9/14] Compiling Disposable ConvenienceStages.swift
[10/14] Compiling Disposable CombineExtensions.swift
[11/14] Compiling Disposable TaskExtensions.swift
[12/14] Compiling Disposable DisposableStage.swift
[13/14] Compiling Disposable Locked.swift
[14/14] Emitting module Disposable
[15/59] Emitting module Emitter
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/AsyncToEmitterBridge.swift:4:34: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
2 | extension Emitters {
3 | public static func bridge<Seq: AsyncSequence>(_ sequence: Seq)
4 | -> some Emitter<Seq.Element, Error>
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
5 | {
6 | AsyncToEmitterBridge(sequence)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestThree.swift:25:67: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
23 | _ otherB: UpstreamB,
24 | _ otherC: UpstreamC
25 | ) -> some Emitter<(Output, UpstreamB.Output, UpstreamC.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
26 | Emitters
27 | .CombineLatestThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestTwo.swift:20:49: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
18 | public func combineLatest<UpstreamB: Emitter>(
19 | _ otherB: UpstreamB
20 | ) -> some Emitter<(Output, UpstreamB.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
21 | Emitters
22 | .CombineLatestTwo(upstreamA: self, upstreamB: otherB)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:19:24: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
17 | public func compactMap<T>(
18 | _ transformer: @escaping @Sendable (Output) throws -> T?
19 | ) -> some Emitter<T, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
20 | map(transformer)
21 | .compact()
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/Shared.swift:194:17: warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
54 | // MARK: Private
55 |
56 | private struct SharedSub<Input, Failure: Error>: Subscriber {
| `- note: consider making generic struct 'SharedSub' conform to the 'Sendable' protocol
57 |
58 | // MARK: Lifecycle
:
192 | }
193 |
194 | private let sharedSub = Locked<SharedSub<Output, Failure>?>(nil)
| `- warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
195 |
196 | private let upstream: Upstream
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/TryMap.swift:6:40: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
4 | public func map<TransformedOutput>(
5 | _ transformer: @escaping @Sendable (Output) throws -> TransformedOutput
6 | ) -> some Emitter<TransformedOutput, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
7 | Emitters.TryMap(upstream: self, transformer: transformer)
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionThree.swift:18:73: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
16 | _ otherB: UpstreamB,
17 | _ otherC: UpstreamC
18 | ) -> some Emitter<Union3<Output, UpstreamB.Output, UpstreamC.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
19 | Emitters
20 | .UnionThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionTwo.swift:12:55: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
10 | public func union<UpstreamB: Emitter>(
11 | _ otherB: UpstreamB
12 | ) -> some Emitter<Union2<Output, UpstreamB.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
13 | Emitters
14 | .UnionTwo(upstreamA: self, upstreamB: otherB)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:22: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:49: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:49: warning: non-sendable result type 'AsyncValue<Upstream.Output?>' cannot be sent from actor-isolated context in call to initializer 'init()'; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: non-sendable result type 'AsyncValue<Upstream.Output?>' cannot be sent from actor-isolated context in call to initializer 'init()'; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
[16/63] Compiling Emitter AnyEmitter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Erasure/AnyEmitter.swift:8:28: warning: capture of 'emitter' with non-sendable type 'some Emitter<Output, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
5 | public struct AnyEmitter<Output, Failure: Error>: Emitter {
6 |
7 | fileprivate init(_ emitter: some Emitter<Output, Failure>) {
| `- note: consider making generic parameter 'some Emitter<Output, Failure>' conform to the 'Sendable' protocol
8 | self.subscribeFunc = { emitter.subscribe($0) }
| `- warning: capture of 'emitter' with non-sendable type 'some Emitter<Output, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | }
10 |
[17/63] Compiling Emitter Export.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Erasure/AnyEmitter.swift:8:28: warning: capture of 'emitter' with non-sendable type 'some Emitter<Output, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
5 | public struct AnyEmitter<Output, Failure: Error>: Emitter {
6 |
7 | fileprivate init(_ emitter: some Emitter<Output, Failure>) {
| `- note: consider making generic parameter 'some Emitter<Output, Failure>' conform to the 'Sendable' protocol
8 | self.subscribeFunc = { emitter.subscribe($0) }
| `- warning: capture of 'emitter' with non-sendable type 'some Emitter<Output, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | }
10 |
[18/63] Compiling Emitter Emission.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Erasure/AnyEmitter.swift:8:28: warning: capture of 'emitter' with non-sendable type 'some Emitter<Output, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
5 | public struct AnyEmitter<Output, Failure: Error>: Emitter {
6 |
7 | fileprivate init(_ emitter: some Emitter<Output, Failure>) {
| `- note: consider making generic parameter 'some Emitter<Output, Failure>' conform to the 'Sendable' protocol
8 | self.subscribeFunc = { emitter.subscribe($0) }
| `- warning: capture of 'emitter' with non-sendable type 'some Emitter<Output, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | }
10 |
[19/63] Compiling Emitter Emitter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Erasure/AnyEmitter.swift:8:28: warning: capture of 'emitter' with non-sendable type 'some Emitter<Output, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
5 | public struct AnyEmitter<Output, Failure: Error>: Emitter {
6 |
7 | fileprivate init(_ emitter: some Emitter<Output, Failure>) {
| `- note: consider making generic parameter 'some Emitter<Output, Failure>' conform to the 'Sendable' protocol
8 | self.subscribeFunc = { emitter.subscribe($0) }
| `- warning: capture of 'emitter' with non-sendable type 'some Emitter<Output, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | }
10 |
[20/63] Compiling Emitter Subject.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Erasure/AnyEmitter.swift:8:28: warning: capture of 'emitter' with non-sendable type 'some Emitter<Output, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
5 | public struct AnyEmitter<Output, Failure: Error>: Emitter {
6 |
7 | fileprivate init(_ emitter: some Emitter<Output, Failure>) {
| `- note: consider making generic parameter 'some Emitter<Output, Failure>' conform to the 'Sendable' protocol
8 | self.subscribeFunc = { emitter.subscribe($0) }
| `- warning: capture of 'emitter' with non-sendable type 'some Emitter<Output, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | }
10 |
[21/63] Compiling Emitter AsyncToEmitterBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/AsyncToEmitterBridge.swift:4:34: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
2 | extension Emitters {
3 | public static func bridge<Seq: AsyncSequence>(_ sequence: Seq)
4 | -> some Emitter<Seq.Element, Error>
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
5 | {
6 | AsyncToEmitterBridge(sequence)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/SequenceToEmitterBridge.swift:4:16: warning: capture of 'sequence' with non-sendable type 'Seq' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1 | extension Emitters {
2 | public static func bridge<Seq: Sequence>(_ sequence: Seq) -> some Emitter<Seq.Element, Never> {
| `- note: consider making generic parameter 'Seq' conform to the 'Sendable' protocol
3 | Emitters.create(Emission<Seq.Element, Never>.self) { emit in
4 | for i in sequence {
| `- warning: capture of 'sequence' with non-sendable type 'Seq' in a '@Sendable' closure; this is an error in the Swift 6 language mode
5 | emit(.value(i))
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/EmitterToAsyncBridge.swift:20:24: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
18 | let disposable = emitter.subscribe(
19 | value: { value in
20 | continuation.yield(value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
21 | },
22 | finished: {
[22/63] Compiling Emitter CombineToEmitterBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/AsyncToEmitterBridge.swift:4:34: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
2 | extension Emitters {
3 | public static func bridge<Seq: AsyncSequence>(_ sequence: Seq)
4 | -> some Emitter<Seq.Element, Error>
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
5 | {
6 | AsyncToEmitterBridge(sequence)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/SequenceToEmitterBridge.swift:4:16: warning: capture of 'sequence' with non-sendable type 'Seq' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1 | extension Emitters {
2 | public static func bridge<Seq: Sequence>(_ sequence: Seq) -> some Emitter<Seq.Element, Never> {
| `- note: consider making generic parameter 'Seq' conform to the 'Sendable' protocol
3 | Emitters.create(Emission<Seq.Element, Never>.self) { emit in
4 | for i in sequence {
| `- warning: capture of 'sequence' with non-sendable type 'Seq' in a '@Sendable' closure; this is an error in the Swift 6 language mode
5 | emit(.value(i))
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/EmitterToAsyncBridge.swift:20:24: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
18 | let disposable = emitter.subscribe(
19 | value: { value in
20 | continuation.yield(value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
21 | },
22 | finished: {
[23/63] Compiling Emitter EmitterToAsyncBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/AsyncToEmitterBridge.swift:4:34: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
2 | extension Emitters {
3 | public static func bridge<Seq: AsyncSequence>(_ sequence: Seq)
4 | -> some Emitter<Seq.Element, Error>
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
5 | {
6 | AsyncToEmitterBridge(sequence)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/SequenceToEmitterBridge.swift:4:16: warning: capture of 'sequence' with non-sendable type 'Seq' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1 | extension Emitters {
2 | public static func bridge<Seq: Sequence>(_ sequence: Seq) -> some Emitter<Seq.Element, Never> {
| `- note: consider making generic parameter 'Seq' conform to the 'Sendable' protocol
3 | Emitters.create(Emission<Seq.Element, Never>.self) { emit in
4 | for i in sequence {
| `- warning: capture of 'sequence' with non-sendable type 'Seq' in a '@Sendable' closure; this is an error in the Swift 6 language mode
5 | emit(.value(i))
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/EmitterToAsyncBridge.swift:20:24: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
18 | let disposable = emitter.subscribe(
19 | value: { value in
20 | continuation.yield(value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
21 | },
22 | finished: {
[24/63] Compiling Emitter EmitterToCombineBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/AsyncToEmitterBridge.swift:4:34: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
2 | extension Emitters {
3 | public static func bridge<Seq: AsyncSequence>(_ sequence: Seq)
4 | -> some Emitter<Seq.Element, Error>
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
5 | {
6 | AsyncToEmitterBridge(sequence)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/SequenceToEmitterBridge.swift:4:16: warning: capture of 'sequence' with non-sendable type 'Seq' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1 | extension Emitters {
2 | public static func bridge<Seq: Sequence>(_ sequence: Seq) -> some Emitter<Seq.Element, Never> {
| `- note: consider making generic parameter 'Seq' conform to the 'Sendable' protocol
3 | Emitters.create(Emission<Seq.Element, Never>.self) { emit in
4 | for i in sequence {
| `- warning: capture of 'sequence' with non-sendable type 'Seq' in a '@Sendable' closure; this is an error in the Swift 6 language mode
5 | emit(.value(i))
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/EmitterToAsyncBridge.swift:20:24: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
18 | let disposable = emitter.subscribe(
19 | value: { value in
20 | continuation.yield(value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
21 | },
22 | finished: {
[25/63] Compiling Emitter SequenceToEmitterBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/AsyncToEmitterBridge.swift:4:34: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
2 | extension Emitters {
3 | public static func bridge<Seq: AsyncSequence>(_ sequence: Seq)
4 | -> some Emitter<Seq.Element, Error>
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
5 | {
6 | AsyncToEmitterBridge(sequence)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/SequenceToEmitterBridge.swift:4:16: warning: capture of 'sequence' with non-sendable type 'Seq' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1 | extension Emitters {
2 | public static func bridge<Seq: Sequence>(_ sequence: Seq) -> some Emitter<Seq.Element, Never> {
| `- note: consider making generic parameter 'Seq' conform to the 'Sendable' protocol
3 | Emitters.create(Emission<Seq.Element, Never>.self) { emit in
4 | for i in sequence {
| `- warning: capture of 'sequence' with non-sendable type 'Seq' in a '@Sendable' closure; this is an error in the Swift 6 language mode
5 | emit(.value(i))
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Bridging/EmitterToAsyncBridge.swift:20:24: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
18 | let disposable = emitter.subscribe(
19 | value: { value in
20 | continuation.yield(value)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
21 | },
22 | finished: {
[26/63] Compiling Emitter Subscriber.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Interface/Subscriber.swift:24:7: warning: capture of 'subscriber' with non-sendable type 'some Subscriber<Input, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | }
21 |
22 | init(_ subscriber: some Subscriber<Input, Failure>) {
| `- note: consider making generic parameter 'some Subscriber<Input, Failure>' conform to the 'Sendable' protocol
23 | self.receiveFunc = {
24 | subscriber.receive(emission: $0)
| `- warning: capture of 'subscriber' with non-sendable type 'some Subscriber<Input, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestThree.swift:25:67: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
23 | _ otherB: UpstreamB,
24 | _ otherC: UpstreamC
25 | ) -> some Emitter<(Output, UpstreamB.Output, UpstreamC.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
26 | Emitters
27 | .CombineLatestThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestTwo.swift:20:49: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
18 | public func combineLatest<UpstreamB: Emitter>(
19 | _ otherB: UpstreamB
20 | ) -> some Emitter<(Output, UpstreamB.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
21 | Emitters
22 | .CombineLatestTwo(upstreamA: self, upstreamB: otherB)
[27/63] Compiling Emitter Tuple.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Interface/Subscriber.swift:24:7: warning: capture of 'subscriber' with non-sendable type 'some Subscriber<Input, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | }
21 |
22 | init(_ subscriber: some Subscriber<Input, Failure>) {
| `- note: consider making generic parameter 'some Subscriber<Input, Failure>' conform to the 'Sendable' protocol
23 | self.receiveFunc = {
24 | subscriber.receive(emission: $0)
| `- warning: capture of 'subscriber' with non-sendable type 'some Subscriber<Input, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestThree.swift:25:67: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
23 | _ otherB: UpstreamB,
24 | _ otherC: UpstreamC
25 | ) -> some Emitter<(Output, UpstreamB.Output, UpstreamC.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
26 | Emitters
27 | .CombineLatestThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestTwo.swift:20:49: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
18 | public func combineLatest<UpstreamB: Emitter>(
19 | _ otherB: UpstreamB
20 | ) -> some Emitter<(Output, UpstreamB.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
21 | Emitters
22 | .CombineLatestTwo(upstreamA: self, upstreamB: otherB)
[28/63] Compiling Emitter Union.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Interface/Subscriber.swift:24:7: warning: capture of 'subscriber' with non-sendable type 'some Subscriber<Input, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | }
21 |
22 | init(_ subscriber: some Subscriber<Input, Failure>) {
| `- note: consider making generic parameter 'some Subscriber<Input, Failure>' conform to the 'Sendable' protocol
23 | self.receiveFunc = {
24 | subscriber.receive(emission: $0)
| `- warning: capture of 'subscriber' with non-sendable type 'some Subscriber<Input, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestThree.swift:25:67: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
23 | _ otherB: UpstreamB,
24 | _ otherC: UpstreamC
25 | ) -> some Emitter<(Output, UpstreamB.Output, UpstreamC.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
26 | Emitters
27 | .CombineLatestThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestTwo.swift:20:49: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
18 | public func combineLatest<UpstreamB: Emitter>(
19 | _ otherB: UpstreamB
20 | ) -> some Emitter<(Output, UpstreamB.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
21 | Emitters
22 | .CombineLatestTwo(upstreamA: self, upstreamB: otherB)
[29/63] Compiling Emitter CombineLatestThree.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Interface/Subscriber.swift:24:7: warning: capture of 'subscriber' with non-sendable type 'some Subscriber<Input, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | }
21 |
22 | init(_ subscriber: some Subscriber<Input, Failure>) {
| `- note: consider making generic parameter 'some Subscriber<Input, Failure>' conform to the 'Sendable' protocol
23 | self.receiveFunc = {
24 | subscriber.receive(emission: $0)
| `- warning: capture of 'subscriber' with non-sendable type 'some Subscriber<Input, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestThree.swift:25:67: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
23 | _ otherB: UpstreamB,
24 | _ otherC: UpstreamC
25 | ) -> some Emitter<(Output, UpstreamB.Output, UpstreamC.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
26 | Emitters
27 | .CombineLatestThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestTwo.swift:20:49: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
18 | public func combineLatest<UpstreamB: Emitter>(
19 | _ otherB: UpstreamB
20 | ) -> some Emitter<(Output, UpstreamB.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
21 | Emitters
22 | .CombineLatestTwo(upstreamA: self, upstreamB: otherB)
[30/63] Compiling Emitter CombineLatestTwo.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Interface/Subscriber.swift:24:7: warning: capture of 'subscriber' with non-sendable type 'some Subscriber<Input, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | }
21 |
22 | init(_ subscriber: some Subscriber<Input, Failure>) {
| `- note: consider making generic parameter 'some Subscriber<Input, Failure>' conform to the 'Sendable' protocol
23 | self.receiveFunc = {
24 | subscriber.receive(emission: $0)
| `- warning: capture of 'subscriber' with non-sendable type 'some Subscriber<Input, Failure>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestThree.swift:25:67: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
23 | _ otherB: UpstreamB,
24 | _ otherC: UpstreamC
25 | ) -> some Emitter<(Output, UpstreamB.Output, UpstreamC.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
26 | Emitters
27 | .CombineLatestThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CombineLatestTwo.swift:20:49: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
18 | public func combineLatest<UpstreamB: Emitter>(
19 | _ otherB: UpstreamB
20 | ) -> some Emitter<(Output, UpstreamB.Output), Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
21 | Emitters
22 | .CombineLatestTwo(upstreamA: self, upstreamB: otherB)
[31/63] Compiling Emitter Subscription.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/Subscription.swift:12:45: warning: capture of 'subscriber' with non-sendable type 'Sub' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: Lifecycle
8 |
9 | init<Sub: Subscriber>(
| `- note: consider making generic parameter 'Sub' conform to the 'Sendable' protocol
10 | subscriber: Sub
11 | ) where Output == Sub.Input, Failure == Sub.Failure {
12 | self.subscriberReceiver = { emission in subscriber.receive(emission: emission) }
| `- warning: capture of 'subscriber' with non-sendable type 'Sub' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 | }
14 |
[32/63] Compiling Emitter TransformProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/Subscription.swift:12:45: warning: capture of 'subscriber' with non-sendable type 'Sub' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: Lifecycle
8 |
9 | init<Sub: Subscriber>(
| `- note: consider making generic parameter 'Sub' conform to the 'Sendable' protocol
10 | subscriber: Sub
11 | ) where Output == Sub.Input, Failure == Sub.Failure {
12 | self.subscriberReceiver = { emission in subscriber.receive(emission: emission) }
| `- warning: capture of 'subscriber' with non-sendable type 'Sub' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 | }
14 |
[33/63] Compiling Emitter AsyncValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/Subscription.swift:12:45: warning: capture of 'subscriber' with non-sendable type 'Sub' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: Lifecycle
8 |
9 | init<Sub: Subscriber>(
| `- note: consider making generic parameter 'Sub' conform to the 'Sendable' protocol
10 | subscriber: Sub
11 | ) where Output == Sub.Input, Failure == Sub.Failure {
12 | self.subscriberReceiver = { emission in subscriber.receive(emission: emission) }
| `- warning: capture of 'subscriber' with non-sendable type 'Sub' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 | }
14 |
[34/63] Compiling Emitter Locked.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/Subscription.swift:12:45: warning: capture of 'subscriber' with non-sendable type 'Sub' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: Lifecycle
8 |
9 | init<Sub: Subscriber>(
| `- note: consider making generic parameter 'Sub' conform to the 'Sendable' protocol
10 | subscriber: Sub
11 | ) where Output == Sub.Input, Failure == Sub.Failure {
12 | self.subscriberReceiver = { emission in subscriber.receive(emission: emission) }
| `- warning: capture of 'subscriber' with non-sendable type 'Sub' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 | }
14 |
[35/63] Compiling Emitter CompactMap.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:19:24: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
17 | public func compactMap<T>(
18 | _ transformer: @escaping @Sendable (Output) throws -> T?
19 | ) -> some Emitter<T, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
20 | map(transformer)
21 | .compact()
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:14:8: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public func compactMap<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | _ transformer: @escaping @Sendable (Output) -> T?
12 | ) -> some Emitter<T, Failure> {
13 | map(transformer)
14 | .compact()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:21:8: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public func compactMap<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | _ transformer: @escaping @Sendable (Output) throws -> T?
19 | ) -> some Emitter<T, Error> {
20 | map(transformer)
21 | .compact()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | }
23 | }
[36/63] Compiling Emitter Dedupe.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:19:24: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
17 | public func compactMap<T>(
18 | _ transformer: @escaping @Sendable (Output) throws -> T?
19 | ) -> some Emitter<T, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
20 | map(transformer)
21 | .compact()
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:14:8: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public func compactMap<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | _ transformer: @escaping @Sendable (Output) -> T?
12 | ) -> some Emitter<T, Failure> {
13 | map(transformer)
14 | .compact()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:21:8: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public func compactMap<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | _ transformer: @escaping @Sendable (Output) throws -> T?
19 | ) -> some Emitter<T, Error> {
20 | map(transformer)
21 | .compact()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | }
23 | }
[37/63] Compiling Emitter Filter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:19:24: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
17 | public func compactMap<T>(
18 | _ transformer: @escaping @Sendable (Output) throws -> T?
19 | ) -> some Emitter<T, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
20 | map(transformer)
21 | .compact()
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:14:8: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public func compactMap<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | _ transformer: @escaping @Sendable (Output) -> T?
12 | ) -> some Emitter<T, Failure> {
13 | map(transformer)
14 | .compact()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:21:8: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public func compactMap<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | _ transformer: @escaping @Sendable (Output) throws -> T?
19 | ) -> some Emitter<T, Error> {
20 | map(transformer)
21 | .compact()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | }
23 | }
[38/63] Compiling Emitter First.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:19:24: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
17 | public func compactMap<T>(
18 | _ transformer: @escaping @Sendable (Output) throws -> T?
19 | ) -> some Emitter<T, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
20 | map(transformer)
21 | .compact()
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:14:8: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public func compactMap<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | _ transformer: @escaping @Sendable (Output) -> T?
12 | ) -> some Emitter<T, Failure> {
13 | map(transformer)
14 | .compact()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:21:8: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public func compactMap<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | _ transformer: @escaping @Sendable (Output) throws -> T?
19 | ) -> some Emitter<T, Error> {
20 | map(transformer)
21 | .compact()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | }
23 | }
[39/63] Compiling Emitter FlatMapLatest.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:19:24: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
17 | public func compactMap<T>(
18 | _ transformer: @escaping @Sendable (Output) throws -> T?
19 | ) -> some Emitter<T, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
20 | map(transformer)
21 | .compact()
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:14:8: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public func compactMap<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | _ transformer: @escaping @Sendable (Output) -> T?
12 | ) -> some Emitter<T, Failure> {
13 | map(transformer)
14 | .compact()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/CompactMap.swift:21:8: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public func compactMap<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | _ transformer: @escaping @Sendable (Output) throws -> T?
19 | ) -> some Emitter<T, Error> {
20 | map(transformer)
21 | .compact()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | }
23 | }
[40/63] Compiling Emitter Map.swift
[41/63] Compiling Emitter MapFailure.swift
[42/63] Compiling Emitter MergeThree.swift
[43/63] Compiling Emitter MergeTwo.swift
[44/63] Compiling Emitter Print.swift
[45/63] Compiling Emitter EmissionDataProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:22: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:49: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:49: warning: non-sendable result type 'AsyncValue<Upstream.Output?>' cannot be sent from actor-isolated context in call to initializer 'init()'; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: non-sendable result type 'AsyncValue<Upstream.Output?>' cannot be sent from actor-isolated context in call to initializer 'init()'; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:35: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:20: warning: non-sendable type 'AsyncValue<Self.Output?>' cannot be sent into actor-isolated context in call to property 'value'; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: non-sendable type 'AsyncValue<Self.Output?>' cannot be sent into actor-isolated context in call to property 'value'; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:35: warning: non-sendable type 'Self.Output?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: non-sendable type 'Self.Output?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:45:30: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | await asyncValue.resolve(to: value)
44 | default:
45 | await asyncValue.resolve(to: nil)
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:40:23: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
38 | }
39 | if wasFirst {
40 | Task.detached {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
41 | switch emission {
| `- note: closure captures non-Sendable 'emission'
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| `- note: closure captures non-Sendable 'self'
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: sending value of non-Sendable type 'Upstream.Output' risks causing data races; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| |- warning: sending value of non-Sendable type 'Upstream.Output' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Upstream.Output' to actor-isolated instance method 'resolve(to:)' risks causing races in between task-isolated and actor-isolated uses
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| |- warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.asyncValue' to actor-isolated instance method 'resolve(to:)' risks causing data races between actor-isolated and task-isolated uses
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:45:30: warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
43 | await asyncValue.resolve(to: value)
44 | default:
45 | await asyncValue.resolve(to: nil)
| |- warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.asyncValue' to actor-isolated instance method 'resolve(to:)' risks causing data races between actor-isolated and task-isolated uses
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/SubscribeMain.swift:39:14: warning: sending 'emission' risks causing data races; this is an error in the Swift 6 language mode
37 | fileprivate func receive(emission: Emission<Output, Failure>) {
38 | Task { @MainActor in
39 | switch emission {
| |- warning: sending 'emission' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'emission' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
40 | case .value(let value):
41 | valueFunc(value)
[46/63] Compiling Emitter FirstValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:22: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:49: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:49: warning: non-sendable result type 'AsyncValue<Upstream.Output?>' cannot be sent from actor-isolated context in call to initializer 'init()'; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: non-sendable result type 'AsyncValue<Upstream.Output?>' cannot be sent from actor-isolated context in call to initializer 'init()'; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:35: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:20: warning: non-sendable type 'AsyncValue<Self.Output?>' cannot be sent into actor-isolated context in call to property 'value'; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: non-sendable type 'AsyncValue<Self.Output?>' cannot be sent into actor-isolated context in call to property 'value'; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:35: warning: non-sendable type 'Self.Output?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: non-sendable type 'Self.Output?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:45:30: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | await asyncValue.resolve(to: value)
44 | default:
45 | await asyncValue.resolve(to: nil)
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:40:23: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
38 | }
39 | if wasFirst {
40 | Task.detached {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
41 | switch emission {
| `- note: closure captures non-Sendable 'emission'
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| `- note: closure captures non-Sendable 'self'
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: sending value of non-Sendable type 'Upstream.Output' risks causing data races; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| |- warning: sending value of non-Sendable type 'Upstream.Output' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Upstream.Output' to actor-isolated instance method 'resolve(to:)' risks causing races in between task-isolated and actor-isolated uses
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| |- warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.asyncValue' to actor-isolated instance method 'resolve(to:)' risks causing data races between actor-isolated and task-isolated uses
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:45:30: warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
43 | await asyncValue.resolve(to: value)
44 | default:
45 | await asyncValue.resolve(to: nil)
| |- warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.asyncValue' to actor-isolated instance method 'resolve(to:)' risks causing data races between actor-isolated and task-isolated uses
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/SubscribeMain.swift:39:14: warning: sending 'emission' risks causing data races; this is an error in the Swift 6 language mode
37 | fileprivate func receive(emission: Emission<Output, Failure>) {
38 | Task { @MainActor in
39 | switch emission {
| |- warning: sending 'emission' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'emission' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
40 | case .value(let value):
41 | valueFunc(value)
[47/63] Compiling Emitter Subscribe.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:22: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:49: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:49: warning: non-sendable result type 'AsyncValue<Upstream.Output?>' cannot be sent from actor-isolated context in call to initializer 'init()'; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: non-sendable result type 'AsyncValue<Upstream.Output?>' cannot be sent from actor-isolated context in call to initializer 'init()'; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:35: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:20: warning: non-sendable type 'AsyncValue<Self.Output?>' cannot be sent into actor-isolated context in call to property 'value'; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: non-sendable type 'AsyncValue<Self.Output?>' cannot be sent into actor-isolated context in call to property 'value'; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:35: warning: non-sendable type 'Self.Output?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: non-sendable type 'Self.Output?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:45:30: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | await asyncValue.resolve(to: value)
44 | default:
45 | await asyncValue.resolve(to: nil)
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:40:23: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
38 | }
39 | if wasFirst {
40 | Task.detached {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
41 | switch emission {
| `- note: closure captures non-Sendable 'emission'
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| `- note: closure captures non-Sendable 'self'
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: sending value of non-Sendable type 'Upstream.Output' risks causing data races; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| |- warning: sending value of non-Sendable type 'Upstream.Output' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Upstream.Output' to actor-isolated instance method 'resolve(to:)' risks causing races in between task-isolated and actor-isolated uses
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| |- warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.asyncValue' to actor-isolated instance method 'resolve(to:)' risks causing data races between actor-isolated and task-isolated uses
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:45:30: warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
43 | await asyncValue.resolve(to: value)
44 | default:
45 | await asyncValue.resolve(to: nil)
| |- warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.asyncValue' to actor-isolated instance method 'resolve(to:)' risks causing data races between actor-isolated and task-isolated uses
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/SubscribeMain.swift:39:14: warning: sending 'emission' risks causing data races; this is an error in the Swift 6 language mode
37 | fileprivate func receive(emission: Emission<Output, Failure>) {
38 | Task { @MainActor in
39 | switch emission {
| |- warning: sending 'emission' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'emission' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
40 | case .value(let value):
41 | valueFunc(value)
[48/63] Compiling Emitter SubscribeMain.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:22: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:49: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:54:49: warning: non-sendable result type 'AsyncValue<Upstream.Output?>' cannot be sent from actor-isolated context in call to initializer 'init()'; this is an error in the Swift 6 language mode
52 | // MARK: Internal
53 |
54 | let asyncValue = AsyncValue<Upstream.Output?>()
| `- warning: non-sendable result type 'AsyncValue<Upstream.Output?>' cannot be sent from actor-isolated context in call to initializer 'init()'; this is an error in the Swift 6 language mode
55 |
56 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:35: warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: type 'Self.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:20: warning: non-sendable type 'AsyncValue<Self.Output?>' cannot be sent into actor-isolated context in call to property 'value'; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: non-sendable type 'AsyncValue<Self.Output?>' cannot be sent into actor-isolated context in call to property 'value'; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:7:35: warning: non-sendable type 'Self.Output?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
5 | get async {
6 | let sub = Emitters.FirstValue(upstream: self)
7 | return await sub.asyncValue.value
| `- warning: non-sendable type 'Self.Output?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
8 | }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:45:30: warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | await asyncValue.resolve(to: value)
44 | default:
45 | await asyncValue.resolve(to: nil)
| `- warning: type 'Upstream.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:40:23: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
38 | }
39 | if wasFirst {
40 | Task.detached {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
41 | switch emission {
| `- note: closure captures non-Sendable 'emission'
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| `- note: closure captures non-Sendable 'self'
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: sending value of non-Sendable type 'Upstream.Output' risks causing data races; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| |- warning: sending value of non-Sendable type 'Upstream.Output' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Upstream.Output' to actor-isolated instance method 'resolve(to:)' risks causing races in between task-isolated and actor-isolated uses
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:43:30: warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
41 | switch emission {
42 | case .value(let value):
43 | await asyncValue.resolve(to: value)
| |- warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.asyncValue' to actor-isolated instance method 'resolve(to:)' risks causing data races between actor-isolated and task-isolated uses
44 | default:
45 | await asyncValue.resolve(to: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/FirstValue.swift:45:30: warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
43 | await asyncValue.resolve(to: value)
44 | default:
45 | await asyncValue.resolve(to: nil)
| |- warning: sending 'self.asyncValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.asyncValue' to actor-isolated instance method 'resolve(to:)' risks causing data races between actor-isolated and task-isolated uses
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Subscribers/SubscribeMain.swift:39:14: warning: sending 'emission' risks causing data races; this is an error in the Swift 6 language mode
37 | fileprivate func receive(emission: Emission<Output, Failure>) {
38 | Task { @MainActor in
39 | switch emission {
| |- warning: sending 'emission' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'emission' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
40 | case .value(let value):
41 | valueFunc(value)
[49/63] Compiling Emitter UnionTwo.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionTwo.swift:12:55: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
10 | public func union<UpstreamB: Emitter>(
11 | _ otherB: UpstreamB
12 | ) -> some Emitter<Union2<Output, UpstreamB.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
13 | Emitters
14 | .UnionTwo(upstreamA: self, upstreamB: otherB)
[50/63] Compiling Emitter WithFailureType.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionTwo.swift:12:55: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
10 | public func union<UpstreamB: Emitter>(
11 | _ otherB: UpstreamB
12 | ) -> some Emitter<Union2<Output, UpstreamB.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
13 | Emitters
14 | .UnionTwo(upstreamA: self, upstreamB: otherB)
[51/63] Compiling Emitter WithPrefix.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionTwo.swift:12:55: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
10 | public func union<UpstreamB: Emitter>(
11 | _ otherB: UpstreamB
12 | ) -> some Emitter<Union2<Output, UpstreamB.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
13 | Emitters
14 | .UnionTwo(upstreamA: self, upstreamB: otherB)
[52/63] Compiling Emitter WithSuffix.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionTwo.swift:12:55: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
10 | public func union<UpstreamB: Emitter>(
11 | _ otherB: UpstreamB
12 | ) -> some Emitter<Union2<Output, UpstreamB.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
13 | Emitters
14 | .UnionTwo(upstreamA: self, upstreamB: otherB)
[53/63] Compiling Emitter Create.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionTwo.swift:12:55: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
10 | public func union<UpstreamB: Emitter>(
11 | _ otherB: UpstreamB
12 | ) -> some Emitter<Union2<Output, UpstreamB.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
13 | Emitters
14 | .UnionTwo(upstreamA: self, upstreamB: otherB)
[54/63] Compiling Emitter Redirect.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/Redirect.swift:70:33: warning: capture of 'self' with non-sendable type 'Emitters.Redirect<Upstream>.Sub<Downstream>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | // MARK: Private
53 |
54 | private struct Sub<Downstream: Subscriber>: Subscriber
| `- note: consider making generic struct 'Sub' conform to the 'Sendable' protocol
55 | where Downstream.Input == Output, Downstream.Failure == Failure
56 | {
:
68 |
69 | fileprivate func receive(emission: Emission<Upstream.Output, Upstream.Failure>) {
70 | redirection(emission) { downstream.receive(emission: $0) }
| `- warning: capture of 'self' with non-sendable type 'Emitters.Redirect<Upstream>.Sub<Downstream>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/Shared.swift:194:17: warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
54 | // MARK: Private
55 |
56 | private struct SharedSub<Input, Failure: Error>: Subscriber {
| `- note: consider making generic struct 'SharedSub' conform to the 'Sendable' protocol
57 |
58 | // MARK: Lifecycle
:
192 | }
193 |
194 | private let sharedSub = Locked<SharedSub<Output, Failure>?>(nil)
| `- warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
195 |
196 | private let upstream: Upstream
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/TryMap.swift:6:40: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
4 | public func map<TransformedOutput>(
5 | _ transformer: @escaping @Sendable (Output) throws -> TransformedOutput
6 | ) -> some Emitter<TransformedOutput, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
7 | Emitters.TryMap(upstream: self, transformer: transformer)
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionThree.swift:18:73: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
16 | _ otherB: UpstreamB,
17 | _ otherC: UpstreamC
18 | ) -> some Emitter<Union3<Output, UpstreamB.Output, UpstreamC.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
19 | Emitters
20 | .UnionThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
[55/63] Compiling Emitter ReplaceFailures.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/Redirect.swift:70:33: warning: capture of 'self' with non-sendable type 'Emitters.Redirect<Upstream>.Sub<Downstream>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | // MARK: Private
53 |
54 | private struct Sub<Downstream: Subscriber>: Subscriber
| `- note: consider making generic struct 'Sub' conform to the 'Sendable' protocol
55 | where Downstream.Input == Output, Downstream.Failure == Failure
56 | {
:
68 |
69 | fileprivate func receive(emission: Emission<Upstream.Output, Upstream.Failure>) {
70 | redirection(emission) { downstream.receive(emission: $0) }
| `- warning: capture of 'self' with non-sendable type 'Emitters.Redirect<Upstream>.Sub<Downstream>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/Shared.swift:194:17: warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
54 | // MARK: Private
55 |
56 | private struct SharedSub<Input, Failure: Error>: Subscriber {
| `- note: consider making generic struct 'SharedSub' conform to the 'Sendable' protocol
57 |
58 | // MARK: Lifecycle
:
192 | }
193 |
194 | private let sharedSub = Locked<SharedSub<Output, Failure>?>(nil)
| `- warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
195 |
196 | private let upstream: Upstream
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/TryMap.swift:6:40: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
4 | public func map<TransformedOutput>(
5 | _ transformer: @escaping @Sendable (Output) throws -> TransformedOutput
6 | ) -> some Emitter<TransformedOutput, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
7 | Emitters.TryMap(upstream: self, transformer: transformer)
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionThree.swift:18:73: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
16 | _ otherB: UpstreamB,
17 | _ otherC: UpstreamC
18 | ) -> some Emitter<Union3<Output, UpstreamB.Output, UpstreamC.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
19 | Emitters
20 | .UnionThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
[56/63] Compiling Emitter Shared.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/Redirect.swift:70:33: warning: capture of 'self' with non-sendable type 'Emitters.Redirect<Upstream>.Sub<Downstream>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | // MARK: Private
53 |
54 | private struct Sub<Downstream: Subscriber>: Subscriber
| `- note: consider making generic struct 'Sub' conform to the 'Sendable' protocol
55 | where Downstream.Input == Output, Downstream.Failure == Failure
56 | {
:
68 |
69 | fileprivate func receive(emission: Emission<Upstream.Output, Upstream.Failure>) {
70 | redirection(emission) { downstream.receive(emission: $0) }
| `- warning: capture of 'self' with non-sendable type 'Emitters.Redirect<Upstream>.Sub<Downstream>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/Shared.swift:194:17: warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
54 | // MARK: Private
55 |
56 | private struct SharedSub<Input, Failure: Error>: Subscriber {
| `- note: consider making generic struct 'SharedSub' conform to the 'Sendable' protocol
57 |
58 | // MARK: Lifecycle
:
192 | }
193 |
194 | private let sharedSub = Locked<SharedSub<Output, Failure>?>(nil)
| `- warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
195 |
196 | private let upstream: Upstream
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/TryMap.swift:6:40: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
4 | public func map<TransformedOutput>(
5 | _ transformer: @escaping @Sendable (Output) throws -> TransformedOutput
6 | ) -> some Emitter<TransformedOutput, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
7 | Emitters.TryMap(upstream: self, transformer: transformer)
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionThree.swift:18:73: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
16 | _ otherB: UpstreamB,
17 | _ otherC: UpstreamC
18 | ) -> some Emitter<Union3<Output, UpstreamB.Output, UpstreamC.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
19 | Emitters
20 | .UnionThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
[57/63] Compiling Emitter TryMap.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/Redirect.swift:70:33: warning: capture of 'self' with non-sendable type 'Emitters.Redirect<Upstream>.Sub<Downstream>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | // MARK: Private
53 |
54 | private struct Sub<Downstream: Subscriber>: Subscriber
| `- note: consider making generic struct 'Sub' conform to the 'Sendable' protocol
55 | where Downstream.Input == Output, Downstream.Failure == Failure
56 | {
:
68 |
69 | fileprivate func receive(emission: Emission<Upstream.Output, Upstream.Failure>) {
70 | redirection(emission) { downstream.receive(emission: $0) }
| `- warning: capture of 'self' with non-sendable type 'Emitters.Redirect<Upstream>.Sub<Downstream>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/Shared.swift:194:17: warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
54 | // MARK: Private
55 |
56 | private struct SharedSub<Input, Failure: Error>: Subscriber {
| `- note: consider making generic struct 'SharedSub' conform to the 'Sendable' protocol
57 |
58 | // MARK: Lifecycle
:
192 | }
193 |
194 | private let sharedSub = Locked<SharedSub<Output, Failure>?>(nil)
| `- warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
195 |
196 | private let upstream: Upstream
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/TryMap.swift:6:40: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
4 | public func map<TransformedOutput>(
5 | _ transformer: @escaping @Sendable (Output) throws -> TransformedOutput
6 | ) -> some Emitter<TransformedOutput, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
7 | Emitters.TryMap(upstream: self, transformer: transformer)
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionThree.swift:18:73: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
16 | _ otherB: UpstreamB,
17 | _ otherC: UpstreamC
18 | ) -> some Emitter<Union3<Output, UpstreamB.Output, UpstreamC.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
19 | Emitters
20 | .UnionThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
[58/63] Compiling Emitter UnionThree.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/Redirect.swift:70:33: warning: capture of 'self' with non-sendable type 'Emitters.Redirect<Upstream>.Sub<Downstream>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | // MARK: Private
53 |
54 | private struct Sub<Downstream: Subscriber>: Subscriber
| `- note: consider making generic struct 'Sub' conform to the 'Sendable' protocol
55 | where Downstream.Input == Output, Downstream.Failure == Failure
56 | {
:
68 |
69 | fileprivate func receive(emission: Emission<Upstream.Output, Upstream.Failure>) {
70 | redirection(emission) { downstream.receive(emission: $0) }
| `- warning: capture of 'self' with non-sendable type 'Emitters.Redirect<Upstream>.Sub<Downstream>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/Shared.swift:194:17: warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
54 | // MARK: Private
55 |
56 | private struct SharedSub<Input, Failure: Error>: Subscriber {
| `- note: consider making generic struct 'SharedSub' conform to the 'Sendable' protocol
57 |
58 | // MARK: Lifecycle
:
192 | }
193 |
194 | private let sharedSub = Locked<SharedSub<Output, Failure>?>(nil)
| `- warning: stored property 'sharedSub' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type 'Locked<Emitters.Shared<Upstream>.SharedSub<Emitters.Shared<Upstream>.Output, Emitters.Shared<Upstream>.Failure>?>' (aka 'Locked<Optional<Emitters.Shared<Upstream>.SharedSub<Upstream.Output, Upstream.Failure>>>'); this is an error in the Swift 6 language mode
195 |
196 | private let upstream: Upstream
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/TryMap.swift:6:40: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
4 | public func map<TransformedOutput>(
5 | _ transformer: @escaping @Sendable (Output) throws -> TransformedOutput
6 | ) -> some Emitter<TransformedOutput, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
7 | Emitters.TryMap(upstream: self, transformer: transformer)
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/Emitter/Operators/UnionThree.swift:18:73: warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
16 | _ otherB: UpstreamB,
17 | _ otherC: UpstreamC
18 | ) -> some Emitter<Union3<Output, UpstreamB.Output, UpstreamC.Output>, Error> {
| `- warning: use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode
19 | Emitters
20 | .UnionThree(upstreamA: self, upstreamB: otherB, upstreamC: otherC)
[59/63] Compiling Emitter FailureEmitter.swift
[60/63] Compiling Emitter JustEmitter.swift
[61/63] Compiling Emitter NeverEmitter.swift
[62/63] Compiling Emitter PublishSubject.swift
[63/63] Compiling Emitter ValueSubject.swift
Build complete! (6.73s)
Build complete.
{
"dependencies" : [
{
"identity" : "disposable",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "1.1.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/GoodHatsLLC/Disposable.git"
}
],
"manifest_display_name" : "Emitter",
"name" : "Emitter",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.3"
},
{
"name" : "ios",
"version" : "15.4"
},
{
"name" : "tvos",
"version" : "15.4"
},
{
"name" : "watchos",
"version" : "8.5"
},
{
"name" : "maccatalyst",
"version" : "15.4"
}
],
"products" : [
{
"name" : "Emitter",
"targets" : [
"Emitter"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EmitterTests",
"module_type" : "SwiftTarget",
"name" : "EmitterTests",
"path" : "Tests/EmitterTests",
"product_dependencies" : [
"Disposable"
],
"sources" : [
"Benchmarks/Benchmarks.swift",
"Benchmarks/Blackhole.swift",
"BridgingTests/AsyncToEmitterTests.swift",
"BridgingTests/CombineToEmitterTests.swift",
"BridgingTests/EmitterToAsyncTests.swift",
"BridgingTests/EmitterToCombineTests.swift",
"LifecycleTests/FinishTests.swift",
"OperatorTests/CombineLatestThreeTests.swift",
"OperatorTests/CombineLatestTwoTests.swift",
"OperatorTests/CompactMapTests.swift",
"OperatorTests/DedupingTests.swift",
"OperatorTests/FilterTests.swift",
"OperatorTests/FirstTests.swift",
"OperatorTests/FlatMapLatestTests.swift",
"OperatorTests/MapFailureTests.swift",
"OperatorTests/MapTests.swift",
"OperatorTests/Merge2Tests.swift",
"OperatorTests/Merge3Tests.swift",
"OperatorTests/ReplacingFailuresTests.swift",
"OperatorTests/SharedTests.swift",
"OperatorTests/TryMapTests.swift",
"OperatorTests/UnionThreeTests.swift",
"OperatorTests/UnionTwoTests.swift",
"OperatorTests/WithFailureTypeTests.swift",
"OperatorTests/WithPrefixTests.swift",
"OperatorTests/WithSuffixTests.swift",
"SourceTests/CreateTests.swift",
"SourceTests/PublishSubjectTests.swift",
"SourceTests/ValueSubjectTests.swift",
"StressTests/ThreadingTests.swift",
"SubscriberTests/FirstValueTests.swift",
"Utils/AsyncValue.swift",
"Utils/Flush.swift",
"Utils/Unchecked.swift"
],
"target_dependencies" : [
"Emitter"
],
"type" : "test"
},
{
"c99name" : "Emitter",
"module_type" : "SwiftTarget",
"name" : "Emitter",
"path" : "Sources/Emitter",
"product_dependencies" : [
"Disposable"
],
"product_memberships" : [
"Emitter"
],
"sources" : [
"Bridging/AsyncToEmitterBridge.swift",
"Bridging/CombineToEmitterBridge.swift",
"Bridging/EmitterToAsyncBridge.swift",
"Bridging/EmitterToCombineBridge.swift",
"Bridging/SequenceToEmitterBridge.swift",
"Erasure/AnyEmitter.swift",
"Export.swift",
"Interface/Emission.swift",
"Interface/Emitter.swift",
"Interface/Subject.swift",
"Interface/Subscriber.swift",
"Interface/Tuple.swift",
"Interface/Union.swift",
"Operators/CombineLatestThree.swift",
"Operators/CombineLatestTwo.swift",
"Operators/CompactMap.swift",
"Operators/Dedupe.swift",
"Operators/Filter.swift",
"Operators/First.swift",
"Operators/FlatMapLatest.swift",
"Operators/Map.swift",
"Operators/MapFailure.swift",
"Operators/MergeThree.swift",
"Operators/MergeTwo.swift",
"Operators/Print.swift",
"Operators/Redirect.swift",
"Operators/ReplaceFailures.swift",
"Operators/Shared.swift",
"Operators/TryMap.swift",
"Operators/UnionThree.swift",
"Operators/UnionTwo.swift",
"Operators/WithFailureType.swift",
"Operators/WithPrefix.swift",
"Operators/WithSuffix.swift",
"Sources/Create.swift",
"Sources/FailureEmitter.swift",
"Sources/JustEmitter.swift",
"Sources/NeverEmitter.swift",
"Sources/PublishSubject.swift",
"Sources/ValueSubject.swift",
"Subscribers/EmissionDataProxy.swift",
"Subscribers/FirstValue.swift",
"Subscribers/Subscribe.swift",
"Subscribers/SubscribeMain.swift",
"Subscribers/Subscription.swift",
"Subscribers/TransformProxy.swift",
"Utilities/AsyncValue.swift",
"Utilities/Locked.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.