Build Information
Successful build of AsyncNinja with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 12
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/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 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/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 |
[46/79] Compiling AsyncNinja Debug.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/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 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/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 |
[47/79] Compiling AsyncNinja Dispatch_Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/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 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/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 |
[48/79] Compiling AsyncNinja DynamicProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/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 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/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 |
[49/79] Compiling AsyncNinja Producer.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
[50/79] Compiling AsyncNinja ProducerProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
[51/79] Compiling AsyncNinja Producer_makers.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
[52/79] Compiling AsyncNinja Promise.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
[53/79] Compiling AsyncNinja Promise_makers.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
[54/79] Compiling AsyncNinja PropertyWrappers.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
[55/79] Compiling AsyncNinja Queue.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
[56/79] Compiling AsyncNinja Either.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[57/79] Compiling AsyncNinja EventSource_Combine.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[58/79] Compiling AsyncNinja EventSource_CombineLatests.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[59/79] Compiling AsyncNinja EventSource_Concat.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[60/79] Compiling AsyncNinja EventSource_Debounce.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[61/79] Compiling AsyncNinja EventSource_FlatMapFutures.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[62/79] Compiling AsyncNinja EventSource_Implementation.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[63/79] Compiling AsyncNinja TimerChannel.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:100:16: warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
98 | // **internal use only**
99 | private struct Statics {
100 | static var increment: OSAtomic_int64_aligned64_t = 0
| |- warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'increment' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'increment' 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
101 | static func withUniqueKey(_ block: (Int64) -> Void) {
102 | let unique = OSAtomicIncrement64Barrier(&increment)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:53:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
51 | isStrictAsync: Bool = false) {
52 | self.init(relaxAsyncWhenLaunchingFrom: isStrictAsync ? nil : ObjectIdentifier(operationQueue),
53 | handler: operationQueue.addOperation)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[64/79] Compiling AsyncNinja TryExecute.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:100:16: warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
98 | // **internal use only**
99 | private struct Statics {
100 | static var increment: OSAtomic_int64_aligned64_t = 0
| |- warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'increment' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'increment' 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
101 | static func withUniqueKey(_ block: (Int64) -> Void) {
102 | let unique = OSAtomicIncrement64Barrier(&increment)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:53:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
51 | isStrictAsync: Bool = false) {
52 | self.init(relaxAsyncWhenLaunchingFrom: isStrictAsync ? nil : ObjectIdentifier(operationQueue),
53 | handler: operationQueue.addOperation)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[65/79] Compiling AsyncNinja Util.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:100:16: warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
98 | // **internal use only**
99 | private struct Statics {
100 | static var increment: OSAtomic_int64_aligned64_t = 0
| |- warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'increment' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'increment' 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
101 | static func withUniqueKey(_ block: (Int64) -> Void) {
102 | let unique = OSAtomicIncrement64Barrier(&increment)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:53:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
51 | isStrictAsync: Bool = false) {
52 | self.init(relaxAsyncWhenLaunchingFrom: isStrictAsync ? nil : ObjectIdentifier(operationQueue),
53 | handler: operationQueue.addOperation)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[66/79] Compiling AsyncNinja Zip2Futures.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:100:16: warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
98 | // **internal use only**
99 | private struct Statics {
100 | static var increment: OSAtomic_int64_aligned64_t = 0
| |- warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'increment' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'increment' 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
101 | static func withUniqueKey(_ block: (Int64) -> Void) {
102 | let unique = OSAtomicIncrement64Barrier(&increment)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:53:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
51 | isStrictAsync: Bool = false) {
52 | self.init(relaxAsyncWhenLaunchingFrom: isStrictAsync ? nil : ObjectIdentifier(operationQueue),
53 | handler: operationQueue.addOperation)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[67/79] Compiling AsyncNinja Zip3Futures.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:100:16: warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
98 | // **internal use only**
99 | private struct Statics {
100 | static var increment: OSAtomic_int64_aligned64_t = 0
| |- warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'increment' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'increment' 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
101 | static func withUniqueKey(_ block: (Int64) -> Void) {
102 | let unique = OSAtomicIncrement64Barrier(&increment)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:53:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
51 | isStrictAsync: Bool = false) {
52 | self.init(relaxAsyncWhenLaunchingFrom: isStrictAsync ? nil : ObjectIdentifier(operationQueue),
53 | handler: operationQueue.addOperation)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[68/79] Compiling AsyncNinja appleOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:100:16: warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
98 | // **internal use only**
99 | private struct Statics {
100 | static var increment: OSAtomic_int64_aligned64_t = 0
| |- warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'increment' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'increment' 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
101 | static func withUniqueKey(_ block: (Int64) -> Void) {
102 | let unique = OSAtomicIncrement64Barrier(&increment)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:53:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
51 | isStrictAsync: Bool = false) {
52 | self.init(relaxAsyncWhenLaunchingFrom: isStrictAsync ? nil : ObjectIdentifier(operationQueue),
53 | handler: operationQueue.addOperation)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[69/79] Compiling AsyncNinja appleOS_CoreData.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:116: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
:
114 | /// primary executor is primary because it will be used
115 | /// as default value when executor argument is ommited
116 | 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
117 |
118 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:100:16: warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
98 | // **internal use only**
99 | private struct Statics {
100 | static var increment: OSAtomic_int64_aligned64_t = 0
| |- warning: static property 'increment' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'increment' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'increment' 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
101 | static func withUniqueKey(_ block: (Int64) -> Void) {
102 | let unique = OSAtomicIncrement64Barrier(&increment)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS.swift:53:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
51 | isStrictAsync: Bool = false) {
52 | self.init(relaxAsyncWhenLaunchingFrom: isStrictAsync ? nil : ObjectIdentifier(operationQueue),
53 | handler: operationQueue.addOperation)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[70/79] Compiling AsyncNinja appleOS_ExecutionContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:51:68: warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
49 | object: object,
50 | queue: nil,
51 | using: observationBlock)
| `- warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
52 | enablingCallback(notificationCenter, object, true)
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:75:66: warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
60 | isEnabled: Bool,
61 | enablingCallback: @escaping EnablingCallback,
62 | observationBlock: @escaping ObservationBlock) {
| `- note: parameter 'observationBlock' is implicitly non-sendable
63 | self.notificationCenter = notificationCenter
64 | self.object = object
:
73 | object: object,
74 | queue: nil,
75 | using: observationBlock)
| `- warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
76 | enablingCallback(notificationCenter, object, isEnabled)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:38:48: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
35 | cancellationToken: CancellationToken? = nil
36 | ) -> Future<(Data?, URLResponse)> {
37 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
38 | dataTask(with: url, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:48:52: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
45 | cancellationToken: CancellationToken? = nil
46 | ) -> Future<(Data?, URLResponse)> {
47 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
48 | dataTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:59:73: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
56 | cancellationToken: CancellationToken? = nil
57 | ) -> Future<(Data?, URLResponse)> {
58 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
59 | uploadTask(with: request, fromFile: fileURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:70:70: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
67 | cancellationToken: CancellationToken? = nil
68 | ) -> Future<(Data?, URLResponse)> {
69 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
70 | uploadTask(with: request, from: bodyData, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:81:58: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
78 | cancellationToken: CancellationToken? = nil
79 | ) -> Future<URL> {
80 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
81 | downloadTask(with: sourceURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:92:56: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
89 | cancellationToken: CancellationToken? = nil
90 | ) -> Future<URL> {
91 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
92 | downloadTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/macOS.swift:82:34: warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
77 | }
78 |
79 | @objc dynamic func asyncNinjaAction(sender: AnyObject?) {
| `- note: add '@MainActor' to make instance method 'asyncNinjaAction(sender:)' part of global actor 'MainActor'
80 | let update: NSControl.ActionChannelUpdate = (
81 | sender: sender,
82 | objectValue: self.control?.objectValue
| `- warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
83 | )
84 | self.producer.update(update, from: .main)
AppKit.NSControl:23:25: note: property declared here
21 | open var controlSize: NSControl.ControlSize { get set }
22 | open var formatter: Formatter? { get set }
23 | @MainActor open var objectValue: Any? { get set }
| `- note: property declared here
24 | open var stringValue: String { get set }
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[71/79] Compiling AsyncNinja appleOS_Notifications.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:51:68: warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
49 | object: object,
50 | queue: nil,
51 | using: observationBlock)
| `- warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
52 | enablingCallback(notificationCenter, object, true)
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:75:66: warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
60 | isEnabled: Bool,
61 | enablingCallback: @escaping EnablingCallback,
62 | observationBlock: @escaping ObservationBlock) {
| `- note: parameter 'observationBlock' is implicitly non-sendable
63 | self.notificationCenter = notificationCenter
64 | self.object = object
:
73 | object: object,
74 | queue: nil,
75 | using: observationBlock)
| `- warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
76 | enablingCallback(notificationCenter, object, isEnabled)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:38:48: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
35 | cancellationToken: CancellationToken? = nil
36 | ) -> Future<(Data?, URLResponse)> {
37 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
38 | dataTask(with: url, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:48:52: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
45 | cancellationToken: CancellationToken? = nil
46 | ) -> Future<(Data?, URLResponse)> {
47 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
48 | dataTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:59:73: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
56 | cancellationToken: CancellationToken? = nil
57 | ) -> Future<(Data?, URLResponse)> {
58 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
59 | uploadTask(with: request, fromFile: fileURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:70:70: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
67 | cancellationToken: CancellationToken? = nil
68 | ) -> Future<(Data?, URLResponse)> {
69 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
70 | uploadTask(with: request, from: bodyData, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:81:58: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
78 | cancellationToken: CancellationToken? = nil
79 | ) -> Future<URL> {
80 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
81 | downloadTask(with: sourceURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:92:56: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
89 | cancellationToken: CancellationToken? = nil
90 | ) -> Future<URL> {
91 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
92 | downloadTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/macOS.swift:82:34: warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
77 | }
78 |
79 | @objc dynamic func asyncNinjaAction(sender: AnyObject?) {
| `- note: add '@MainActor' to make instance method 'asyncNinjaAction(sender:)' part of global actor 'MainActor'
80 | let update: NSControl.ActionChannelUpdate = (
81 | sender: sender,
82 | objectValue: self.control?.objectValue
| `- warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
83 | )
84 | self.producer.update(update, from: .main)
AppKit.NSControl:23:25: note: property declared here
21 | open var controlSize: NSControl.ControlSize { get set }
22 | open var formatter: Formatter? { get set }
23 | @MainActor open var objectValue: Any? { get set }
| `- note: property declared here
24 | open var stringValue: String { get set }
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[72/79] Compiling AsyncNinja appleOS_Observation.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:51:68: warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
49 | object: object,
50 | queue: nil,
51 | using: observationBlock)
| `- warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
52 | enablingCallback(notificationCenter, object, true)
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:75:66: warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
60 | isEnabled: Bool,
61 | enablingCallback: @escaping EnablingCallback,
62 | observationBlock: @escaping ObservationBlock) {
| `- note: parameter 'observationBlock' is implicitly non-sendable
63 | self.notificationCenter = notificationCenter
64 | self.object = object
:
73 | object: object,
74 | queue: nil,
75 | using: observationBlock)
| `- warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
76 | enablingCallback(notificationCenter, object, isEnabled)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:38:48: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
35 | cancellationToken: CancellationToken? = nil
36 | ) -> Future<(Data?, URLResponse)> {
37 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
38 | dataTask(with: url, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:48:52: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
45 | cancellationToken: CancellationToken? = nil
46 | ) -> Future<(Data?, URLResponse)> {
47 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
48 | dataTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:59:73: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
56 | cancellationToken: CancellationToken? = nil
57 | ) -> Future<(Data?, URLResponse)> {
58 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
59 | uploadTask(with: request, fromFile: fileURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:70:70: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
67 | cancellationToken: CancellationToken? = nil
68 | ) -> Future<(Data?, URLResponse)> {
69 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
70 | uploadTask(with: request, from: bodyData, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:81:58: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
78 | cancellationToken: CancellationToken? = nil
79 | ) -> Future<URL> {
80 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
81 | downloadTask(with: sourceURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:92:56: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
89 | cancellationToken: CancellationToken? = nil
90 | ) -> Future<URL> {
91 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
92 | downloadTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/macOS.swift:82:34: warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
77 | }
78 |
79 | @objc dynamic func asyncNinjaAction(sender: AnyObject?) {
| `- note: add '@MainActor' to make instance method 'asyncNinjaAction(sender:)' part of global actor 'MainActor'
80 | let update: NSControl.ActionChannelUpdate = (
81 | sender: sender,
82 | objectValue: self.control?.objectValue
| `- warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
83 | )
84 | self.producer.update(update, from: .main)
AppKit.NSControl:23:25: note: property declared here
21 | open var controlSize: NSControl.ControlSize { get set }
22 | open var formatter: Formatter? { get set }
23 | @MainActor open var objectValue: Any? { get set }
| `- note: property declared here
24 | open var stringValue: String { get set }
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[73/79] Compiling AsyncNinja appleOS_Retainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:51:68: warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
49 | object: object,
50 | queue: nil,
51 | using: observationBlock)
| `- warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
52 | enablingCallback(notificationCenter, object, true)
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:75:66: warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
60 | isEnabled: Bool,
61 | enablingCallback: @escaping EnablingCallback,
62 | observationBlock: @escaping ObservationBlock) {
| `- note: parameter 'observationBlock' is implicitly non-sendable
63 | self.notificationCenter = notificationCenter
64 | self.object = object
:
73 | object: object,
74 | queue: nil,
75 | using: observationBlock)
| `- warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
76 | enablingCallback(notificationCenter, object, isEnabled)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:38:48: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
35 | cancellationToken: CancellationToken? = nil
36 | ) -> Future<(Data?, URLResponse)> {
37 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
38 | dataTask(with: url, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:48:52: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
45 | cancellationToken: CancellationToken? = nil
46 | ) -> Future<(Data?, URLResponse)> {
47 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
48 | dataTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:59:73: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
56 | cancellationToken: CancellationToken? = nil
57 | ) -> Future<(Data?, URLResponse)> {
58 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
59 | uploadTask(with: request, fromFile: fileURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:70:70: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
67 | cancellationToken: CancellationToken? = nil
68 | ) -> Future<(Data?, URLResponse)> {
69 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
70 | uploadTask(with: request, from: bodyData, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:81:58: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
78 | cancellationToken: CancellationToken? = nil
79 | ) -> Future<URL> {
80 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
81 | downloadTask(with: sourceURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:92:56: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
89 | cancellationToken: CancellationToken? = nil
90 | ) -> Future<URL> {
91 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
92 | downloadTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/macOS.swift:82:34: warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
77 | }
78 |
79 | @objc dynamic func asyncNinjaAction(sender: AnyObject?) {
| `- note: add '@MainActor' to make instance method 'asyncNinjaAction(sender:)' part of global actor 'MainActor'
80 | let update: NSControl.ActionChannelUpdate = (
81 | sender: sender,
82 | objectValue: self.control?.objectValue
| `- warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
83 | )
84 | self.producer.update(update, from: .main)
AppKit.NSControl:23:25: note: property declared here
21 | open var controlSize: NSControl.ControlSize { get set }
22 | open var formatter: Formatter? { get set }
23 | @MainActor open var objectValue: Any? { get set }
| `- note: property declared here
24 | open var stringValue: String { get set }
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[74/79] Compiling AsyncNinja appleOS_URLSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:51:68: warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
49 | object: object,
50 | queue: nil,
51 | using: observationBlock)
| `- warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
52 | enablingCallback(notificationCenter, object, true)
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:75:66: warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
60 | isEnabled: Bool,
61 | enablingCallback: @escaping EnablingCallback,
62 | observationBlock: @escaping ObservationBlock) {
| `- note: parameter 'observationBlock' is implicitly non-sendable
63 | self.notificationCenter = notificationCenter
64 | self.object = object
:
73 | object: object,
74 | queue: nil,
75 | using: observationBlock)
| `- warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
76 | enablingCallback(notificationCenter, object, isEnabled)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:38:48: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
35 | cancellationToken: CancellationToken? = nil
36 | ) -> Future<(Data?, URLResponse)> {
37 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
38 | dataTask(with: url, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:48:52: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
45 | cancellationToken: CancellationToken? = nil
46 | ) -> Future<(Data?, URLResponse)> {
47 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
48 | dataTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:59:73: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
56 | cancellationToken: CancellationToken? = nil
57 | ) -> Future<(Data?, URLResponse)> {
58 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
59 | uploadTask(with: request, fromFile: fileURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:70:70: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
67 | cancellationToken: CancellationToken? = nil
68 | ) -> Future<(Data?, URLResponse)> {
69 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
70 | uploadTask(with: request, from: bodyData, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:81:58: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
78 | cancellationToken: CancellationToken? = nil
79 | ) -> Future<URL> {
80 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
81 | downloadTask(with: sourceURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:92:56: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
89 | cancellationToken: CancellationToken? = nil
90 | ) -> Future<URL> {
91 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
92 | downloadTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/macOS.swift:82:34: warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
77 | }
78 |
79 | @objc dynamic func asyncNinjaAction(sender: AnyObject?) {
| `- note: add '@MainActor' to make instance method 'asyncNinjaAction(sender:)' part of global actor 'MainActor'
80 | let update: NSControl.ActionChannelUpdate = (
81 | sender: sender,
82 | objectValue: self.control?.objectValue
| `- warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
83 | )
84 | self.producer.update(update, from: .main)
AppKit.NSControl:23:25: note: property declared here
21 | open var controlSize: NSControl.ControlSize { get set }
22 | open var formatter: Formatter? { get set }
23 | @MainActor open var objectValue: Any? { get set }
| `- note: property declared here
24 | open var stringValue: String { get set }
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[75/79] Compiling AsyncNinja macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:51:68: warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
49 | object: object,
50 | queue: nil,
51 | using: observationBlock)
| `- warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
52 | enablingCallback(notificationCenter, object, true)
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:75:66: warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
60 | isEnabled: Bool,
61 | enablingCallback: @escaping EnablingCallback,
62 | observationBlock: @escaping ObservationBlock) {
| `- note: parameter 'observationBlock' is implicitly non-sendable
63 | self.notificationCenter = notificationCenter
64 | self.object = object
:
73 | object: object,
74 | queue: nil,
75 | using: observationBlock)
| `- warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
76 | enablingCallback(notificationCenter, object, isEnabled)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:38:48: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
35 | cancellationToken: CancellationToken? = nil
36 | ) -> Future<(Data?, URLResponse)> {
37 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
38 | dataTask(with: url, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:48:52: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
45 | cancellationToken: CancellationToken? = nil
46 | ) -> Future<(Data?, URLResponse)> {
47 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
48 | dataTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:59:73: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
56 | cancellationToken: CancellationToken? = nil
57 | ) -> Future<(Data?, URLResponse)> {
58 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
59 | uploadTask(with: request, fromFile: fileURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:70:70: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
67 | cancellationToken: CancellationToken? = nil
68 | ) -> Future<(Data?, URLResponse)> {
69 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
70 | uploadTask(with: request, from: bodyData, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:81:58: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
78 | cancellationToken: CancellationToken? = nil
79 | ) -> Future<URL> {
80 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
81 | downloadTask(with: sourceURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:92:56: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
89 | cancellationToken: CancellationToken? = nil
90 | ) -> Future<URL> {
91 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
92 | downloadTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/macOS.swift:82:34: warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
77 | }
78 |
79 | @objc dynamic func asyncNinjaAction(sender: AnyObject?) {
| `- note: add '@MainActor' to make instance method 'asyncNinjaAction(sender:)' part of global actor 'MainActor'
80 | let update: NSControl.ActionChannelUpdate = (
81 | sender: sender,
82 | objectValue: self.control?.objectValue
| `- warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
83 | )
84 | self.producer.update(update, from: .main)
AppKit.NSControl:23:25: note: property declared here
21 | open var controlSize: NSControl.ControlSize { get set }
22 | open var formatter: Formatter? { get set }
23 | @MainActor open var objectValue: Any? { get set }
| `- note: property declared here
24 | open var stringValue: String { get set }
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[76/79] Compiling AsyncNinja watchOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:51:68: warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
49 | object: object,
50 | queue: nil,
51 | using: observationBlock)
| `- warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
52 | enablingCallback(notificationCenter, object, true)
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_Notifications.swift:75:66: warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
60 | isEnabled: Bool,
61 | enablingCallback: @escaping EnablingCallback,
62 | observationBlock: @escaping ObservationBlock) {
| `- note: parameter 'observationBlock' is implicitly non-sendable
63 | self.notificationCenter = notificationCenter
64 | self.object = object
:
73 | object: object,
74 | queue: nil,
75 | using: observationBlock)
| `- warning: passing non-sendable parameter 'observationBlock' to function expecting a @Sendable closure
76 | enablingCallback(notificationCenter, object, isEnabled)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:38:48: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
35 | cancellationToken: CancellationToken? = nil
36 | ) -> Future<(Data?, URLResponse)> {
37 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
38 | dataTask(with: url, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:48:52: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
45 | cancellationToken: CancellationToken? = nil
46 | ) -> Future<(Data?, URLResponse)> {
47 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
48 | dataTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:59:73: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
56 | cancellationToken: CancellationToken? = nil
57 | ) -> Future<(Data?, URLResponse)> {
58 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
59 | uploadTask(with: request, fromFile: fileURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:70:70: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
67 | cancellationToken: CancellationToken? = nil
68 | ) -> Future<(Data?, URLResponse)> {
69 | return dataFuture(cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
70 | uploadTask(with: request, from: bodyData, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:81:58: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
78 | cancellationToken: CancellationToken? = nil
79 | ) -> Future<URL> {
80 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
81 | downloadTask(with: sourceURL, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/appleOS_URLSession.swift:92:56: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
89 | cancellationToken: CancellationToken? = nil
90 | ) -> Future<URL> {
91 | return downloadFuture(to: destinationURL, cancellationToken: cancellationToken) {
| `- note: parameter '$0' is implicitly non-sendable
92 | downloadTask(with: request, completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/macOS.swift:82:34: warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
77 | }
78 |
79 | @objc dynamic func asyncNinjaAction(sender: AnyObject?) {
| `- note: add '@MainActor' to make instance method 'asyncNinjaAction(sender:)' part of global actor 'MainActor'
80 | let update: NSControl.ActionChannelUpdate = (
81 | sender: sender,
82 | objectValue: self.control?.objectValue
| `- warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
83 | )
84 | self.producer.update(update, from: .main)
AppKit.NSControl:23:25: note: property declared here
21 | open var controlSize: NSControl.ControlSize { get set }
22 | open var formatter: Formatter? { get set }
23 | @MainActor open var objectValue: Any? { get set }
| `- note: property declared here
24 | open var stringValue: String { get set }
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[77/84] Compiling AsyncNinjaReactiveUI macOS_ReactiveProperties.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/macOS_ReactiveProperties.swift:46:70: warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
44 | /// `ProducerProxy` that refers to read-write property `NSControl.objectValue`
45 | var objectValue: ProducerProxy<Any?, Void> {
46 | return anyUpdatable(forBindingName: .value, initialValue: object.objectValue)
| `- warning: main actor-isolated property 'objectValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
47 | }
48 |
AppKit.NSControl:23:25: note: property declared here
21 | open var controlSize: NSControl.ControlSize { get set }
22 | open var formatter: Formatter? { get set }
23 | @MainActor open var objectValue: Any? { get set }
| `- note: property declared here
24 | open var stringValue: String { get set }
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/macOS_ReactiveProperties.swift:51:67: warning: main actor-isolated property 'stringValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
49 | /// `ProducerProxy` that refers to read-write property `NSControl.stringValue`
50 | var stringValue: ProducerProxy<String?, Void> {
51 | return updatable(forBindingName: .value, initialValue: object.stringValue)
| `- warning: main actor-isolated property 'stringValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
52 | }
53 |
AppKit.NSControl:24:14: note: property declared here
22 | open var formatter: Formatter? { get set }
23 | @MainActor open var objectValue: Any? { get set }
24 | open var stringValue: String { get set }
| `- note: property declared here
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 | open var intValue: Int32 { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/macOS_ReactiveProperties.swift:56:67: warning: main actor-isolated property 'attributedStringValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
54 | /// `ProducerProxy` that refers to read-write property `NSControl.attributedStringValue`
55 | var attributedStringValue: ProducerProxy<NSAttributedString?, Void> {
56 | return updatable(forBindingName: .value, initialValue: object.attributedStringValue)
| `- warning: main actor-isolated property 'attributedStringValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
57 | }
58 |
AppKit.NSControl:25:25: note: property declared here
23 | @MainActor open var objectValue: Any? { get set }
24 | open var stringValue: String { get set }
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
| `- note: property declared here
26 | open var intValue: Int32 { get set }
27 | open var integerValue: Int { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/macOS_ReactiveProperties.swift:62:43: warning: main actor-isolated property 'integerValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
60 | var integerValue: ProducerProxy<Int?, Void> {
61 | return updatable(forBindingName: .value,
62 | initialValue: object.integerValue,
| `- warning: main actor-isolated property 'integerValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
63 | transformer: { ($0 as? NSNumber)?.intValue ?? ($0 as? Int) },
64 | reveseTransformer: { $0.map(NSNumber.init(integerLiteral:)) })
AppKit.NSControl:27:14: note: property declared here
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 | open var intValue: Int32 { get set }
27 | open var integerValue: Int { get set }
| `- note: property declared here
28 | open var floatValue: Float { get set }
29 | open var doubleValue: Double { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/macOS_ReactiveProperties.swift:70:43: warning: main actor-isolated property 'floatValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
68 | var floatValue: ProducerProxy<Float?, Void> {
69 | return updatable(forBindingName: .value,
70 | initialValue: object.floatValue,
| `- warning: main actor-isolated property 'floatValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
71 | transformer: { ($0 as? NSNumber)?.floatValue ?? ($0 as? Float) },
72 | reveseTransformer: { $0.map(NSNumber.init(value:)) })
AppKit.NSControl:28:14: note: property declared here
26 | open var intValue: Int32 { get set }
27 | open var integerValue: Int { get set }
28 | open var floatValue: Float { get set }
| `- note: property declared here
29 | open var doubleValue: Double { get set }
30 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/macOS_ReactiveProperties.swift:78:43: warning: main actor-isolated property 'doubleValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
76 | var doubleValue: ProducerProxy<Double?, Void> {
77 | return updatable(forBindingName: .value,
78 | initialValue: object.doubleValue,
| `- warning: main actor-isolated property 'doubleValue' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
79 | transformer: { ($0 as? NSNumber)?.doubleValue ?? ($0 as? Double) },
80 | reveseTransformer: { $0.map(NSNumber.init(value:)) })
AppKit.NSControl:29:14: note: property declared here
27 | open var integerValue: Int { get set }
28 | open var floatValue: Float { get set }
29 | open var doubleValue: Double { get set }
| `- note: property declared here
30 | @available(macOS 10.10, *)
31 | open func sizeThatFits(_ size: NSSize) -> NSSize
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/macOS_ReactiveProperties.swift:92:24: warning: call to main actor-isolated instance method 'actionChannel()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
90 | public extension ReactiveProperties where Object: NSPopUpButton {
91 | var indexDidSelect: Channel<Int, Void> {
92 | return self.object.actionChannel()
| `- warning: call to main actor-isolated instance method 'actionChannel()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
93 | .map { $0.objectValue as! Int }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/macOS.swift:41:8: note: calls to instance method 'actionChannel()' from outside of its actor context are implicitly asynchronous
39 |
40 | /// Makes or returns cached channel. The channel that will have update on each triggering of action
41 | func actionChannel() -> ActionChannel {
| `- note: calls to instance method 'actionChannel()' from outside of its actor context are implicitly asynchronous
42 | let actionReceiver = (self.target as? ActionReceiver) ?? {
43 | let actionReceiver = ActionReceiver(control: self)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/macOS_ReactiveProperties.swift:97:24: warning: call to main actor-isolated instance method 'actionChannel()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 |
96 | var tagDidSelect: Channel<Int, Void> {
97 | return self.object.actionChannel()
| `- warning: call to main actor-isolated instance method 'actionChannel()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | .map { ($0.sender as! NSPopUpButton, $0.objectValue as! Int) }
99 | .map { sender, idx in sender.item(at: idx)!.tag }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/macOS.swift:41:8: note: calls to instance method 'actionChannel()' from outside of its actor context are implicitly asynchronous
39 |
40 | /// Makes or returns cached channel. The channel that will have update on each triggering of action
41 | func actionChannel() -> ActionChannel {
| `- note: calls to instance method 'actionChannel()' from outside of its actor context are implicitly asynchronous
42 | let actionReceiver = (self.target as? ActionReceiver) ?? {
43 | let actionReceiver = ActionReceiver(control: self)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/macOS_ReactiveProperties.swift:99:36: warning: call to main actor-isolated instance method 'item(at:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
97 | return self.object.actionChannel()
98 | .map { ($0.sender as! NSPopUpButton, $0.objectValue as! Int) }
99 | .map { sender, idx in sender.item(at: idx)!.tag }
| `- warning: call to main actor-isolated instance method 'item(at:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | }
101 | }
AppKit.NSPopUpButton:40:26: note: calls to instance method 'item(at:)' from outside of its actor context are implicitly asynchronous
38 | @available(swift, obsoleted: 3, renamed: "indexOfItem(withTarget:andAction:)")
39 | open func indexOfItemWithTarget(_ target: Any?, andAction actionSelector: Selector?) -> Int
40 | @MainActor open func item(at index: Int) -> NSMenuItem?
| `- note: calls to instance method 'item(at:)' from outside of its actor context are implicitly asynchronous
41 | @available(swift, obsoleted: 3, renamed: "item(at:)")
42 | open func itemAtIndex(_ index: Int) -> NSMenuItem?
[78/84] Compiling AsyncNinjaReactiveUI macOS_BindingsProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[79/84] Compiling AsyncNinjaReactiveUI appleOS_ReactiveProperties.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/appleOS_ReactiveProperties.swift:337:15: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
334 | /// `Sink` that refers to write-only `WKWebView.load(_:)`
335 | var loadRequest: Sink<URLRequest, Void> {
336 | func setter(webView: WKWebView, request: URLRequest) {
| `- note: add '@MainActor' to make local function 'setter(webView:request:)' part of global actor 'MainActor'
337 | webView.load(request)
| `- warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
338 | }
339 | return sink(setter: setter)
WebKit.WKWebView:11:26: note: calls to instance method 'load' from outside of its actor context are implicitly asynchronous
9 | public init(frame: CGRect, configuration: WKWebViewConfiguration)
10 | public init?(coder: NSCoder)
11 | @MainActor open func load(_ request: URLRequest) -> WKNavigation?
| `- note: calls to instance method 'load' from outside of its actor context are implicitly asynchronous
12 | @available(swift, obsoleted: 3, renamed: "load(_:)")
13 | open func loadRequest(_ request: URLRequest) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/appleOS_ReactiveProperties.swift:346:15: warning: call to main actor-isolated instance method 'loadFileURL(_:allowingReadAccessTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
343 | @available(OSX 10.11, iOS 9, *)
344 | var loadFileURL: Sink<(url: URL, readAccessURL: URL), Void> {
345 | func setter(webView: WKWebView, values: (url: URL, readAccessURL: URL)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
346 | webView.loadFileURL(values.url, allowingReadAccessTo: values.readAccessURL)
| `- warning: call to main actor-isolated instance method 'loadFileURL(_:allowingReadAccessTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
347 | }
348 | return sink(setter: setter)
WebKit.WKWebView:15:15: note: calls to instance method 'loadFileURL(_:allowingReadAccessTo:)' from outside of its actor context are implicitly asynchronous
13 | open func loadRequest(_ request: URLRequest) -> WKNavigation?
14 | @available(macOS 10.11, *)
15 | open func loadFileURL(_ URL: URL, allowingReadAccessTo readAccessURL: URL) -> WKNavigation?
| `- note: calls to instance method 'loadFileURL(_:allowingReadAccessTo:)' from outside of its actor context are implicitly asynchronous
16 | @available(macOS 10.11, *)
17 | @available(swift, obsoleted: 3, renamed: "loadFileURL(_:allowingReadAccessTo:)")
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/appleOS_ReactiveProperties.swift:354:15: warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
351 | /// `Sink` that refers to write-only `WKWebView.loadHTMLString(_:, baseURL:)`
352 | var loadHTMLString: Sink<(string: String, baseURL: URL?), Void> {
353 | func setter(webView: WKWebView, values: (string: String, baseURL: URL?)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
354 | webView.loadHTMLString(values.string, baseURL: values.baseURL)
| `- warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
355 | }
356 | return sink(setter: setter)
WebKit.WKWebView:19:15: note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
17 | @available(swift, obsoleted: 3, renamed: "loadFileURL(_:allowingReadAccessTo:)")
18 | open func loadFileURL(_ URL: URL, allowingReadAccessToURL readAccessURL: URL) -> WKNavigation?
19 | open func loadHTMLString(_ string: String, baseURL: URL?) -> WKNavigation?
| `- note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
20 | @available(macOS 10.11, *)
21 | open func load(_ data: Data, mimeType MIMEType: String, characterEncodingName: String, baseURL: URL) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinjaReactiveUI/appleOS_ReactiveProperties.swift:363:10: warning: call to main actor-isolated instance method 'load(_:mimeType:characterEncodingName:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
361 | var loadData: Sink<(data: Data, mimeType: String, characterEncodingName: String, baseURL: URL), Void> {
362 | return sink {
363 | $0.load($1.data, mimeType: $1.mimeType, characterEncodingName: $1.characterEncodingName, baseURL: $1.baseURL)
| `- warning: call to main actor-isolated instance method 'load(_:mimeType:characterEncodingName:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 | }
365 | }
WebKit.WKWebView:21:15: note: calls to instance method 'load(_:mimeType:characterEncodingName:baseURL:)' from outside of its actor context are implicitly asynchronous
19 | open func loadHTMLString(_ string: String, baseURL: URL?) -> WKNavigation?
20 | @available(macOS 10.11, *)
21 | open func load(_ data: Data, mimeType MIMEType: String, characterEncodingName: String, baseURL: URL) -> WKNavigation?
| `- note: calls to instance method 'load(_:mimeType:characterEncodingName:baseURL:)' from outside of its actor context are implicitly asynchronous
22 | @available(macOS 10.11, *)
23 | @available(swift, obsoleted: 3, renamed: "load(_:mimeType:characterEncodingName:baseURL:)")
[80/84] Compiling AsyncNinjaReactiveUI iOS.swift
[81/84] Emitting module AsyncNinjaReactiveUI
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:143: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
:
141 | // Test: ExecutorTests.testImmediate
142 | /// executes block immediately. Not suitable for long running calculations
143 | 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
144 |
145 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/AsyncNinja/Executor.swift:119: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
:
117 |
118 | /// shortcut to the main queue executor
119 | 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
120 |
121 | // Test: ExecutorTests.testUserInteractive
[82/86] Emitting module ImportingTestExecutable
[83/86] Compiling ImportingTestExecutable main.swift
[83/86] Write Objects.LinkFileList
[84/86] Linking ImportingTestExecutable
[85/86] Applying ImportingTestExecutable
Build complete! (37.55s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "AsyncNinja",
"name" : "AsyncNinja",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "ImportingTestExecutable",
"targets" : [
"ImportingTestExecutable"
],
"type" : {
"executable" : null
}
},
{
"name" : "AsyncNinja",
"targets" : [
"AsyncNinja",
"AsyncNinjaReactiveUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "ImportingTestExecutable",
"module_type" : "SwiftTarget",
"name" : "ImportingTestExecutable",
"path" : "Sources/ImportingTestExecutable",
"product_memberships" : [
"ImportingTestExecutable"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"AsyncNinja",
"AsyncNinjaReactiveUI"
],
"type" : "executable"
},
{
"c99name" : "AsyncNinjaTests",
"module_type" : "SwiftTarget",
"name" : "AsyncNinjaTests",
"path" : "Tests/AsyncNinja",
"sources" : [
"BatchFutureTests.swift",
"CachableValueTests.swift",
"CacheTests.swift",
"CancellationTokenTests.swift",
"ChannelMakersTests.swift",
"ChannelTests.swift",
"EitherTests.swift",
"EventSource_CombineTests.swift",
"EventSource_FlatMapFuturesTests.swift",
"EventSource_MapTests.swift",
"EventSource_Merge2Tests.swift",
"EventSource_ScanTests.swift",
"EventSource_ToFutureTests.swift",
"EventSource_TransformTests.swift",
"EventSource_Zip2Tests.swift",
"ExecutionContextTests.swift",
"ExecutorTests.swift",
"FallibleTests.swift",
"FutureTests.swift",
"Future_MakersTests.swift",
"ObserversTests.swift",
"OptionalAdaptorTests.swift",
"PerformanceTests.swift",
"ReleasePoolTests.swift",
"SinglyLinkedListTests.swift",
"TestUtilities.swift",
"TimerChannelTests.swift",
"TryExecuteTests.swift",
"XCTestManifest.swift",
"ZipFuturesTest.swift"
],
"target_dependencies" : [
"AsyncNinja"
],
"type" : "test"
},
{
"c99name" : "AsyncNinjaReactiveUITests",
"module_type" : "SwiftTarget",
"name" : "AsyncNinjaReactiveUITests",
"path" : "Tests/AsyncNinjaReactiveUI",
"sources" : [
"Fixtures.swift",
"appleOSTests.swift",
"iOSTests.swift",
"macOSTests.swift"
],
"target_dependencies" : [
"AsyncNinjaReactiveUI"
],
"type" : "test"
},
{
"c99name" : "AsyncNinjaReactiveUI",
"module_type" : "SwiftTarget",
"name" : "AsyncNinjaReactiveUI",
"path" : "Sources/AsyncNinjaReactiveUI",
"product_memberships" : [
"ImportingTestExecutable",
"AsyncNinja"
],
"sources" : [
"appleOS_ReactiveProperties.swift",
"iOS.swift",
"macOS_BindingsProxy.swift",
"macOS_ReactiveProperties.swift"
],
"target_dependencies" : [
"AsyncNinja"
],
"type" : "library"
},
{
"c99name" : "AsyncNinja",
"module_type" : "SwiftTarget",
"name" : "AsyncNinja",
"path" : "Sources/AsyncNinja",
"product_memberships" : [
"ImportingTestExecutable",
"AsyncNinja"
],
"sources" : [
"BaseProducer.swift",
"Box.swift",
"CachableValue.swift",
"Cache.swift",
"CancellationToken.swift",
"Channel.swift",
"Channel_makers.swift",
"Completable_Implementation.swift",
"Completing_Implementation.swift",
"Completing_Transform.swift",
"ConstantFuture.swift",
"Debug.swift",
"Dispatch_Extensions.swift",
"DynamicProperty.swift",
"Either.swift",
"EventSource_Combine.swift",
"EventSource_CombineLatests.swift",
"EventSource_Concat.swift",
"EventSource_Debounce.swift",
"EventSource_FlatMapFutures.swift",
"EventSource_Implementation.swift",
"EventSource_Map.swift",
"EventSource_Merge2.swift",
"EventSource_Merge2Unrelated.swift",
"EventSource_Sample.swift",
"EventSource_Scan.swift",
"EventSource_StartWith.swift",
"EventSource_Throttle.swift",
"EventSource_ToFuture.swift",
"EventSource_Transform.swift",
"EventSource_Zip2.swift",
"EventSource_ifEmpty.swift",
"ExecutionContext.swift",
"Executor.swift",
"Fallible.swift",
"Future.swift",
"Future_Makers.swift",
"KeyProtocols.swift",
"Locking.swift",
"MergeFutures.swift",
"NetworkReachability.swift",
"OptionalAdaptor.swift",
"Producer.swift",
"ProducerProxy.swift",
"Producer_makers.swift",
"Promise.swift",
"Promise_makers.swift",
"PropertyWrappers.swift",
"Queue.swift",
"ReleasePool.swift",
"Sequence_AsyncFlatMap.swift",
"Sequence_AsyncMap.swift",
"Sequence_AsyncReduce.swift",
"SinglyLinkedList.swift",
"Sink.swift",
"Stack.swift",
"TimerChannel.swift",
"TryExecute.swift",
"Util.swift",
"Zip2Futures.swift",
"Zip3Futures.swift",
"appleOS.swift",
"appleOS_CoreData.swift",
"appleOS_ExecutionContext.swift",
"appleOS_Notifications.swift",
"appleOS_Observation.swift",
"appleOS_Retainer.swift",
"appleOS_URLSession.swift",
"macOS.swift",
"watchOS.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.