Build Information
Successful build of swift-concurrency-primitives, reference main (d7c711
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 22:05:26 UTC.
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Genaro-Chris/swift-concurrency-primitives.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Genaro-Chris/swift-concurrency-primitives
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d7c711d V0.1.0
Cloned https://github.com/Genaro-Chris/swift-concurrency-primitives.git
Revision (git rev-parse @):
d7c711d397f144ac4e15726b8f1775cc314d42d7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Genaro-Chris/swift-concurrency-primitives.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-concurrency-primitives",
"name": "swift-concurrency-primitives",
"url": "https://github.com/Genaro-Chris/swift-concurrency-primitives.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-concurrency-primitives",
"dependencies": [
]
}
]
}
Fetching https://github.com/Genaro-Chris/swift-concurrency-primitives.git
[8/791] Fetching swift-concurrency-primitives
Fetched https://github.com/Genaro-Chris/swift-concurrency-primitives.git from cache (0.85s)
Creating working copy for https://github.com/Genaro-Chris/swift-concurrency-primitives.git
Working copy of https://github.com/Genaro-Chris/swift-concurrency-primitives.git resolved at main (d7c711d)
warning: '.resolve-product-dependencies': dependency 'swift-concurrency-primitives' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Genaro-Chris/swift-concurrency-primitives.git
{
"dependencies" : [
],
"manifest_display_name" : "swift-concurrency-primitives",
"name" : "swift-concurrency-primitives",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "Primitives",
"targets" : [
"Primitives"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Primitives_Tests",
"module_type" : "SwiftTarget",
"name" : "Primitives-Tests",
"path" : "Tests/PrimitivesTests",
"sources" : [
"ChannelTests.swift",
"PrimitivesTests.swift",
"SynchronizationTests.swift",
"ThreadPoolTests.swift"
],
"target_dependencies" : [
"Primitives"
],
"type" : "test"
},
{
"c99name" : "Primitives",
"module_type" : "SwiftTarget",
"name" : "Primitives",
"path" : "Sources/Primitives",
"product_memberships" : [
"Primitives"
],
"sources" : [
"ArrayStorage.swift",
"Barrier.swift",
"BoundedChannel.swift",
"Buffers.swift",
"Channel.swift",
"Condition.swift",
"ConditionLock.swift",
"Latch.swift",
"Lock.swift",
"Locked.swift",
"Mutex.swift",
"Once.swift",
"OnceState.swift",
"OneShotChannel.swift",
"Operators.swift",
"Queue.swift",
"Semaphore.swift",
"SingleElementStorage.swift",
"Storage.swift",
"TaskChannel.swift",
"ThreadParker.swift",
"ThreadPool.swift",
"TimeDuration.swift",
"Timespec.swift",
"UnboundedChannel.swift",
"UnbufferedChannel.swift",
"WaitGroup.swift",
"WaitType.swift",
"WorkerPool.swift",
"WorkerThread.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/30] Emitting module Primitives
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public static let nanoseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nanoseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | TimeDuration(duration: .nanoseconds, value: value)
22 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static let microseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | TimeDuration(duration: .microseconds, value: value)
26 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public static let milliseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'milliseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | TimeDuration(duration: .milliseconds, value: value)
30 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | public static let seconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'seconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | TimeDuration(duration: .seconds, value: value)
34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 | }
35 |
36 | public static let minutes = { (value: Double) -> TimeDuration in
| |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'minutes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | TimeDuration(duration: .minutes, value: value)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// }
16 | /// ```
17 | public final class WorkerPool {
| `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
18 |
19 | let taskChannels: [TaskChannel]
:
27 | let waitType: WaitType
28 |
29 | static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Initialises an instance of the `WorkerPool` type
[4/33] Compiling Primitives ArrayStorage.swift
[5/33] Compiling Primitives Barrier.swift
[6/33] Compiling Primitives BoundedChannel.swift
[7/33] Compiling Primitives ThreadPool.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public static let nanoseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nanoseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | TimeDuration(duration: .nanoseconds, value: value)
22 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static let microseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | TimeDuration(duration: .microseconds, value: value)
26 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public static let milliseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'milliseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | TimeDuration(duration: .milliseconds, value: value)
30 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | public static let seconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'seconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | TimeDuration(duration: .seconds, value: value)
34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 | }
35 |
36 | public static let minutes = { (value: Double) -> TimeDuration in
| |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'minutes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | TimeDuration(duration: .minutes, value: value)
38 | }
[8/33] Compiling Primitives TimeDuration.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public static let nanoseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nanoseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | TimeDuration(duration: .nanoseconds, value: value)
22 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static let microseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | TimeDuration(duration: .microseconds, value: value)
26 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public static let milliseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'milliseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | TimeDuration(duration: .milliseconds, value: value)
30 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | public static let seconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'seconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | TimeDuration(duration: .seconds, value: value)
34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 | }
35 |
36 | public static let minutes = { (value: Double) -> TimeDuration in
| |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'minutes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | TimeDuration(duration: .minutes, value: value)
38 | }
[9/33] Compiling Primitives Timespec.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public static let nanoseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nanoseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | TimeDuration(duration: .nanoseconds, value: value)
22 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public static let microseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'microseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | TimeDuration(duration: .microseconds, value: value)
26 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public static let milliseconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'milliseconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | TimeDuration(duration: .milliseconds, value: value)
30 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | public static let seconds = { (value: Double) -> TimeDuration in
| |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'seconds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | TimeDuration(duration: .seconds, value: value)
34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 | }
35 |
36 | public static let minutes = { (value: Double) -> TimeDuration in
| |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'minutes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | TimeDuration(duration: .minutes, value: value)
38 | }
[10/33] Compiling Primitives ConditionLock.swift
[11/33] Compiling Primitives Latch.swift
[12/33] Compiling Primitives Lock.swift
[13/33] Compiling Primitives WaitType.swift
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// }
16 | /// ```
17 | public final class WorkerPool {
| `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
18 |
19 | let taskChannels: [TaskChannel]
:
27 | let waitType: WaitType
28 |
29 | static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Initialises an instance of the `WorkerPool` type
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:74:38: warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | taskChannels.forEach { channel in
73 | Thread { [channel] in
74 | while let task = channel.dequeue() { task() }
| `- warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }.start()
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/WorkerThread.swift:52:34: warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | onceFlag.runOnce {
51 | Thread { [taskChannel] in
52 | while let task = taskChannel.dequeue() { task() }
| `- warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }.start()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
[14/33] Compiling Primitives WorkerPool.swift
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// }
16 | /// ```
17 | public final class WorkerPool {
| `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
18 |
19 | let taskChannels: [TaskChannel]
:
27 | let waitType: WaitType
28 |
29 | static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Initialises an instance of the `WorkerPool` type
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:74:38: warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | taskChannels.forEach { channel in
73 | Thread { [channel] in
74 | while let task = channel.dequeue() { task() }
| `- warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }.start()
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/WorkerThread.swift:52:34: warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | onceFlag.runOnce {
51 | Thread { [taskChannel] in
52 | while let task = taskChannel.dequeue() { task() }
| `- warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }.start()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
[15/33] Compiling Primitives WorkerThread.swift
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:29:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
15 | /// }
16 | /// ```
17 | public final class WorkerPool {
| `- note: class 'WorkerPool' does not conform to the 'Sendable' protocol
18 |
19 | let taskChannels: [TaskChannel]
:
27 | let waitType: WaitType
28 |
29 | static let shared: WorkerPool = WorkerPool(size: ProcessInfo.processInfo.activeProcessorCount)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WorkerPool' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Initialises an instance of the `WorkerPool` type
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/WorkerPool.swift:74:38: warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | taskChannels.forEach { channel in
73 | Thread { [channel] in
74 | while let task = channel.dequeue() { task() }
| `- warning: capture of 'channel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }.start()
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/WorkerThread.swift:52:34: warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | onceFlag.runOnce {
51 | Thread { [taskChannel] in
52 | while let task = taskChannel.dequeue() { task() }
| `- warning: capture of 'taskChannel' with non-sendable type 'TaskChannel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }.start()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/Primitives/TaskChannel.swift:3:8: note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | struct TaskChannel {
| `- note: consider making struct 'TaskChannel' conform to the 'Sendable' protocol
4 |
5 | let bufferLock: ConditionalLockBuffer<Storage<() -> Void>>
[16/33] Compiling Primitives OnceState.swift
[17/33] Compiling Primitives OneShotChannel.swift
[18/33] Compiling Primitives Operators.swift
[19/33] Compiling Primitives Queue.swift
[20/33] Compiling Primitives Semaphore.swift
[21/33] Compiling Primitives SingleElementStorage.swift
[22/33] Compiling Primitives Buffers.swift
[23/33] Compiling Primitives Channel.swift
[24/33] Compiling Primitives Condition.swift
[25/33] Compiling Primitives Storage.swift
[26/33] Compiling Primitives TaskChannel.swift
[27/33] Compiling Primitives ThreadParker.swift
[28/33] Compiling Primitives Locked.swift
[29/33] Compiling Primitives Mutex.swift
[30/33] Compiling Primitives Once.swift
[31/33] Compiling Primitives UnboundedChannel.swift
[32/33] Compiling Primitives UnbufferedChannel.swift
[33/33] Compiling Primitives WaitGroup.swift
Build complete! (12.65s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swift-concurrency-primitives",
"name" : "swift-concurrency-primitives",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "Primitives",
"targets" : [
"Primitives"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Primitives_Tests",
"module_type" : "SwiftTarget",
"name" : "Primitives-Tests",
"path" : "Tests/PrimitivesTests",
"sources" : [
"ChannelTests.swift",
"PrimitivesTests.swift",
"SynchronizationTests.swift",
"ThreadPoolTests.swift"
],
"target_dependencies" : [
"Primitives"
],
"type" : "test"
},
{
"c99name" : "Primitives",
"module_type" : "SwiftTarget",
"name" : "Primitives",
"path" : "Sources/Primitives",
"product_memberships" : [
"Primitives"
],
"sources" : [
"ArrayStorage.swift",
"Barrier.swift",
"BoundedChannel.swift",
"Buffers.swift",
"Channel.swift",
"Condition.swift",
"ConditionLock.swift",
"Latch.swift",
"Lock.swift",
"Locked.swift",
"Mutex.swift",
"Once.swift",
"OnceState.swift",
"OneShotChannel.swift",
"Operators.swift",
"Queue.swift",
"Semaphore.swift",
"SingleElementStorage.swift",
"Storage.swift",
"TaskChannel.swift",
"ThreadParker.swift",
"ThreadPool.swift",
"TimeDuration.swift",
"Timespec.swift",
"UnboundedChannel.swift",
"UnbufferedChannel.swift",
"WaitGroup.swift",
"WaitType.swift",
"WorkerPool.swift",
"WorkerThread.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/genaro-chris/swift-concurrency-primitives/main
Repository: Genaro-Chris/swift-concurrency-primitives
Swift version used: 6.0
Target: Primitives
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch 88815688627177b9716a01ca41da19397bd30e47 -> FETCH_HEAD
HEAD is now at 8881568 Update the artifact
Extracting symbol information for 'Primitives'...
Finished extracting symbol information for 'Primitives'. (2.78s)
Building documentation for 'Primitives'...
warning: Parameter 'using' not found in instance method declaration
--> ../Locked.swift:90:9-90:91
88 | /// This function will block the current thread until it acquires the lock.
89 | /// Upon acquiring the lock, only this thread can access or update the value stored in this type.
90 + /// - Parameter using: a closure that updates or changes the value stored in this type
| ╰─suggestion: Remove 'using' parameter documentation
91 | /// - Returns: value returned from the closure passed as argument
92 | ///
warning: Parameter 'mutateWith' is missing documentation
--> ../Locked.swift:90:91-90:91
88 | /// This function will block the current thread until it acquires the lock.
89 | /// Upon acquiring the lock, only this thread can access or update the value stored in this type.
90 + /// - Parameter using: a closure that updates or changes the value stored in this type
| ╰─suggestion: Document 'mutateWith' parameter
91 | /// - Returns: value returned from the closure passed as argument
92 | ///
warning: 'Dispatch' doesn't exist at '/Primitives/Primitives'
--> Primitives.md:11:48-11:56
9 | Most of the constructs shouldn't be used in async context because they block a thread's execution flow thereby violating the swift's runtime contract: forward progress of thread execution.
10 |
11 + This package serves as an alternative to the ``Dispatch`` module of the swift language with a few more concurrency constructs.
12 |
13 | ## Topics
warning: 'unpark' doesn't exist at '/Primitives/ThreadParker/park()'
--> ../ThreadParker.swift:28:45-28:51
26 | }
27 |
28 + /// Parks the caller thread until the ``unpark`` method is called
29 | public func park() {
30 | stageLock.interactWhileLocked { stage, conditionLock in
warning: External name 'for' used to document parameter
--> ../ThreadParker.swift:55:13-55:16
53 | /// Parks the caller thread until the specified time duration passes
54 | /// - Parameters:
55 + /// - for: The time duration to park for
| ╰─suggestion: Replace 'for' with 'timeout'
56 | public func park(for timeout: TimeDuration) {
57 | stageLock.interactWhileLocked { stage, conditionLock in
warning: 'done' doesn't exist at '/Primitives/WaitGroup/waitForAll()'
--> ../WaitGroup.swift:63:90-63:94
61 | ///
62 | /// This method blocks the current thread execution only if one or more
63 + /// calls to the `enter` method until the same number of calls as been made to the ``done`` method
64 | public func waitForAll() {
65 | indexLock.interactWhileLocked { index, conditionLock inFinished building documentation for 'Primitives' (0.20s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/genaro-chris/swift-concurrency-primitives/main
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2044] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.32s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.53s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3188] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.23s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.55s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Building for debugging...
[0/8] Write sources
[3/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/53] Compiling Snippets SnippetParser.swift
[7/53] Compiling SymbolKit DeclarationFragments.swift
[8/53] Compiling SymbolKit Fragment.swift
[9/53] Compiling SymbolKit FragmentKind.swift
[10/53] Compiling SymbolKit FunctionParameter.swift
[11/53] Compiling SymbolKit FunctionSignature.swift
[12/57] Compiling SymbolKit SourceRange.swift
[13/57] Compiling SymbolKit Metadata.swift
[14/57] Compiling SymbolKit Module.swift
[15/57] Compiling SymbolKit OperatingSystem.swift
[16/57] Compiling SymbolKit Platform.swift
[17/57] Emitting module SymbolKit
[18/57] Emitting module Snippets
[19/57] Compiling Snippets Snippet.swift
[20/57] Compiling SymbolKit Relationship.swift
[21/57] Compiling SymbolKit RelationshipKind.swift
[22/57] Compiling SymbolKit SourceOrigin.swift
[23/57] Compiling SymbolKit GenericConstraints.swift
[24/57] Compiling SymbolKit Swift.swift
[25/57] Compiling SymbolKit GenericConstraint.swift
[26/57] Compiling SymbolKit GenericParameter.swift
[27/57] Compiling SymbolKit Generics.swift
[28/57] Compiling SymbolKit Namespace.swift
[29/57] Compiling SymbolKit Identifier.swift
[30/57] Compiling SymbolKit KindIdentifier.swift
[31/57] Compiling SymbolKit Location.swift
[32/57] Compiling SymbolKit Mutability.swift
[33/57] Compiling SymbolKit Symbol.swift
[34/57] Compiling SymbolKit SymbolKind.swift
[35/57] Compiling SymbolKit SymbolGraph.swift
[36/57] Compiling SymbolKit GraphCollector.swift
[37/57] Compiling SymbolKit Mixin+Equals.swift
[38/57] Compiling SymbolKit Mixin+Hash.swift
[39/57] Compiling SymbolKit Mixin.swift
[40/57] Compiling SymbolKit LineList.swift
[41/57] Compiling SymbolKit Position.swift
[42/57] Compiling SymbolKit Names.swift
[43/57] Compiling SymbolKit SPI.swift
[44/57] Compiling SymbolKit Snippet.swift
[45/57] Compiling SymbolKit Extension.swift
[46/57] Compiling SymbolKit SemanticVersion.swift
[47/57] Compiling SymbolKit AccessControl.swift
[48/57] Compiling SymbolKit Availability.swift
[49/57] Compiling SymbolKit AvailabilityItem.swift
[50/57] Compiling SymbolKit Domain.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.04s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/29] Emitting module Primitives
[3/32] Compiling Primitives Buffers.swift
[4/32] Compiling Primitives Channel.swift
[5/32] Compiling Primitives Condition.swift
[6/32] Compiling Primitives Locked.swift
[7/32] Compiling Primitives Mutex.swift
[8/32] Compiling Primitives Once.swift
[9/32] Compiling Primitives Storage.swift
[10/32] Compiling Primitives TaskChannel.swift
[11/32] Compiling Primitives ThreadParker.swift
[12/32] Compiling Primitives ThreadPool.swift
[13/32] Compiling Primitives TimeDuration.swift
[14/32] Compiling Primitives Timespec.swift
[15/32] Compiling Primitives ArrayStorage.swift
[16/32] Compiling Primitives Barrier.swift
[17/32] Compiling Primitives BoundedChannel.swift
[18/32] Compiling Primitives OnceState.swift
[19/32] Compiling Primitives OneShotChannel.swift
[20/32] Compiling Primitives Operators.swift
[21/32] Compiling Primitives Queue.swift
[22/32] Compiling Primitives Semaphore.swift
[23/32] Compiling Primitives SingleElementStorage.swift
[24/32] Compiling Primitives UnboundedChannel.swift
[25/32] Compiling Primitives UnbufferedChannel.swift
[26/32] Compiling Primitives WaitGroup.swift
[27/32] Compiling Primitives ConditionLock.swift
[28/32] Compiling Primitives Latch.swift
[29/32] Compiling Primitives Lock.swift
[30/32] Compiling Primitives WaitType.swift
[31/32] Compiling Primitives WorkerPool.swift
[32/32] Compiling Primitives WorkerThread.swift
Build of target: 'Primitives' complete! (0.77s)
494
4 /Users/admin/builder/spi-builder-workspace/.docs/genaro-chris/swift-concurrency-primitives/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/genaro-chris/swift-concurrency-primitives/main
File count: 494
Doc size: 4.0MB
Preparing doc bundle ...
Uploading prod-genaro-chris-swift-concurrency-primitives-main-13787950.zip to s3://spi-docs-inbox/prod-genaro-chris-swift-concurrency-primitives-main-13787950.zip
Copying... [15%]
Copying... [23%]
Copying... [31%]
Copying... [46%]
Copying... [53%]
Copying... [61%]
Copying... [76%]
Copying... [84%]
Copying... [92%]
Copying... [100%]
Done.