Build Information
Failed to build AsyncNinja, reference 1.4.0 (b6f4e2
), with Swift 6.0 for Linux on 19 Jul 2024 06:24:16 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Merge2.swift:39:7: warning: variable 'locking' was never mutated; consider changing to 'let' constant
37 | let weakProducer = WeakBox(producer)
38 |
39 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
40 | var successA: T.Success?
41 | var successB: U.Success?
[39/68] Compiling AsyncNinja EventSource_Map.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Merge2.swift:39:7: warning: variable 'locking' was never mutated; consider changing to 'let' constant
37 | let weakProducer = WeakBox(producer)
38 |
39 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
40 | var successA: T.Success?
41 | var successB: U.Success?
[40/68] Compiling AsyncNinja EventSource_Merge2.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Merge2.swift:39:7: warning: variable 'locking' was never mutated; consider changing to 'let' constant
37 | let weakProducer = WeakBox(producer)
38 |
39 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
40 | var successA: T.Success?
41 | var successB: U.Success?
[41/68] Compiling AsyncNinja EventSource_Merge2Unrelated.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Merge2.swift:39:7: warning: variable 'locking' was never mutated; consider changing to 'let' constant
37 | let weakProducer = WeakBox(producer)
38 |
39 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
40 | var successA: T.Success?
41 | var successB: U.Success?
[42/68] Compiling AsyncNinja EventSource_Sample.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Merge2.swift:39:7: warning: variable 'locking' was never mutated; consider changing to 'let' constant
37 | let weakProducer = WeakBox(producer)
38 |
39 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
40 | var successA: T.Success?
41 | var successB: U.Success?
[43/68] Compiling AsyncNinja EventSource_Scan.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Merge2.swift:39:7: warning: variable 'locking' was never mutated; consider changing to 'let' constant
37 | let weakProducer = WeakBox(producer)
38 |
39 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
40 | var successA: T.Success?
41 | var successB: U.Success?
[44/68] Compiling AsyncNinja EventSource_ToFuture.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Merge2.swift:39:7: warning: variable 'locking' was never mutated; consider changing to 'let' constant
37 | let weakProducer = WeakBox(producer)
38 |
39 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
40 | var successA: T.Success?
41 | var successB: U.Success?
[45/68] Compiling AsyncNinja EventSource_Transform.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:53:11: warning: variable 'locking' was never mutated; consider changing to 'let' constant
51 | #else
52 |
53 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
54 | var index = 0
55 | return self.map(executor: .immediate,
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:341:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
339 | ) -> Channel<Update, Success> {
340 | // Test: EventSource_TransformTests.testSkip
341 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
342 | var updatesQueue = Queue<Update>()
343 | var numberOfFirstToSkip = first
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:403:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
401 | ) -> Channel<Update, Success> {
402 | // Test: EventSource_TransformTests.testTake
403 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
404 | var updatesQueue = Queue<Update>()
405 | var numberOfFirstToTake = first
/host/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/host/spi-builder-workspace/Sources/Executor.swift:114:14: warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
112 | // Test: ExecutorTests.testUserInteractive
113 | /// shortcut to the global concurrent user interactive queue executor
114 | static let userInteractive = Executor.queue(.userInteractive)
| |- warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInteractive' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 |
116 | // Test: ExecutorTests.testUserInitiated
/host/spi-builder-workspace/Sources/Executor.swift:118:14: warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
116 | // Test: ExecutorTests.testUserInitiated
117 | /// shortcut to the global concurrent user initiated queue executor
118 | static let userInitiated = Executor.queue(.userInitiated)
| |- warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInitiated' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |
120 | // Test: ExecutorTests.testDefault
/host/spi-builder-workspace/Sources/Executor.swift:122:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
120 | // Test: ExecutorTests.testDefault
121 | /// shortcut to the global concurrent default queue executor
122 | static let `default` = Executor.queue(.default)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | // Test: ExecutorTests.testUtility
/host/spi-builder-workspace/Sources/Executor.swift:126:14: warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
124 | // Test: ExecutorTests.testUtility
125 | /// shortcut to the global concurrent utility queue executor
126 | static let utility = Executor.queue(.utility)
| |- warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'utility' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 |
128 | // Test: ExecutorTests.testBackground
/host/spi-builder-workspace/Sources/Executor.swift:130:14: warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
128 | // Test: ExecutorTests.testBackground
129 | /// shortcut to the global concurrent background queue executor
130 | static let background = Executor.queue(.background)
| |- warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'background' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | // Test: ExecutorTests.testImmediate
/host/spi-builder-workspace/Sources/Executor.swift:188:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
185 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
186 |
187 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
188 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
/host/spi-builder-workspace/Sources/Executor.swift:193:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
191 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
192 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
193 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
194 | }
195 |
/host/spi-builder-workspace/Sources/Executor.swift:208:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
205 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
206 |
207 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
208 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
/host/spi-builder-workspace/Sources/Executor.swift:213:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
211 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
212 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
213 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
214 | }
215 |
/host/spi-builder-workspace/Sources/Executor.swift:232:52: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
227 | }
228 |
229 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
230 | let deadline = DispatchWallTime.now().adding(seconds: timeout)
231 | DispatchQueue.global(qos: .default)
232 | .asyncAfter(wallDeadline: deadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
233 | }
234 |
/host/spi-builder-workspace/Sources/Executor.swift:262:9: warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
/host/spi-builder-workspace/Sources/Executor.swift:262:17: warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
[46/68] Compiling AsyncNinja EventSource_Zip2.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:53:11: warning: variable 'locking' was never mutated; consider changing to 'let' constant
51 | #else
52 |
53 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
54 | var index = 0
55 | return self.map(executor: .immediate,
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:341:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
339 | ) -> Channel<Update, Success> {
340 | // Test: EventSource_TransformTests.testSkip
341 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
342 | var updatesQueue = Queue<Update>()
343 | var numberOfFirstToSkip = first
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:403:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
401 | ) -> Channel<Update, Success> {
402 | // Test: EventSource_TransformTests.testTake
403 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
404 | var updatesQueue = Queue<Update>()
405 | var numberOfFirstToTake = first
/host/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/host/spi-builder-workspace/Sources/Executor.swift:114:14: warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
112 | // Test: ExecutorTests.testUserInteractive
113 | /// shortcut to the global concurrent user interactive queue executor
114 | static let userInteractive = Executor.queue(.userInteractive)
| |- warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInteractive' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 |
116 | // Test: ExecutorTests.testUserInitiated
/host/spi-builder-workspace/Sources/Executor.swift:118:14: warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
116 | // Test: ExecutorTests.testUserInitiated
117 | /// shortcut to the global concurrent user initiated queue executor
118 | static let userInitiated = Executor.queue(.userInitiated)
| |- warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInitiated' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |
120 | // Test: ExecutorTests.testDefault
/host/spi-builder-workspace/Sources/Executor.swift:122:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
120 | // Test: ExecutorTests.testDefault
121 | /// shortcut to the global concurrent default queue executor
122 | static let `default` = Executor.queue(.default)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | // Test: ExecutorTests.testUtility
/host/spi-builder-workspace/Sources/Executor.swift:126:14: warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
124 | // Test: ExecutorTests.testUtility
125 | /// shortcut to the global concurrent utility queue executor
126 | static let utility = Executor.queue(.utility)
| |- warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'utility' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 |
128 | // Test: ExecutorTests.testBackground
/host/spi-builder-workspace/Sources/Executor.swift:130:14: warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
128 | // Test: ExecutorTests.testBackground
129 | /// shortcut to the global concurrent background queue executor
130 | static let background = Executor.queue(.background)
| |- warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'background' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | // Test: ExecutorTests.testImmediate
/host/spi-builder-workspace/Sources/Executor.swift:188:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
185 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
186 |
187 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
188 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
/host/spi-builder-workspace/Sources/Executor.swift:193:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
191 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
192 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
193 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
194 | }
195 |
/host/spi-builder-workspace/Sources/Executor.swift:208:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
205 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
206 |
207 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
208 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
/host/spi-builder-workspace/Sources/Executor.swift:213:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
211 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
212 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
213 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
214 | }
215 |
/host/spi-builder-workspace/Sources/Executor.swift:232:52: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
227 | }
228 |
229 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
230 | let deadline = DispatchWallTime.now().adding(seconds: timeout)
231 | DispatchQueue.global(qos: .default)
232 | .asyncAfter(wallDeadline: deadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
233 | }
234 |
/host/spi-builder-workspace/Sources/Executor.swift:262:9: warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
/host/spi-builder-workspace/Sources/Executor.swift:262:17: warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
[47/68] Compiling AsyncNinja ExecutionContext.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:53:11: warning: variable 'locking' was never mutated; consider changing to 'let' constant
51 | #else
52 |
53 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
54 | var index = 0
55 | return self.map(executor: .immediate,
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:341:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
339 | ) -> Channel<Update, Success> {
340 | // Test: EventSource_TransformTests.testSkip
341 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
342 | var updatesQueue = Queue<Update>()
343 | var numberOfFirstToSkip = first
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:403:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
401 | ) -> Channel<Update, Success> {
402 | // Test: EventSource_TransformTests.testTake
403 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
404 | var updatesQueue = Queue<Update>()
405 | var numberOfFirstToTake = first
/host/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/host/spi-builder-workspace/Sources/Executor.swift:114:14: warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
112 | // Test: ExecutorTests.testUserInteractive
113 | /// shortcut to the global concurrent user interactive queue executor
114 | static let userInteractive = Executor.queue(.userInteractive)
| |- warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInteractive' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 |
116 | // Test: ExecutorTests.testUserInitiated
/host/spi-builder-workspace/Sources/Executor.swift:118:14: warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
116 | // Test: ExecutorTests.testUserInitiated
117 | /// shortcut to the global concurrent user initiated queue executor
118 | static let userInitiated = Executor.queue(.userInitiated)
| |- warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInitiated' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |
120 | // Test: ExecutorTests.testDefault
/host/spi-builder-workspace/Sources/Executor.swift:122:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
120 | // Test: ExecutorTests.testDefault
121 | /// shortcut to the global concurrent default queue executor
122 | static let `default` = Executor.queue(.default)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | // Test: ExecutorTests.testUtility
/host/spi-builder-workspace/Sources/Executor.swift:126:14: warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
124 | // Test: ExecutorTests.testUtility
125 | /// shortcut to the global concurrent utility queue executor
126 | static let utility = Executor.queue(.utility)
| |- warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'utility' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 |
128 | // Test: ExecutorTests.testBackground
/host/spi-builder-workspace/Sources/Executor.swift:130:14: warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
128 | // Test: ExecutorTests.testBackground
129 | /// shortcut to the global concurrent background queue executor
130 | static let background = Executor.queue(.background)
| |- warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'background' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | // Test: ExecutorTests.testImmediate
/host/spi-builder-workspace/Sources/Executor.swift:188:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
185 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
186 |
187 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
188 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
/host/spi-builder-workspace/Sources/Executor.swift:193:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
191 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
192 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
193 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
194 | }
195 |
/host/spi-builder-workspace/Sources/Executor.swift:208:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
205 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
206 |
207 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
208 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
/host/spi-builder-workspace/Sources/Executor.swift:213:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
211 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
212 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
213 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
214 | }
215 |
/host/spi-builder-workspace/Sources/Executor.swift:232:52: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
227 | }
228 |
229 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
230 | let deadline = DispatchWallTime.now().adding(seconds: timeout)
231 | DispatchQueue.global(qos: .default)
232 | .asyncAfter(wallDeadline: deadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
233 | }
234 |
/host/spi-builder-workspace/Sources/Executor.swift:262:9: warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
/host/spi-builder-workspace/Sources/Executor.swift:262:17: warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
[48/68] Compiling AsyncNinja Executor.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:53:11: warning: variable 'locking' was never mutated; consider changing to 'let' constant
51 | #else
52 |
53 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
54 | var index = 0
55 | return self.map(executor: .immediate,
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:341:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
339 | ) -> Channel<Update, Success> {
340 | // Test: EventSource_TransformTests.testSkip
341 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
342 | var updatesQueue = Queue<Update>()
343 | var numberOfFirstToSkip = first
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:403:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
401 | ) -> Channel<Update, Success> {
402 | // Test: EventSource_TransformTests.testTake
403 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
404 | var updatesQueue = Queue<Update>()
405 | var numberOfFirstToTake = first
/host/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/host/spi-builder-workspace/Sources/Executor.swift:114:14: warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
112 | // Test: ExecutorTests.testUserInteractive
113 | /// shortcut to the global concurrent user interactive queue executor
114 | static let userInteractive = Executor.queue(.userInteractive)
| |- warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInteractive' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 |
116 | // Test: ExecutorTests.testUserInitiated
/host/spi-builder-workspace/Sources/Executor.swift:118:14: warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
116 | // Test: ExecutorTests.testUserInitiated
117 | /// shortcut to the global concurrent user initiated queue executor
118 | static let userInitiated = Executor.queue(.userInitiated)
| |- warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInitiated' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |
120 | // Test: ExecutorTests.testDefault
/host/spi-builder-workspace/Sources/Executor.swift:122:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
120 | // Test: ExecutorTests.testDefault
121 | /// shortcut to the global concurrent default queue executor
122 | static let `default` = Executor.queue(.default)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | // Test: ExecutorTests.testUtility
/host/spi-builder-workspace/Sources/Executor.swift:126:14: warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
124 | // Test: ExecutorTests.testUtility
125 | /// shortcut to the global concurrent utility queue executor
126 | static let utility = Executor.queue(.utility)
| |- warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'utility' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 |
128 | // Test: ExecutorTests.testBackground
/host/spi-builder-workspace/Sources/Executor.swift:130:14: warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
128 | // Test: ExecutorTests.testBackground
129 | /// shortcut to the global concurrent background queue executor
130 | static let background = Executor.queue(.background)
| |- warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'background' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | // Test: ExecutorTests.testImmediate
/host/spi-builder-workspace/Sources/Executor.swift:188:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
185 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
186 |
187 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
188 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
/host/spi-builder-workspace/Sources/Executor.swift:193:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
191 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
192 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
193 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
194 | }
195 |
/host/spi-builder-workspace/Sources/Executor.swift:208:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
205 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
206 |
207 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
208 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
/host/spi-builder-workspace/Sources/Executor.swift:213:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
211 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
212 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
213 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
214 | }
215 |
/host/spi-builder-workspace/Sources/Executor.swift:232:52: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
227 | }
228 |
229 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
230 | let deadline = DispatchWallTime.now().adding(seconds: timeout)
231 | DispatchQueue.global(qos: .default)
232 | .asyncAfter(wallDeadline: deadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
233 | }
234 |
/host/spi-builder-workspace/Sources/Executor.swift:262:9: warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
/host/spi-builder-workspace/Sources/Executor.swift:262:17: warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
[49/68] Compiling AsyncNinja Fallible.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:53:11: warning: variable 'locking' was never mutated; consider changing to 'let' constant
51 | #else
52 |
53 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
54 | var index = 0
55 | return self.map(executor: .immediate,
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:341:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
339 | ) -> Channel<Update, Success> {
340 | // Test: EventSource_TransformTests.testSkip
341 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
342 | var updatesQueue = Queue<Update>()
343 | var numberOfFirstToSkip = first
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:403:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
401 | ) -> Channel<Update, Success> {
402 | // Test: EventSource_TransformTests.testTake
403 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
404 | var updatesQueue = Queue<Update>()
405 | var numberOfFirstToTake = first
/host/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/host/spi-builder-workspace/Sources/Executor.swift:114:14: warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
112 | // Test: ExecutorTests.testUserInteractive
113 | /// shortcut to the global concurrent user interactive queue executor
114 | static let userInteractive = Executor.queue(.userInteractive)
| |- warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInteractive' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 |
116 | // Test: ExecutorTests.testUserInitiated
/host/spi-builder-workspace/Sources/Executor.swift:118:14: warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
116 | // Test: ExecutorTests.testUserInitiated
117 | /// shortcut to the global concurrent user initiated queue executor
118 | static let userInitiated = Executor.queue(.userInitiated)
| |- warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInitiated' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |
120 | // Test: ExecutorTests.testDefault
/host/spi-builder-workspace/Sources/Executor.swift:122:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
120 | // Test: ExecutorTests.testDefault
121 | /// shortcut to the global concurrent default queue executor
122 | static let `default` = Executor.queue(.default)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | // Test: ExecutorTests.testUtility
/host/spi-builder-workspace/Sources/Executor.swift:126:14: warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
124 | // Test: ExecutorTests.testUtility
125 | /// shortcut to the global concurrent utility queue executor
126 | static let utility = Executor.queue(.utility)
| |- warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'utility' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 |
128 | // Test: ExecutorTests.testBackground
/host/spi-builder-workspace/Sources/Executor.swift:130:14: warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
128 | // Test: ExecutorTests.testBackground
129 | /// shortcut to the global concurrent background queue executor
130 | static let background = Executor.queue(.background)
| |- warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'background' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | // Test: ExecutorTests.testImmediate
/host/spi-builder-workspace/Sources/Executor.swift:188:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
185 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
186 |
187 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
188 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
/host/spi-builder-workspace/Sources/Executor.swift:193:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
191 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
192 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
193 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
194 | }
195 |
/host/spi-builder-workspace/Sources/Executor.swift:208:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
205 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
206 |
207 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
208 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
/host/spi-builder-workspace/Sources/Executor.swift:213:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
211 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
212 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
213 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
214 | }
215 |
/host/spi-builder-workspace/Sources/Executor.swift:232:52: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
227 | }
228 |
229 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
230 | let deadline = DispatchWallTime.now().adding(seconds: timeout)
231 | DispatchQueue.global(qos: .default)
232 | .asyncAfter(wallDeadline: deadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
233 | }
234 |
/host/spi-builder-workspace/Sources/Executor.swift:262:9: warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
/host/spi-builder-workspace/Sources/Executor.swift:262:17: warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
[50/68] Compiling AsyncNinja Future.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:53:11: warning: variable 'locking' was never mutated; consider changing to 'let' constant
51 | #else
52 |
53 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
54 | var index = 0
55 | return self.map(executor: .immediate,
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:341:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
339 | ) -> Channel<Update, Success> {
340 | // Test: EventSource_TransformTests.testSkip
341 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
342 | var updatesQueue = Queue<Update>()
343 | var numberOfFirstToSkip = first
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:403:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
401 | ) -> Channel<Update, Success> {
402 | // Test: EventSource_TransformTests.testTake
403 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
404 | var updatesQueue = Queue<Update>()
405 | var numberOfFirstToTake = first
/host/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/host/spi-builder-workspace/Sources/Executor.swift:114:14: warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
112 | // Test: ExecutorTests.testUserInteractive
113 | /// shortcut to the global concurrent user interactive queue executor
114 | static let userInteractive = Executor.queue(.userInteractive)
| |- warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInteractive' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 |
116 | // Test: ExecutorTests.testUserInitiated
/host/spi-builder-workspace/Sources/Executor.swift:118:14: warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
116 | // Test: ExecutorTests.testUserInitiated
117 | /// shortcut to the global concurrent user initiated queue executor
118 | static let userInitiated = Executor.queue(.userInitiated)
| |- warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInitiated' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |
120 | // Test: ExecutorTests.testDefault
/host/spi-builder-workspace/Sources/Executor.swift:122:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
120 | // Test: ExecutorTests.testDefault
121 | /// shortcut to the global concurrent default queue executor
122 | static let `default` = Executor.queue(.default)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | // Test: ExecutorTests.testUtility
/host/spi-builder-workspace/Sources/Executor.swift:126:14: warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
124 | // Test: ExecutorTests.testUtility
125 | /// shortcut to the global concurrent utility queue executor
126 | static let utility = Executor.queue(.utility)
| |- warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'utility' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 |
128 | // Test: ExecutorTests.testBackground
/host/spi-builder-workspace/Sources/Executor.swift:130:14: warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
128 | // Test: ExecutorTests.testBackground
129 | /// shortcut to the global concurrent background queue executor
130 | static let background = Executor.queue(.background)
| |- warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'background' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | // Test: ExecutorTests.testImmediate
/host/spi-builder-workspace/Sources/Executor.swift:188:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
185 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
186 |
187 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
188 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
/host/spi-builder-workspace/Sources/Executor.swift:193:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
191 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
192 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
193 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
194 | }
195 |
/host/spi-builder-workspace/Sources/Executor.swift:208:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
205 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
206 |
207 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
208 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
/host/spi-builder-workspace/Sources/Executor.swift:213:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
211 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
212 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
213 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
214 | }
215 |
/host/spi-builder-workspace/Sources/Executor.swift:232:52: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
227 | }
228 |
229 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
230 | let deadline = DispatchWallTime.now().adding(seconds: timeout)
231 | DispatchQueue.global(qos: .default)
232 | .asyncAfter(wallDeadline: deadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
233 | }
234 |
/host/spi-builder-workspace/Sources/Executor.swift:262:9: warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
/host/spi-builder-workspace/Sources/Executor.swift:262:17: warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
[51/68] Compiling AsyncNinja Future_Makers.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:53:11: warning: variable 'locking' was never mutated; consider changing to 'let' constant
51 | #else
52 |
53 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
54 | var index = 0
55 | return self.map(executor: .immediate,
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:341:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
339 | ) -> Channel<Update, Success> {
340 | // Test: EventSource_TransformTests.testSkip
341 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
342 | var updatesQueue = Queue<Update>()
343 | var numberOfFirstToSkip = first
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:403:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
401 | ) -> Channel<Update, Success> {
402 | // Test: EventSource_TransformTests.testTake
403 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
404 | var updatesQueue = Queue<Update>()
405 | var numberOfFirstToTake = first
/host/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/host/spi-builder-workspace/Sources/Executor.swift:114:14: warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
112 | // Test: ExecutorTests.testUserInteractive
113 | /// shortcut to the global concurrent user interactive queue executor
114 | static let userInteractive = Executor.queue(.userInteractive)
| |- warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInteractive' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 |
116 | // Test: ExecutorTests.testUserInitiated
/host/spi-builder-workspace/Sources/Executor.swift:118:14: warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
116 | // Test: ExecutorTests.testUserInitiated
117 | /// shortcut to the global concurrent user initiated queue executor
118 | static let userInitiated = Executor.queue(.userInitiated)
| |- warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInitiated' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |
120 | // Test: ExecutorTests.testDefault
/host/spi-builder-workspace/Sources/Executor.swift:122:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
120 | // Test: ExecutorTests.testDefault
121 | /// shortcut to the global concurrent default queue executor
122 | static let `default` = Executor.queue(.default)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | // Test: ExecutorTests.testUtility
/host/spi-builder-workspace/Sources/Executor.swift:126:14: warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
124 | // Test: ExecutorTests.testUtility
125 | /// shortcut to the global concurrent utility queue executor
126 | static let utility = Executor.queue(.utility)
| |- warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'utility' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 |
128 | // Test: ExecutorTests.testBackground
/host/spi-builder-workspace/Sources/Executor.swift:130:14: warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
128 | // Test: ExecutorTests.testBackground
129 | /// shortcut to the global concurrent background queue executor
130 | static let background = Executor.queue(.background)
| |- warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'background' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | // Test: ExecutorTests.testImmediate
/host/spi-builder-workspace/Sources/Executor.swift:188:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
185 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
186 |
187 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
188 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
/host/spi-builder-workspace/Sources/Executor.swift:193:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
191 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
192 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
193 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
194 | }
195 |
/host/spi-builder-workspace/Sources/Executor.swift:208:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
205 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
206 |
207 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
208 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
/host/spi-builder-workspace/Sources/Executor.swift:213:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
211 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
212 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
213 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
214 | }
215 |
/host/spi-builder-workspace/Sources/Executor.swift:232:52: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
227 | }
228 |
229 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
230 | let deadline = DispatchWallTime.now().adding(seconds: timeout)
231 | DispatchQueue.global(qos: .default)
232 | .asyncAfter(wallDeadline: deadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
233 | }
234 |
/host/spi-builder-workspace/Sources/Executor.swift:262:9: warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
/host/spi-builder-workspace/Sources/Executor.swift:262:17: warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
[52/68] Compiling AsyncNinja KeyProtocols.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:53:11: warning: variable 'locking' was never mutated; consider changing to 'let' constant
51 | #else
52 |
53 | var locking = makeLocking()
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
54 | var index = 0
55 | return self.map(executor: .immediate,
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:341:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
339 | ) -> Channel<Update, Success> {
340 | // Test: EventSource_TransformTests.testSkip
341 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
342 | var updatesQueue = Queue<Update>()
343 | var numberOfFirstToSkip = first
/host/spi-builder-workspace/Sources/EventSource_Transform.swift:403:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
401 | ) -> Channel<Update, Success> {
402 | // Test: EventSource_TransformTests.testTake
403 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
404 | var updatesQueue = Queue<Update>()
405 | var numberOfFirstToTake = first
/host/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/host/spi-builder-workspace/Sources/Executor.swift:114:14: warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
112 | // Test: ExecutorTests.testUserInteractive
113 | /// shortcut to the global concurrent user interactive queue executor
114 | static let userInteractive = Executor.queue(.userInteractive)
| |- warning: static property 'userInteractive' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInteractive' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 |
116 | // Test: ExecutorTests.testUserInitiated
/host/spi-builder-workspace/Sources/Executor.swift:118:14: warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
116 | // Test: ExecutorTests.testUserInitiated
117 | /// shortcut to the global concurrent user initiated queue executor
118 | static let userInitiated = Executor.queue(.userInitiated)
| |- warning: static property 'userInitiated' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userInitiated' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |
120 | // Test: ExecutorTests.testDefault
/host/spi-builder-workspace/Sources/Executor.swift:122:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
120 | // Test: ExecutorTests.testDefault
121 | /// shortcut to the global concurrent default queue executor
122 | static let `default` = Executor.queue(.default)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | // Test: ExecutorTests.testUtility
/host/spi-builder-workspace/Sources/Executor.swift:126:14: warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
124 | // Test: ExecutorTests.testUtility
125 | /// shortcut to the global concurrent utility queue executor
126 | static let utility = Executor.queue(.utility)
| |- warning: static property 'utility' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'utility' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 |
128 | // Test: ExecutorTests.testBackground
/host/spi-builder-workspace/Sources/Executor.swift:130:14: warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
128 | // Test: ExecutorTests.testBackground
129 | /// shortcut to the global concurrent background queue executor
130 | static let background = Executor.queue(.background)
| |- warning: static property 'background' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'background' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | // Test: ExecutorTests.testImmediate
/host/spi-builder-workspace/Sources/Executor.swift:188:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
185 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
186 |
187 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
188 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
/host/spi-builder-workspace/Sources/Executor.swift:193:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
189 | }
190 |
191 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
192 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
193 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
194 | }
195 |
/host/spi-builder-workspace/Sources/Executor.swift:208:26: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
205 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return true }
206 |
207 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
208 | queue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
/host/spi-builder-workspace/Sources/Executor.swift:213:59: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
209 | }
210 |
211 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
212 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
213 | queue.asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
214 | }
215 |
/host/spi-builder-workspace/Sources/Executor.swift:232:52: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
227 | }
228 |
229 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
230 | let deadline = DispatchWallTime.now().adding(seconds: timeout)
231 | DispatchQueue.global(qos: .default)
232 | .asyncAfter(wallDeadline: deadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
233 | }
234 |
/host/spi-builder-workspace/Sources/Executor.swift:262:9: warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'handler' with non-sendable type 'HandlerBasedExecutorImpl.Handler' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
/host/spi-builder-workspace/Sources/Executor.swift:262:17: warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
260 | DispatchQueue.global(qos: .default)
261 | .asyncAfter(wallDeadline: deadline) {
262 | handler(block)
| |- warning: capture of 'block' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
263 | }
264 | }
[53/68] Compiling AsyncNinja Locking.swift
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[54/68] Compiling AsyncNinja MergeFutures.swift
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[55/68] Compiling AsyncNinja NetworkReachability.swift
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[56/68] Compiling AsyncNinja OptionalAdaptor.swift
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[57/68] Compiling AsyncNinja Producer.swift
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[58/68] Compiling AsyncNinja ProducerProxy.swift
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[59/68] Compiling AsyncNinja Promise.swift
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[60/68] Compiling AsyncNinja Queue.swift
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[61/68] Compiling AsyncNinja Completing_Transform.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/Util.swift:53:34: error: cannot find type 'DateFormatter' in scope
51 |
52 | /// formats date for debug methods
53 | static let debugDateFormatter: DateFormatter = { () -> DateFormatter in
| `- error: cannot find type 'DateFormatter' in scope
54 | let dateFormatter = DateFormatter()
55 | dateFormatter.dateFormat = "HH:mm:ss.SSSS"
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
/host/spi-builder-workspace/Sources/EventSource_Combine.swift:54:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
52 | where T.Update == Bool {
53 | // Test: EventSource_CombineTests.testSuspendable
54 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
55 | var isUnsuspended = !isSuspendedInitially
56 | var queue = Queue<Update>()
[62/68] Compiling AsyncNinja ConstantFuture.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/Util.swift:53:34: error: cannot find type 'DateFormatter' in scope
51 |
52 | /// formats date for debug methods
53 | static let debugDateFormatter: DateFormatter = { () -> DateFormatter in
| `- error: cannot find type 'DateFormatter' in scope
54 | let dateFormatter = DateFormatter()
55 | dateFormatter.dateFormat = "HH:mm:ss.SSSS"
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
/host/spi-builder-workspace/Sources/EventSource_Combine.swift:54:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
52 | where T.Update == Bool {
53 | // Test: EventSource_CombineTests.testSuspendable
54 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
55 | var isUnsuspended = !isSuspendedInitially
56 | var queue = Queue<Update>()
[63/68] Compiling AsyncNinja Debug.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/Util.swift:53:34: error: cannot find type 'DateFormatter' in scope
51 |
52 | /// formats date for debug methods
53 | static let debugDateFormatter: DateFormatter = { () -> DateFormatter in
| `- error: cannot find type 'DateFormatter' in scope
54 | let dateFormatter = DateFormatter()
55 | dateFormatter.dateFormat = "HH:mm:ss.SSSS"
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
/host/spi-builder-workspace/Sources/EventSource_Combine.swift:54:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
52 | where T.Update == Bool {
53 | // Test: EventSource_CombineTests.testSuspendable
54 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
55 | var isUnsuspended = !isSuspendedInitially
56 | var queue = Queue<Update>()
[64/68] Compiling AsyncNinja Dispatch_Extensions.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/Util.swift:53:34: error: cannot find type 'DateFormatter' in scope
51 |
52 | /// formats date for debug methods
53 | static let debugDateFormatter: DateFormatter = { () -> DateFormatter in
| `- error: cannot find type 'DateFormatter' in scope
54 | let dateFormatter = DateFormatter()
55 | dateFormatter.dateFormat = "HH:mm:ss.SSSS"
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
/host/spi-builder-workspace/Sources/EventSource_Combine.swift:54:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
52 | where T.Update == Bool {
53 | // Test: EventSource_CombineTests.testSuspendable
54 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
55 | var isUnsuspended = !isSuspendedInitially
56 | var queue = Queue<Update>()
[65/68] Compiling AsyncNinja DynamicProperty.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/Util.swift:53:34: error: cannot find type 'DateFormatter' in scope
51 |
52 | /// formats date for debug methods
53 | static let debugDateFormatter: DateFormatter = { () -> DateFormatter in
| `- error: cannot find type 'DateFormatter' in scope
54 | let dateFormatter = DateFormatter()
55 | dateFormatter.dateFormat = "HH:mm:ss.SSSS"
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
/host/spi-builder-workspace/Sources/EventSource_Combine.swift:54:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
52 | where T.Update == Bool {
53 | // Test: EventSource_CombineTests.testSuspendable
54 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
55 | var isUnsuspended = !isSuspendedInitially
56 | var queue = Queue<Update>()
[66/68] Compiling AsyncNinja Either.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/Util.swift:53:34: error: cannot find type 'DateFormatter' in scope
51 |
52 | /// formats date for debug methods
53 | static let debugDateFormatter: DateFormatter = { () -> DateFormatter in
| `- error: cannot find type 'DateFormatter' in scope
54 | let dateFormatter = DateFormatter()
55 | dateFormatter.dateFormat = "HH:mm:ss.SSSS"
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
/host/spi-builder-workspace/Sources/EventSource_Combine.swift:54:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
52 | where T.Update == Bool {
53 | // Test: EventSource_CombineTests.testSuspendable
54 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
55 | var isUnsuspended = !isSuspendedInitially
56 | var queue = Queue<Update>()
[67/68] Compiling AsyncNinja EventSource_Combine.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/Util.swift:53:34: error: cannot find type 'DateFormatter' in scope
51 |
52 | /// formats date for debug methods
53 | static let debugDateFormatter: DateFormatter = { () -> DateFormatter in
| `- error: cannot find type 'DateFormatter' in scope
54 | let dateFormatter = DateFormatter()
55 | dateFormatter.dateFormat = "HH:mm:ss.SSSS"
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
/host/spi-builder-workspace/Sources/EventSource_Combine.swift:54:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
52 | where T.Update == Bool {
53 | // Test: EventSource_CombineTests.testSuspendable
54 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
55 | var isUnsuspended = !isSuspendedInitially
56 | var queue = Queue<Update>()
[68/68] Compiling AsyncNinja EventSource_Debounce.swift
/host/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/host/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/host/spi-builder-workspace/Sources/Util.swift:53:34: error: cannot find type 'DateFormatter' in scope
51 |
52 | /// formats date for debug methods
53 | static let debugDateFormatter: DateFormatter = { () -> DateFormatter in
| `- error: cannot find type 'DateFormatter' in scope
54 | let dateFormatter = DateFormatter()
55 | dateFormatter.dateFormat = "HH:mm:ss.SSSS"
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/host/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
/host/spi-builder-workspace/Sources/EventSource_Combine.swift:54:9: warning: variable 'locking' was never mutated; consider changing to 'let' constant
52 | where T.Update == Bool {
53 | // Test: EventSource_CombineTests.testSuspendable
54 | var locking = makeLocking(isFair: true)
| `- warning: variable 'locking' was never mutated; consider changing to 'let' constant
55 | var isUnsuspended = !isSuspendedInitially
56 | var queue = Queue<Update>()
BUILD FAILURE 6.0 linux