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, reference master (a4b4cb), with Swift 6.1 for Linux on 27 Apr 2025 01:22:37 UTC.

Swift 6 data race errors: 6

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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.1
Building package at path:  $PWD
https://github.com/Thomvis/BrightFutures.git
https://github.com/Thomvis/BrightFutures.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
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: add '@MainActor' to make let 'immediateExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'immediateOnMainExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'maxStackDepthExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'ImmediateExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'ImmediateOnMainExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'MaxStackDepthExecutionContext' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | @available(*, deprecated, renamed: "defaultContext")
83 | public let DefaultThreadingModel = defaultContext
[4/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: add '@MainActor' to make let 'immediateExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'immediateOnMainExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'maxStackDepthExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'ImmediateExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'ImmediateOnMainExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'MaxStackDepthExecutionContext' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | @available(*, deprecated, renamed: "defaultContext")
83 | public let DefaultThreadingModel = defaultContext
[5/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: add '@MainActor' to make let 'immediateExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'immediateOnMainExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'maxStackDepthExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'ImmediateExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'ImmediateOnMainExecutionContext' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make let 'MaxStackDepthExecutionContext' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | @available(*, deprecated, renamed: "defaultContext")
83 | public let DefaultThreadingModel = defaultContext
[6/20] Compiling BrightFutures SequenceType+BrightFutures.swift
/host/spi-builder-workspace/Sources/BrightFutures/SwiftConcurrency+BrightFutures.swift:18:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
16 |         await withCheckedContinuation { continuation in
17 |             onComplete { result in
18 |                 continuation.resume(returning: result)
   |                              |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
19 |             }
20 |         }
/host/spi-builder-workspace/Sources/BrightFutures/SwiftConcurrency+BrightFutures.swift:30:30: warning: sending value of non-Sendable type 'Result<Value.Value, Value.Error>' risks causing data races; this is an error in the Swift 6 language mode
28 |         try await withCheckedThrowingContinuation { continuation in
29 |             onComplete { result in
30 |                 continuation.resume(with: result.result)
   |                              |- warning: sending value of non-Sendable type 'Result<Value.Value, Value.Error>' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: Passing task-isolated value of non-Sendable type 'Result<Value.Value, Value.Error>' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
31 |             }
32 |         }
/host/spi-builder-workspace/Sources/BrightFutures/SwiftConcurrency+BrightFutures.swift:41:30: warning: sending value of non-Sendable type 'Result<Value.Value, Never>' risks causing data races; this is an error in the Swift 6 language mode
39 |         await withCheckedContinuation { continuation in
40 |             onComplete { result in
41 |                 continuation.resume(with: result.result)
   |                              |- warning: sending value of non-Sendable type 'Result<Value.Value, Never>' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: Passing task-isolated value of non-Sendable type 'Result<Value.Value, Never>' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
42 |             }
43 |         }
[7/20] Compiling BrightFutures SwiftConcurrency+BrightFutures.swift
/host/spi-builder-workspace/Sources/BrightFutures/SwiftConcurrency+BrightFutures.swift:18:30: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
16 |         await withCheckedContinuation { continuation in
17 |             onComplete { result in
18 |                 continuation.resume(returning: result)
   |                              |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
19 |             }
20 |         }
/host/spi-builder-workspace/Sources/BrightFutures/SwiftConcurrency+BrightFutures.swift:30:30: warning: sending value of non-Sendable type 'Result<Value.Value, Value.Error>' risks causing data races; this is an error in the Swift 6 language mode
28 |         try await withCheckedThrowingContinuation { continuation in
29 |             onComplete { result in
30 |                 continuation.resume(with: result.result)
   |                              |- warning: sending value of non-Sendable type 'Result<Value.Value, Value.Error>' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: Passing task-isolated value of non-Sendable type 'Result<Value.Value, Value.Error>' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
31 |             }
32 |         }
/host/spi-builder-workspace/Sources/BrightFutures/SwiftConcurrency+BrightFutures.swift:41:30: warning: sending value of non-Sendable type 'Result<Value.Value, Never>' risks causing data races; this is an error in the Swift 6 language mode
39 |         await withCheckedContinuation { continuation in
40 |             onComplete { result in
41 |                 continuation.resume(with: result.result)
   |                              |- warning: sending value of non-Sendable type 'Result<Value.Value, Never>' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: Passing task-isolated value of non-Sendable type 'Result<Value.Value, Never>' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
42 |             }
43 |         }
[8/20] Compiling BrightFutures AsyncType.swift
/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 |         }
[9/20] Compiling BrightFutures Dispatch+BrightFutures.swift
/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 |         }
[10/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 |     }
[11/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 |     }
[12/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 |     }
[13/20] Compiling BrightFutures Future.swift
[14/20] Compiling BrightFutures InvalidationToken.swift
[15/20] Compiling BrightFutures NSOperationQueue+BrightFutures.swift
/host/spi-builder-workspace/Sources/BrightFutures/NSOperationQueue+BrightFutures.swift:16:54: warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
13 |     /// Tasks added to the execution context are executed as operations on the queue.
14 |     var context: ExecutionContext {
15 |         return { [weak self] task in
   |                              `- note: parameter 'task' is implicitly non-sendable
16 |             self?.addOperation(BlockOperation(block: task))
   |                                                      `- warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
17 |         }
18 |     }
[16/20] Compiling BrightFutures Promise.swift
/host/spi-builder-workspace/Sources/BrightFutures/NSOperationQueue+BrightFutures.swift:16:54: warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
13 |     /// Tasks added to the execution context are executed as operations on the queue.
14 |     var context: ExecutionContext {
15 |         return { [weak self] task in
   |                              `- note: parameter 'task' is implicitly non-sendable
16 |             self?.addOperation(BlockOperation(block: task))
   |                                                      `- warning: passing non-sendable parameter 'task' to function expecting a @Sendable closure
17 |         }
18 |     }
[17/20] Compiling BrightFutures MutableAsyncType+ResultType.swift
[18/20] Compiling BrightFutures MutableAsyncType.swift
[19/20] Compiling BrightFutures Result+BrightFutures.swift
[20/20] Compiling BrightFutures ResultProtocol.swift
Build complete! (8.46s)
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"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.