This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of BrightFutures with Swift 6.0 for Linux.

Swift 6 data race errors: 7

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Thomvis/BrightFutures.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/Thomvis/BrightFutures
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a4b4cb2 Update README.md
Cloned https://github.com/Thomvis/BrightFutures.git
Revision (git rev-parse @):
a4b4cb27ef1525739988184dac73a1a462f9d62d
SUCCESS checkout https://github.com/Thomvis/BrightFutures.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Thomvis/BrightFutures.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/18] Emitting module BrightFutures
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:35:12: warning: let 'immediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Runs immediately if on the main thread, otherwise asynchronously on the main thread
35 | public let immediateOnMainExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateOnMainExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |     if Thread.isMainThread {
37 |         task()
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:39:43: warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
33 |
34 | /// Runs immediately if on the main thread, otherwise asynchronously on the main thread
35 | public let immediateOnMainExecutionContext: ExecutionContext = { task in
   |                                                                  `- note: parameter 'task' is implicitly non-sendable
36 |     if Thread.isMainThread {
37 |         task()
38 |     } else {
39 |         DispatchQueue.main.async(execute: task)
   |                                           `- warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
40 |     }
41 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:44:12: warning: let 'maxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | /// From https://github.com/BoltsFramework/Bolts-Swift/blob/5fe4df7acb384a93ad93e8595d42e2b431fdc266/Sources/BoltsSwift/Executor.swift#L56
44 | public let maxStackDepthExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'maxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'maxStackDepthExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |     struct Static {
46 |         static let taskDepthKey = "nl.thomvis.BrightFutures"
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:60:47: warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
42 |
43 | /// From https://github.com/BoltsFramework/Bolts-Swift/blob/5fe4df7acb384a93ad93e8595d42e2b431fdc266/Sources/BoltsSwift/Executor.swift#L56
44 | public let maxStackDepthExecutionContext: ExecutionContext = { task in
   |                                                                `- note: parameter 'task' is implicitly non-sendable
45 |     struct Static {
46 |         static let taskDepthKey = "nl.thomvis.BrightFutures"
   :
58 |
59 |     if previousDepth > Static.maxTaskDepth {
60 |         DispatchQueue.global().async(execute: task)
   |                                               `- warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
61 |     } else {
62 |         localThreadDictionary[Static.taskDepthKey] = previousDepth + 1
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:77:12: warning: let 'ImmediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
75 | // Deprecations
76 | @available(*, deprecated, renamed: "immediateExecutionContext")
77 | public let ImmediateExecutionContext = immediateExecutionContext
   |            |- warning: let 'ImmediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'ImmediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | @available(*, deprecated, renamed: "immediateOnMainExecutionContext")
79 | public let ImmediateOnMainExecutionContext = immediateOnMainExecutionContext
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:79:12: warning: let 'ImmediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
77 | public let ImmediateExecutionContext = immediateExecutionContext
78 | @available(*, deprecated, renamed: "immediateOnMainExecutionContext")
79 | public let ImmediateOnMainExecutionContext = immediateOnMainExecutionContext
   |            |- warning: let 'ImmediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'ImmediateOnMainExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | @available(*, deprecated, renamed: "maxStackDepthExecutionContext")
81 | public let MaxStackDepthExecutionContext = maxStackDepthExecutionContext
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:81:12: warning: let 'MaxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
79 | public let ImmediateOnMainExecutionContext = immediateOnMainExecutionContext
80 | @available(*, deprecated, renamed: "maxStackDepthExecutionContext")
81 | public let MaxStackDepthExecutionContext = maxStackDepthExecutionContext
   |            |- warning: let 'MaxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'MaxStackDepthExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | @available(*, deprecated, renamed: "defaultContext")
83 | public let DefaultThreadingModel = defaultContext
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:83:12: warning: let 'DefaultThreadingModel' is not concurrency-safe because non-'Sendable' type '() -> ExecutionContext' (aka '() -> (@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
81 | public let MaxStackDepthExecutionContext = maxStackDepthExecutionContext
82 | @available(*, deprecated, renamed: "defaultContext")
83 | public let DefaultThreadingModel = defaultContext
   |            |- warning: let 'DefaultThreadingModel' is not concurrency-safe because non-'Sendable' type '() -> ExecutionContext' (aka '() -> (@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'DefaultThreadingModel' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 |
[4/20] Compiling BrightFutures AsyncType.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
/host/spi-builder-workspace/Sources/BrightFutures/AsyncType.swift:76:21: warning: capture of 'complete' with non-sendable type '(Self.Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |             onComplete(immediateExecutionContext) { result in
 75 |                 queue.asyncAfter(deadline: DispatchTime.now() + interval) {
 76 |                     complete(result)
    |                     |- warning: capture of 'complete' with non-sendable type '(Self.Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 77 |                 }
 78 |             }
/host/spi-builder-workspace/Sources/BrightFutures/AsyncType.swift:76:30: warning: capture of 'result' with non-sendable type 'Self.Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |             onComplete(immediateExecutionContext) { result in
 75 |                 queue.asyncAfter(deadline: DispatchTime.now() + interval) {
 76 |                     complete(result)
    |                              `- warning: capture of 'result' with non-sendable type 'Self.Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |                 }
 78 |             }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:14:33: warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
11 | public extension DispatchQueue {
12 |     var context: ExecutionContext {
13 |         return { task in
   |                  `- note: parameter 'task' is implicitly non-sendable
14 |             self.async(execute: task)
   |                                 `- warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
15 |         }
16 |     }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:21:17: warning: capture of 'completion' with non-sendable type '(Result<T, Never>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |         return Future { completion in
20 |             async {
21 |                 completion(.success(execute()))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<T, Never>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
22 |             }
23 |         }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:21:37: warning: capture of 'execute' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |         return Future { completion in
20 |             async {
21 |                 completion(.success(execute()))
   |                                     |- warning: capture of 'execute' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
22 |             }
23 |         }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:29:17: warning: capture of 'completion' with non-sendable type '(Result<T, E>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |         return Future { completion in
28 |             async {
29 |                 completion(execute())
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<T, E>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
30 |             }
31 |         }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:29:28: warning: capture of 'execute' with non-sendable type '() -> Result<T, E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |         return Future { completion in
28 |             async {
29 |                 completion(execute())
   |                            |- warning: capture of 'execute' with non-sendable type '() -> Result<T, E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
30 |             }
31 |         }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:37:17: warning: capture of 'completion' with non-sendable type '(Result<T, Never>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 |         return Future { completion in
36 |             asyncAfter(deadline: deadline) {
37 |                 completion(.success(execute()))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<T, Never>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
38 |             }
39 |         }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:37:37: warning: capture of 'execute' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 |         return Future { completion in
36 |             asyncAfter(deadline: deadline) {
37 |                 completion(.success(execute()))
   |                                     |- warning: capture of 'execute' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
38 |             }
39 |         }
[5/20] Compiling BrightFutures Dispatch+BrightFutures.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
/host/spi-builder-workspace/Sources/BrightFutures/AsyncType.swift:76:21: warning: capture of 'complete' with non-sendable type '(Self.Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |             onComplete(immediateExecutionContext) { result in
 75 |                 queue.asyncAfter(deadline: DispatchTime.now() + interval) {
 76 |                     complete(result)
    |                     |- warning: capture of 'complete' with non-sendable type '(Self.Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 77 |                 }
 78 |             }
/host/spi-builder-workspace/Sources/BrightFutures/AsyncType.swift:76:30: warning: capture of 'result' with non-sendable type 'Self.Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |             onComplete(immediateExecutionContext) { result in
 75 |                 queue.asyncAfter(deadline: DispatchTime.now() + interval) {
 76 |                     complete(result)
    |                              `- warning: capture of 'result' with non-sendable type 'Self.Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |                 }
 78 |             }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:14:33: warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
11 | public extension DispatchQueue {
12 |     var context: ExecutionContext {
13 |         return { task in
   |                  `- note: parameter 'task' is implicitly non-sendable
14 |             self.async(execute: task)
   |                                 `- warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
15 |         }
16 |     }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:21:17: warning: capture of 'completion' with non-sendable type '(Result<T, Never>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |         return Future { completion in
20 |             async {
21 |                 completion(.success(execute()))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<T, Never>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
22 |             }
23 |         }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:21:37: warning: capture of 'execute' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |         return Future { completion in
20 |             async {
21 |                 completion(.success(execute()))
   |                                     |- warning: capture of 'execute' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
22 |             }
23 |         }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:29:17: warning: capture of 'completion' with non-sendable type '(Result<T, E>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |         return Future { completion in
28 |             async {
29 |                 completion(execute())
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<T, E>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
30 |             }
31 |         }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:29:28: warning: capture of 'execute' with non-sendable type '() -> Result<T, E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |         return Future { completion in
28 |             async {
29 |                 completion(execute())
   |                            |- warning: capture of 'execute' with non-sendable type '() -> Result<T, E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
30 |             }
31 |         }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:37:17: warning: capture of 'completion' with non-sendable type '(Result<T, Never>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 |         return Future { completion in
36 |             asyncAfter(deadline: deadline) {
37 |                 completion(.success(execute()))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<T, Never>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
38 |             }
39 |         }
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:37:37: warning: capture of 'execute' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 |         return Future { completion in
36 |             asyncAfter(deadline: deadline) {
37 |                 completion(.success(execute()))
   |                                     |- warning: capture of 'execute' with non-sendable type '() -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
38 |             }
39 |         }
[6/20] Compiling BrightFutures Result+BrightFutures.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
[7/20] Compiling BrightFutures ResultProtocol.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
[8/20] Compiling BrightFutures MutableAsyncType+ResultType.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
[9/20] Compiling BrightFutures MutableAsyncType.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
[10/20] Compiling BrightFutures NSOperationQueue+BrightFutures.swift
[11/20] Compiling BrightFutures Promise.swift
[12/20] Compiling BrightFutures Future.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
[13/20] Compiling BrightFutures InvalidationToken.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
[14/20] Compiling BrightFutures Errors.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:35:12: warning: let 'immediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Runs immediately if on the main thread, otherwise asynchronously on the main thread
35 | public let immediateOnMainExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateOnMainExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |     if Thread.isMainThread {
37 |         task()
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:39:43: warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
33 |
34 | /// Runs immediately if on the main thread, otherwise asynchronously on the main thread
35 | public let immediateOnMainExecutionContext: ExecutionContext = { task in
   |                                                                  `- note: parameter 'task' is implicitly non-sendable
36 |     if Thread.isMainThread {
37 |         task()
38 |     } else {
39 |         DispatchQueue.main.async(execute: task)
   |                                           `- warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
40 |     }
41 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:44:12: warning: let 'maxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | /// From https://github.com/BoltsFramework/Bolts-Swift/blob/5fe4df7acb384a93ad93e8595d42e2b431fdc266/Sources/BoltsSwift/Executor.swift#L56
44 | public let maxStackDepthExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'maxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'maxStackDepthExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |     struct Static {
46 |         static let taskDepthKey = "nl.thomvis.BrightFutures"
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:60:47: warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
42 |
43 | /// From https://github.com/BoltsFramework/Bolts-Swift/blob/5fe4df7acb384a93ad93e8595d42e2b431fdc266/Sources/BoltsSwift/Executor.swift#L56
44 | public let maxStackDepthExecutionContext: ExecutionContext = { task in
   |                                                                `- note: parameter 'task' is implicitly non-sendable
45 |     struct Static {
46 |         static let taskDepthKey = "nl.thomvis.BrightFutures"
   :
58 |
59 |     if previousDepth > Static.maxTaskDepth {
60 |         DispatchQueue.global().async(execute: task)
   |                                               `- warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
61 |     } else {
62 |         localThreadDictionary[Static.taskDepthKey] = previousDepth + 1
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:77:12: warning: let 'ImmediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
75 | // Deprecations
76 | @available(*, deprecated, renamed: "immediateExecutionContext")
77 | public let ImmediateExecutionContext = immediateExecutionContext
   |            |- warning: let 'ImmediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'ImmediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | @available(*, deprecated, renamed: "immediateOnMainExecutionContext")
79 | public let ImmediateOnMainExecutionContext = immediateOnMainExecutionContext
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:79:12: warning: let 'ImmediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
77 | public let ImmediateExecutionContext = immediateExecutionContext
78 | @available(*, deprecated, renamed: "immediateOnMainExecutionContext")
79 | public let ImmediateOnMainExecutionContext = immediateOnMainExecutionContext
   |            |- warning: let 'ImmediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'ImmediateOnMainExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | @available(*, deprecated, renamed: "maxStackDepthExecutionContext")
81 | public let MaxStackDepthExecutionContext = maxStackDepthExecutionContext
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:81:12: warning: let 'MaxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
79 | public let ImmediateOnMainExecutionContext = immediateOnMainExecutionContext
80 | @available(*, deprecated, renamed: "maxStackDepthExecutionContext")
81 | public let MaxStackDepthExecutionContext = maxStackDepthExecutionContext
   |            |- warning: let 'MaxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'MaxStackDepthExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | @available(*, deprecated, renamed: "defaultContext")
83 | public let DefaultThreadingModel = defaultContext
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:83:12: warning: let 'DefaultThreadingModel' is not concurrency-safe because non-'Sendable' type '() -> ExecutionContext' (aka '() -> (@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
81 | public let MaxStackDepthExecutionContext = maxStackDepthExecutionContext
82 | @available(*, deprecated, renamed: "defaultContext")
83 | public let DefaultThreadingModel = defaultContext
   |            |- warning: let 'DefaultThreadingModel' is not concurrency-safe because non-'Sendable' type '() -> ExecutionContext' (aka '() -> (@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'DefaultThreadingModel' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 |
[15/20] Compiling BrightFutures ExecutionContext.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:35:12: warning: let 'immediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Runs immediately if on the main thread, otherwise asynchronously on the main thread
35 | public let immediateOnMainExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateOnMainExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |     if Thread.isMainThread {
37 |         task()
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:39:43: warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
33 |
34 | /// Runs immediately if on the main thread, otherwise asynchronously on the main thread
35 | public let immediateOnMainExecutionContext: ExecutionContext = { task in
   |                                                                  `- note: parameter 'task' is implicitly non-sendable
36 |     if Thread.isMainThread {
37 |         task()
38 |     } else {
39 |         DispatchQueue.main.async(execute: task)
   |                                           `- warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
40 |     }
41 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:44:12: warning: let 'maxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | /// From https://github.com/BoltsFramework/Bolts-Swift/blob/5fe4df7acb384a93ad93e8595d42e2b431fdc266/Sources/BoltsSwift/Executor.swift#L56
44 | public let maxStackDepthExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'maxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'maxStackDepthExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |     struct Static {
46 |         static let taskDepthKey = "nl.thomvis.BrightFutures"
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:60:47: warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
42 |
43 | /// From https://github.com/BoltsFramework/Bolts-Swift/blob/5fe4df7acb384a93ad93e8595d42e2b431fdc266/Sources/BoltsSwift/Executor.swift#L56
44 | public let maxStackDepthExecutionContext: ExecutionContext = { task in
   |                                                                `- note: parameter 'task' is implicitly non-sendable
45 |     struct Static {
46 |         static let taskDepthKey = "nl.thomvis.BrightFutures"
   :
58 |
59 |     if previousDepth > Static.maxTaskDepth {
60 |         DispatchQueue.global().async(execute: task)
   |                                               `- warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
61 |     } else {
62 |         localThreadDictionary[Static.taskDepthKey] = previousDepth + 1
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:77:12: warning: let 'ImmediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
75 | // Deprecations
76 | @available(*, deprecated, renamed: "immediateExecutionContext")
77 | public let ImmediateExecutionContext = immediateExecutionContext
   |            |- warning: let 'ImmediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'ImmediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | @available(*, deprecated, renamed: "immediateOnMainExecutionContext")
79 | public let ImmediateOnMainExecutionContext = immediateOnMainExecutionContext
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:79:12: warning: let 'ImmediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
77 | public let ImmediateExecutionContext = immediateExecutionContext
78 | @available(*, deprecated, renamed: "immediateOnMainExecutionContext")
79 | public let ImmediateOnMainExecutionContext = immediateOnMainExecutionContext
   |            |- warning: let 'ImmediateOnMainExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'ImmediateOnMainExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | @available(*, deprecated, renamed: "maxStackDepthExecutionContext")
81 | public let MaxStackDepthExecutionContext = maxStackDepthExecutionContext
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:81:12: warning: let 'MaxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
79 | public let ImmediateOnMainExecutionContext = immediateOnMainExecutionContext
80 | @available(*, deprecated, renamed: "maxStackDepthExecutionContext")
81 | public let MaxStackDepthExecutionContext = maxStackDepthExecutionContext
   |            |- warning: let 'MaxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'MaxStackDepthExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | @available(*, deprecated, renamed: "defaultContext")
83 | public let DefaultThreadingModel = defaultContext
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:83:12: warning: let 'DefaultThreadingModel' is not concurrency-safe because non-'Sendable' type '() -> ExecutionContext' (aka '() -> (@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
81 | public let MaxStackDepthExecutionContext = maxStackDepthExecutionContext
82 | @available(*, deprecated, renamed: "defaultContext")
83 | public let DefaultThreadingModel = defaultContext
   |            |- warning: let 'DefaultThreadingModel' is not concurrency-safe because non-'Sendable' type '() -> ExecutionContext' (aka '() -> (@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'DefaultThreadingModel' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 |
[16/20] Compiling BrightFutures SequenceType+BrightFutures.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:44:12: warning: let 'maxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | /// From https://github.com/BoltsFramework/Bolts-Swift/blob/5fe4df7acb384a93ad93e8595d42e2b431fdc266/Sources/BoltsSwift/Executor.swift#L56
44 | public let maxStackDepthExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'maxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'maxStackDepthExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |     struct Static {
46 |         static let taskDepthKey = "nl.thomvis.BrightFutures"
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
[17/20] Compiling BrightFutures SwiftConcurrency+BrightFutures.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:44:12: warning: let 'maxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | /// From https://github.com/BoltsFramework/Bolts-Swift/blob/5fe4df7acb384a93ad93e8595d42e2b431fdc266/Sources/BoltsSwift/Executor.swift#L56
44 | public let maxStackDepthExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'maxStackDepthExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'maxStackDepthExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |     struct Static {
46 |         static let taskDepthKey = "nl.thomvis.BrightFutures"
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
[18/20] Compiling BrightFutures Async.swift
/host/spi-builder-workspace/Sources/BrightFutures/Async.swift:63:13: warning: capture of 'self' with non-sendable type 'Async<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 | /// This class is often not used directly. Instead, its subclass
 20 | /// `Future` is used.
 21 | open class Async<Value>: AsyncType {
    |            `- note: generic class 'Async' does not conform to the 'Sendable' protocol
 22 |
 23 |     typealias CompletionCallback = (Value) -> Void
    :
 61 |     public required init(result: Value, delay: DispatchTimeInterval) {
 62 |         DispatchQueue.global().asyncAfter(deadline: DispatchTime.now() + delay) {
 63 |             self.complete(result)
    |             `- warning: capture of 'self' with non-sendable type 'Async<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 64 |         }
 65 |     }
/host/spi-builder-workspace/Sources/BrightFutures/Async.swift:63:27: warning: capture of 'result' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 | /// This class is often not used directly. Instead, its subclass
 20 | /// `Future` is used.
 21 | open class Async<Value>: AsyncType {
    |                  `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 22 |
 23 |     typealias CompletionCallback = (Value) -> Void
    :
 61 |     public required init(result: Value, delay: DispatchTimeInterval) {
 62 |         DispatchQueue.global().asyncAfter(deadline: DispatchTime.now() + delay) {
 63 |             self.complete(result)
    |                           `- warning: capture of 'result' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 64 |         }
 65 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
[19/20] Compiling BrightFutures AsyncType+Debug.swift
/host/spi-builder-workspace/Sources/BrightFutures/Async.swift:63:13: warning: capture of 'self' with non-sendable type 'Async<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 | /// This class is often not used directly. Instead, its subclass
 20 | /// `Future` is used.
 21 | open class Async<Value>: AsyncType {
    |            `- note: generic class 'Async' does not conform to the 'Sendable' protocol
 22 |
 23 |     typealias CompletionCallback = (Value) -> Void
    :
 61 |     public required init(result: Value, delay: DispatchTimeInterval) {
 62 |         DispatchQueue.global().asyncAfter(deadline: DispatchTime.now() + delay) {
 63 |             self.complete(result)
    |             `- warning: capture of 'self' with non-sendable type 'Async<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 64 |         }
 65 |     }
/host/spi-builder-workspace/Sources/BrightFutures/Async.swift:63:27: warning: capture of 'result' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 | /// This class is often not used directly. Instead, its subclass
 20 | /// `Future` is used.
 21 | open class Async<Value>: AsyncType {
    |                  `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 22 |
 23 |     typealias CompletionCallback = (Value) -> Void
    :
 61 |     public required init(result: Value, delay: DispatchTimeInterval) {
 62 |         DispatchQueue.global().asyncAfter(deadline: DispatchTime.now() + delay) {
 63 |             self.complete(result)
    |                           `- warning: capture of 'result' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 64 |         }
 65 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
[20/20] Compiling BrightFutures AsyncType+ResultType.swift
/host/spi-builder-workspace/Sources/BrightFutures/Async.swift:63:13: warning: capture of 'self' with non-sendable type 'Async<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 | /// This class is often not used directly. Instead, its subclass
 20 | /// `Future` is used.
 21 | open class Async<Value>: AsyncType {
    |            `- note: generic class 'Async' does not conform to the 'Sendable' protocol
 22 |
 23 |     typealias CompletionCallback = (Value) -> Void
    :
 61 |     public required init(result: Value, delay: DispatchTimeInterval) {
 62 |         DispatchQueue.global().asyncAfter(deadline: DispatchTime.now() + delay) {
 63 |             self.complete(result)
    |             `- warning: capture of 'self' with non-sendable type 'Async<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 64 |         }
 65 |     }
/host/spi-builder-workspace/Sources/BrightFutures/Async.swift:63:27: warning: capture of 'result' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 | /// This class is often not used directly. Instead, its subclass
 20 | /// `Future` is used.
 21 | open class Async<Value>: AsyncType {
    |                  `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 22 |
 23 |     typealias CompletionCallback = (Value) -> Void
    :
 61 |     public required init(result: Value, delay: DispatchTimeInterval) {
 62 |         DispatchQueue.global().asyncAfter(deadline: DispatchTime.now() + delay) {
 63 |             self.complete(result)
    |                           `- warning: capture of 'result' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 64 |         }
 65 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:30:12: warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// Immediately executes the given task. No threading, no semaphores.
30 | public let immediateExecutionContext: ExecutionContext = { task in
   |            |- warning: let 'immediateExecutionContext' is not concurrency-safe because non-'Sendable' type 'ExecutionContext' (aka '(@escaping () -> ()) -> ()') may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'immediateExecutionContext' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     task()
32 | }
Build complete! (11.29s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BrightFutures",
  "name" : "BrightFutures",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BrightFutures",
      "targets" : [
        "BrightFutures"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BrightFuturesTests",
      "module_type" : "SwiftTarget",
      "name" : "BrightFuturesTests",
      "path" : "Tests/BrightFuturesTests",
      "sources" : [
        "BrightFuturesTests.swift",
        "ErrorsTests.swift",
        "ExecutionContextTests.swift",
        "FutureDebugTests.swift",
        "InvalidationTokenTests.swift",
        "NSOperationQueueTests.swift",
        "Number+BrightFutures.swift",
        "PromiseTests.swift",
        "QueueTests.swift",
        "ResultTests.swift",
        "SwiftConcurrencyTests.swift"
      ],
      "target_dependencies" : [
        "BrightFutures"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BrightFutures",
      "module_type" : "SwiftTarget",
      "name" : "BrightFutures",
      "path" : "Sources/BrightFutures",
      "product_memberships" : [
        "BrightFutures"
      ],
      "sources" : [
        "Async.swift",
        "AsyncType+Debug.swift",
        "AsyncType+ResultType.swift",
        "AsyncType.swift",
        "Dispatch+BrightFutures.swift",
        "Errors.swift",
        "ExecutionContext.swift",
        "Future.swift",
        "InvalidationToken.swift",
        "MutableAsyncType+ResultType.swift",
        "MutableAsyncType.swift",
        "NSOperationQueue+BrightFutures.swift",
        "Promise.swift",
        "Result+BrightFutures.swift",
        "ResultProtocol.swift",
        "SequenceType+BrightFutures.swift",
        "SwiftConcurrency+BrightFutures.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.