Build Information
Successful build of AsyncNinja, reference 1.4.0 (b6f4e2
), with Swift 6.0 for macOS (SPM) on 19 Jul 2024 06:25:01 UTC.
Swift 6 data race errors: 10
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.3.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
108 |
109 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/Completing_Implementation.swift:190:9: warning: variable 'handler' was written to, but never read
188 | var result: Fallible<Success>?
189 |
190 | var handler = makeCompletionHandler(executor: .immediate) { (completion, _) in
| `- warning: variable 'handler' was written to, but never read
191 | result = completion
192 | sema.signal()
/Users/admin/builder/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
[47/68] Compiling AsyncNinja Debug.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/Completing_Implementation.swift:190:9: warning: variable 'handler' was written to, but never read
188 | var result: Fallible<Success>?
189 |
190 | var handler = makeCompletionHandler(executor: .immediate) { (completion, _) in
| `- warning: variable 'handler' was written to, but never read
191 | result = completion
192 | sema.signal()
/Users/admin/builder/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
[48/68] Compiling AsyncNinja Dispatch_Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/Completing_Implementation.swift:190:9: warning: variable 'handler' was written to, but never read
188 | var result: Fallible<Success>?
189 |
190 | var handler = makeCompletionHandler(executor: .immediate) { (completion, _) in
| `- warning: variable 'handler' was written to, but never read
191 | result = completion
192 | sema.signal()
/Users/admin/builder/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
[49/68] Compiling AsyncNinja DynamicProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
/Users/admin/builder/spi-builder-workspace/Sources/Completing_Implementation.swift:190:9: warning: variable 'handler' was written to, but never read
188 | var result: Fallible<Success>?
189 |
190 | var handler = makeCompletionHandler(executor: .immediate) { (completion, _) in
| `- warning: variable 'handler' was written to, but never read
191 | result = completion
192 | sema.signal()
/Users/admin/builder/spi-builder-workspace/Sources/Dispatch_Extensions.swift:32:20: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
29 | var asyncNinja_canImmediatelyExecuteOnPrimaryExecutor: Bool { return false }
30 |
31 | func asyncNinja_execute(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
32 | async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Dispatch_Extensions.swift:37:53: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | }
34 |
35 | func asyncNinja_execute(after timeout: Double, _ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
36 | let wallDeadline = DispatchWallTime.now().adding(seconds: timeout)
37 | asyncAfter(wallDeadline: wallDeadline, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
38 | }
39 |
[50/68] Compiling AsyncNinja BaseProducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
[51/68] Compiling AsyncNinja Box.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
[52/68] Compiling AsyncNinja CachableValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
[53/68] Compiling AsyncNinja Cache.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
[54/68] Compiling AsyncNinja CancellationToken.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
[55/68] Compiling AsyncNinja Channel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
[56/68] Compiling AsyncNinja Channel_makers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:107:14: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
105 | /// primary executor is primary because it will be used
106 | /// as default value when executor argument is ommited
107 | static let primary = Executor(impl: PrimaryExecutorImpl(), nesting: 0)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 | /// shortcut to the main queue executor
[57/68] Compiling AsyncNinja appleOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/appleOS.swift:201:17: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 | /// `Sink` that refers to write-only `WKWebView.load(_:)`
199 | var loadRequest: Sink<URLRequest, Void> {
200 | func setter(webView: WKWebView, request: URLRequest) {
| `- note: add '@MainActor' to make local function 'setter(webView:request:)' part of global actor 'MainActor'
201 | 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
202 | }
203 | 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/appleOS.swift:210:17: 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
207 | @available(OSX 10.11, iOS 9, *)
208 | var loadFileURL: Sink<(url: URL, readAccessURL: URL), Void> {
209 | func setter(webView: WKWebView, values: (url: URL, readAccessURL: URL)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
210 | 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
211 | }
212 | 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/appleOS.swift:218:17: 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
215 | /// `Sink` that refers to write-only `WKWebView.loadHTMLString(_:, baseURL:)`
216 | var loadHTMLString: Sink<(string: String, baseURL: URL?), Void> {
217 | func setter(webView: WKWebView, values: (string: String, baseURL: URL?)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
218 | 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
219 | }
220 | 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/appleOS.swift:227:12: 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
225 | var loadData: Sink<(data: Data, mimeType: String, characterEncodingName: String, baseURL: URL), Void> {
226 | return sink {
227 | $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
228 | }
229 | }
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:)")
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[58/68] Compiling AsyncNinja appleOS_CoreData.swift
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/appleOS.swift:201:17: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 | /// `Sink` that refers to write-only `WKWebView.load(_:)`
199 | var loadRequest: Sink<URLRequest, Void> {
200 | func setter(webView: WKWebView, request: URLRequest) {
| `- note: add '@MainActor' to make local function 'setter(webView:request:)' part of global actor 'MainActor'
201 | 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
202 | }
203 | 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/appleOS.swift:210:17: 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
207 | @available(OSX 10.11, iOS 9, *)
208 | var loadFileURL: Sink<(url: URL, readAccessURL: URL), Void> {
209 | func setter(webView: WKWebView, values: (url: URL, readAccessURL: URL)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
210 | 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
211 | }
212 | 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/appleOS.swift:218:17: 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
215 | /// `Sink` that refers to write-only `WKWebView.loadHTMLString(_:, baseURL:)`
216 | var loadHTMLString: Sink<(string: String, baseURL: URL?), Void> {
217 | func setter(webView: WKWebView, values: (string: String, baseURL: URL?)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
218 | 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
219 | }
220 | 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/appleOS.swift:227:12: 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
225 | var loadData: Sink<(data: Data, mimeType: String, characterEncodingName: String, baseURL: URL), Void> {
226 | return sink {
227 | $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
228 | }
229 | }
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:)")
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[59/68] Compiling AsyncNinja appleOS_ExecutionContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/appleOS.swift:201:17: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 | /// `Sink` that refers to write-only `WKWebView.load(_:)`
199 | var loadRequest: Sink<URLRequest, Void> {
200 | func setter(webView: WKWebView, request: URLRequest) {
| `- note: add '@MainActor' to make local function 'setter(webView:request:)' part of global actor 'MainActor'
201 | 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
202 | }
203 | 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/appleOS.swift:210:17: 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
207 | @available(OSX 10.11, iOS 9, *)
208 | var loadFileURL: Sink<(url: URL, readAccessURL: URL), Void> {
209 | func setter(webView: WKWebView, values: (url: URL, readAccessURL: URL)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
210 | 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
211 | }
212 | 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/appleOS.swift:218:17: 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
215 | /// `Sink` that refers to write-only `WKWebView.loadHTMLString(_:, baseURL:)`
216 | var loadHTMLString: Sink<(string: String, baseURL: URL?), Void> {
217 | func setter(webView: WKWebView, values: (string: String, baseURL: URL?)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
218 | 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
219 | }
220 | 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/appleOS.swift:227:12: 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
225 | var loadData: Sink<(data: Data, mimeType: String, characterEncodingName: String, baseURL: URL), Void> {
226 | return sink {
227 | $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
228 | }
229 | }
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:)")
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[60/68] Compiling AsyncNinja appleOS_Notifications.swift
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/appleOS.swift:201:17: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 | /// `Sink` that refers to write-only `WKWebView.load(_:)`
199 | var loadRequest: Sink<URLRequest, Void> {
200 | func setter(webView: WKWebView, request: URLRequest) {
| `- note: add '@MainActor' to make local function 'setter(webView:request:)' part of global actor 'MainActor'
201 | 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
202 | }
203 | 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/appleOS.swift:210:17: 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
207 | @available(OSX 10.11, iOS 9, *)
208 | var loadFileURL: Sink<(url: URL, readAccessURL: URL), Void> {
209 | func setter(webView: WKWebView, values: (url: URL, readAccessURL: URL)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
210 | 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
211 | }
212 | 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/appleOS.swift:218:17: 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
215 | /// `Sink` that refers to write-only `WKWebView.loadHTMLString(_:, baseURL:)`
216 | var loadHTMLString: Sink<(string: String, baseURL: URL?), Void> {
217 | func setter(webView: WKWebView, values: (string: String, baseURL: URL?)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
218 | 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
219 | }
220 | 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/appleOS.swift:227:12: 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
225 | var loadData: Sink<(data: Data, mimeType: String, characterEncodingName: String, baseURL: URL), Void> {
226 | return sink {
227 | $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
228 | }
229 | }
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:)")
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[61/68] Compiling AsyncNinja appleOS_Observation.swift
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/appleOS.swift:201:17: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 | /// `Sink` that refers to write-only `WKWebView.load(_:)`
199 | var loadRequest: Sink<URLRequest, Void> {
200 | func setter(webView: WKWebView, request: URLRequest) {
| `- note: add '@MainActor' to make local function 'setter(webView:request:)' part of global actor 'MainActor'
201 | 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
202 | }
203 | 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/appleOS.swift:210:17: 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
207 | @available(OSX 10.11, iOS 9, *)
208 | var loadFileURL: Sink<(url: URL, readAccessURL: URL), Void> {
209 | func setter(webView: WKWebView, values: (url: URL, readAccessURL: URL)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
210 | 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
211 | }
212 | 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/appleOS.swift:218:17: 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
215 | /// `Sink` that refers to write-only `WKWebView.loadHTMLString(_:, baseURL:)`
216 | var loadHTMLString: Sink<(string: String, baseURL: URL?), Void> {
217 | func setter(webView: WKWebView, values: (string: String, baseURL: URL?)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
218 | 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
219 | }
220 | 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/appleOS.swift:227:12: 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
225 | var loadData: Sink<(data: Data, mimeType: String, characterEncodingName: String, baseURL: URL), Void> {
226 | return sink {
227 | $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
228 | }
229 | }
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:)")
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[62/68] Compiling AsyncNinja appleOS_ReactiveProperties.swift
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/appleOS.swift:201:17: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 | /// `Sink` that refers to write-only `WKWebView.load(_:)`
199 | var loadRequest: Sink<URLRequest, Void> {
200 | func setter(webView: WKWebView, request: URLRequest) {
| `- note: add '@MainActor' to make local function 'setter(webView:request:)' part of global actor 'MainActor'
201 | 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
202 | }
203 | 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/appleOS.swift:210:17: 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
207 | @available(OSX 10.11, iOS 9, *)
208 | var loadFileURL: Sink<(url: URL, readAccessURL: URL), Void> {
209 | func setter(webView: WKWebView, values: (url: URL, readAccessURL: URL)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
210 | 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
211 | }
212 | 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/appleOS.swift:218:17: 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
215 | /// `Sink` that refers to write-only `WKWebView.loadHTMLString(_:, baseURL:)`
216 | var loadHTMLString: Sink<(string: String, baseURL: URL?), Void> {
217 | func setter(webView: WKWebView, values: (string: String, baseURL: URL?)) {
| `- note: add '@MainActor' to make local function 'setter(webView:values:)' part of global actor 'MainActor'
218 | 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
219 | }
220 | 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/appleOS.swift:227:12: 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
225 | var loadData: Sink<(data: Data, mimeType: String, characterEncodingName: String, baseURL: URL), Void> {
226 | return sink {
227 | $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
228 | }
229 | }
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:)")
/Users/admin/builder/spi-builder-workspace/Sources/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/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/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
[63/68] Compiling AsyncNinja appleOS_Retainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/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/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/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/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/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/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/macOS.swift:82:36: 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/macOS.swift:106: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
104 | /// `ProducerProxy` that refers to read-write property `NSControl.objectValue`
105 | var objectValue: ProducerProxy<Any?, Void> {
106 | 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
107 | }
108 |
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/macOS.swift:111: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
109 | /// `ProducerProxy` that refers to read-write property `NSControl.stringValue`
110 | var stringValue: ProducerProxy<String?, Void> {
111 | 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
112 | }
113 |
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/macOS.swift:116: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
114 | /// `ProducerProxy` that refers to read-write property `NSControl.attributedStringValue`
115 | var attributedStringValue: ProducerProxy<NSAttributedString?, Void> {
116 | 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
117 | }
118 |
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/macOS.swift:122: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
120 | var integerValue: ProducerProxy<Int?, Void> {
121 | return updatable(forBindingName: .value,
122 | 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
123 | transformer: { ($0 as? NSNumber)?.intValue ?? ($0 as? Int) },
124 | 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/macOS.swift:130: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
128 | var floatValue: ProducerProxy<Float?, Void> {
129 | return updatable(forBindingName: .value,
130 | 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
131 | transformer: { ($0 as? NSNumber)?.floatValue ?? ($0 as? Float) },
132 | 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/macOS.swift:138: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
136 | var doubleValue: ProducerProxy<Double?, Void> {
137 | return updatable(forBindingName: .value,
138 | 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
139 | transformer: { ($0 as? NSNumber)?.doubleValue ?? ($0 as? Double) },
140 | 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
[64/68] Compiling AsyncNinja appleOS_URLSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/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/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/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/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/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/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/macOS.swift:82:36: 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/macOS.swift:106: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
104 | /// `ProducerProxy` that refers to read-write property `NSControl.objectValue`
105 | var objectValue: ProducerProxy<Any?, Void> {
106 | 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
107 | }
108 |
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/macOS.swift:111: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
109 | /// `ProducerProxy` that refers to read-write property `NSControl.stringValue`
110 | var stringValue: ProducerProxy<String?, Void> {
111 | 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
112 | }
113 |
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/macOS.swift:116: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
114 | /// `ProducerProxy` that refers to read-write property `NSControl.attributedStringValue`
115 | var attributedStringValue: ProducerProxy<NSAttributedString?, Void> {
116 | 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
117 | }
118 |
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/macOS.swift:122: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
120 | var integerValue: ProducerProxy<Int?, Void> {
121 | return updatable(forBindingName: .value,
122 | 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
123 | transformer: { ($0 as? NSNumber)?.intValue ?? ($0 as? Int) },
124 | 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/macOS.swift:130: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
128 | var floatValue: ProducerProxy<Float?, Void> {
129 | return updatable(forBindingName: .value,
130 | 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
131 | transformer: { ($0 as? NSNumber)?.floatValue ?? ($0 as? Float) },
132 | 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/macOS.swift:138: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
136 | var doubleValue: ProducerProxy<Double?, Void> {
137 | return updatable(forBindingName: .value,
138 | 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
139 | transformer: { ($0 as? NSNumber)?.doubleValue ?? ($0 as? Double) },
140 | 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
[65/68] Compiling AsyncNinja iOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/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/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/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/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/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/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/macOS.swift:82:36: 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/macOS.swift:106: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
104 | /// `ProducerProxy` that refers to read-write property `NSControl.objectValue`
105 | var objectValue: ProducerProxy<Any?, Void> {
106 | 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
107 | }
108 |
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/macOS.swift:111: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
109 | /// `ProducerProxy` that refers to read-write property `NSControl.stringValue`
110 | var stringValue: ProducerProxy<String?, Void> {
111 | 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
112 | }
113 |
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/macOS.swift:116: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
114 | /// `ProducerProxy` that refers to read-write property `NSControl.attributedStringValue`
115 | var attributedStringValue: ProducerProxy<NSAttributedString?, Void> {
116 | 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
117 | }
118 |
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/macOS.swift:122: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
120 | var integerValue: ProducerProxy<Int?, Void> {
121 | return updatable(forBindingName: .value,
122 | 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
123 | transformer: { ($0 as? NSNumber)?.intValue ?? ($0 as? Int) },
124 | 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/macOS.swift:130: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
128 | var floatValue: ProducerProxy<Float?, Void> {
129 | return updatable(forBindingName: .value,
130 | 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
131 | transformer: { ($0 as? NSNumber)?.floatValue ?? ($0 as? Float) },
132 | 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/macOS.swift:138: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
136 | var doubleValue: ProducerProxy<Double?, Void> {
137 | return updatable(forBindingName: .value,
138 | 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
139 | transformer: { ($0 as? NSNumber)?.doubleValue ?? ($0 as? Double) },
140 | 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
[66/68] Compiling AsyncNinja macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/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/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/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/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/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/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/macOS.swift:82:36: 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/macOS.swift:106: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
104 | /// `ProducerProxy` that refers to read-write property `NSControl.objectValue`
105 | var objectValue: ProducerProxy<Any?, Void> {
106 | 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
107 | }
108 |
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/macOS.swift:111: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
109 | /// `ProducerProxy` that refers to read-write property `NSControl.stringValue`
110 | var stringValue: ProducerProxy<String?, Void> {
111 | 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
112 | }
113 |
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/macOS.swift:116: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
114 | /// `ProducerProxy` that refers to read-write property `NSControl.attributedStringValue`
115 | var attributedStringValue: ProducerProxy<NSAttributedString?, Void> {
116 | 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
117 | }
118 |
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/macOS.swift:122: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
120 | var integerValue: ProducerProxy<Int?, Void> {
121 | return updatable(forBindingName: .value,
122 | 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
123 | transformer: { ($0 as? NSNumber)?.intValue ?? ($0 as? Int) },
124 | 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/macOS.swift:130: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
128 | var floatValue: ProducerProxy<Float?, Void> {
129 | return updatable(forBindingName: .value,
130 | 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
131 | transformer: { ($0 as? NSNumber)?.floatValue ?? ($0 as? Float) },
132 | 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/macOS.swift:138: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
136 | var doubleValue: ProducerProxy<Double?, Void> {
137 | return updatable(forBindingName: .value,
138 | 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
139 | transformer: { ($0 as? NSNumber)?.doubleValue ?? ($0 as? Double) },
140 | 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
[67/68] Compiling AsyncNinja macOS_BindingsProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/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/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/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/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/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/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/macOS.swift:82:36: 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/macOS.swift:106: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
104 | /// `ProducerProxy` that refers to read-write property `NSControl.objectValue`
105 | var objectValue: ProducerProxy<Any?, Void> {
106 | 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
107 | }
108 |
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/macOS.swift:111: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
109 | /// `ProducerProxy` that refers to read-write property `NSControl.stringValue`
110 | var stringValue: ProducerProxy<String?, Void> {
111 | 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
112 | }
113 |
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/macOS.swift:116: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
114 | /// `ProducerProxy` that refers to read-write property `NSControl.attributedStringValue`
115 | var attributedStringValue: ProducerProxy<NSAttributedString?, Void> {
116 | 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
117 | }
118 |
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/macOS.swift:122: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
120 | var integerValue: ProducerProxy<Int?, Void> {
121 | return updatable(forBindingName: .value,
122 | 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
123 | transformer: { ($0 as? NSNumber)?.intValue ?? ($0 as? Int) },
124 | 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/macOS.swift:130: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
128 | var floatValue: ProducerProxy<Float?, Void> {
129 | return updatable(forBindingName: .value,
130 | 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
131 | transformer: { ($0 as? NSNumber)?.floatValue ?? ($0 as? Float) },
132 | 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/macOS.swift:138: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
136 | var doubleValue: ProducerProxy<Double?, Void> {
137 | return updatable(forBindingName: .value,
138 | 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
139 | transformer: { ($0 as? NSNumber)?.doubleValue ?? ($0 as? Double) },
140 | 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
[68/68] Compiling AsyncNinja watchOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:134:14: warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
132 | // Test: ExecutorTests.testImmediate
133 | /// executes block immediately. Not suitable for long running calculations
134 | static let immediate = Executor(impl: ImmediateExecutorImpl(), nesting: 0)
| |- warning: static property 'immediate' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'immediate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 |
136 | /// initializes executor based on specified queue
/Users/admin/builder/spi-builder-workspace/Sources/Executor.swift:110:14: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Executor encapsulates asynchrounous way of execution escaped block.
26 | public struct Executor {
| `- note: consider making struct 'Executor' conform to the 'Sendable' protocol
27 | /// Handler that encapsulates asynchrounous way of execution escaped block
28 | public typealias Handler = (@escaping () -> Void) -> Void
:
108 |
109 | /// shortcut to the main queue executor
110 | static let main = Executor(impl: MainExecutorImpl(), nesting: 0)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | // Test: ExecutorTests.testUserInteractive
/Users/admin/builder/spi-builder-workspace/Sources/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/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/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/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/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/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/macOS.swift:82:36: 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/macOS.swift:106: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
104 | /// `ProducerProxy` that refers to read-write property `NSControl.objectValue`
105 | var objectValue: ProducerProxy<Any?, Void> {
106 | 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
107 | }
108 |
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/macOS.swift:111: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
109 | /// `ProducerProxy` that refers to read-write property `NSControl.stringValue`
110 | var stringValue: ProducerProxy<String?, Void> {
111 | 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
112 | }
113 |
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/macOS.swift:116: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
114 | /// `ProducerProxy` that refers to read-write property `NSControl.attributedStringValue`
115 | var attributedStringValue: ProducerProxy<NSAttributedString?, Void> {
116 | 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
117 | }
118 |
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/macOS.swift:122: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
120 | var integerValue: ProducerProxy<Int?, Void> {
121 | return updatable(forBindingName: .value,
122 | 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
123 | transformer: { ($0 as? NSNumber)?.intValue ?? ($0 as? Int) },
124 | 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/macOS.swift:130: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
128 | var floatValue: ProducerProxy<Float?, Void> {
129 | return updatable(forBindingName: .value,
130 | 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
131 | transformer: { ($0 as? NSNumber)?.floatValue ?? ($0 as? Float) },
132 | 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/macOS.swift:138: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
136 | var doubleValue: ProducerProxy<Double?, Void> {
137 | return updatable(forBindingName: .value,
138 | 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
139 | transformer: { ($0 as? NSNumber)?.doubleValue ?? ($0 as? Double) },
140 | 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
Build complete! (17.29s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "AsyncNinja",
"name" : "AsyncNinja",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
],
"targets" : [
{
"c99name" : "AsyncNinjaTests",
"module_type" : "SwiftTarget",
"name" : "AsyncNinjaTests",
"path" : "Tests/AsyncNinjaTests",
"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",
"Fixtures.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",
"appleOSTests.swift",
"iOSTests.swift",
"macOSTests.swift"
],
"target_dependencies" : [
"AsyncNinja"
],
"type" : "test"
},
{
"c99name" : "AsyncNinja",
"module_type" : "SwiftTarget",
"name" : "AsyncNinja",
"path" : "Sources",
"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_Debounce.swift",
"EventSource_FlatMapFutures.swift",
"EventSource_Implementation.swift",
"EventSource_Map.swift",
"EventSource_Merge2.swift",
"EventSource_Merge2Unrelated.swift",
"EventSource_Sample.swift",
"EventSource_Scan.swift",
"EventSource_ToFuture.swift",
"EventSource_Transform.swift",
"EventSource_Zip2.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",
"Promise.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_ReactiveProperties.swift",
"appleOS_Retainer.swift",
"appleOS_URLSession.swift",
"iOS.swift",
"macOS.swift",
"macOS_BindingsProxy.swift",
"watchOS.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Done.