Build Information
Failed to build Promise, reference main (82e62b), with Swift 6.1 for Wasm on 12 Jul 2025 21:07:23 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ObuchiYuki/Promise.git
Reference: main
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/ObuchiYuki/Promise
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 82e62be add comments
Cloned https://github.com/ObuchiYuki/Promise.git
Revision (git rev-parse @):
82e62beb54a8d091036c43dbca3d19f992b579b6
SUCCESS checkout https://github.com/ObuchiYuki/Promise.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/ObuchiYuki/Promise.git
https://github.com/ObuchiYuki/Promise.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.5",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "Promise",
"name" : "Promise",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "Promise",
"targets" : [
"Promise"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PromiseTests",
"module_type" : "SwiftTarget",
"name" : "PromiseTests",
"path" : "Tests/PromiseTests",
"sources" : [
"Promise+Test.swift",
"PromiseCombinationTests.swift",
"PromiseConcurrencyTests.swift",
"PromiseDeinitTests.swift",
"PromiseMultithreadTests.swift",
"PromiseOperatorTests.swift",
"PromisePublisherTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Promise"
],
"type" : "test"
},
{
"c99name" : "Promise",
"module_type" : "SwiftTarget",
"name" : "Promise",
"path" : "Sources/Promise",
"product_memberships" : [
"Promise"
],
"sources" : [
"Ex+Foundation/Promise+GCD.swift",
"Ex+Foundation/Promise+MeasureInterval.swift",
"Ex+Foundation/Promise+Timeout.swift",
"Ex+Foundation/Promise+URLSession.swift",
"Ex+Foundation/Promise+Wait.swift",
"Ex+Swift/Promise+Combine.swift",
"Ex+Swift/Promise+Concurrency.swift",
"Lock.swift",
"Promise+Cancel.swift",
"Promise+Combination.swift",
"Promise+Debug.swift",
"Promise+Init.swift",
"Promise+Operators.swift",
"Promise+OptionalResolve.swift",
"Promise+Util.swift",
"Promise.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2094] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.54s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (3.00s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3425] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.42s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.17s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.5
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
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/19] Compiling Promise Promise+Timeout.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:23:61: error: cannot find type 'DispatchQueue' in scope
21 | /// within `interval` seconds.
22 | @inlinable
23 | public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
24 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
25 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:29:120: error: cannot find type 'DispatchQueue' in scope
27 | /// General‑purpose timeout that allows you to supply a custom error.
28 | @inlinable
29 | public func timeout<T: Error>(_ interval: TimeInterval, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Error>()
31 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:43:68: error: cannot find type 'DispatchQueue' in scope
41 |
42 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
43 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
44 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:48:127: error: cannot find type 'DispatchQueue' in scope
46 |
47 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
48 | @inlinable public func timeout<T: Error>(_ duration: Duration, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
49 | self.timeout(duration.timeInterval, error: error(), on: queue)
50 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:33:37: error: cannot call value of non-function type 'Date'
31 | self.subscribe(promise.resolve, promise.reject)
32 |
33 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
34 | promise.reject(error())
35 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:37:46: error: cannot find type 'DispatchQueue' in scope
35 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but the handler may `throw`.
36 | @inlinable
37 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
38 | let promise = Promise<Output, Failure>()
39 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:46:46: error: cannot find type 'DispatchQueue' in scope
44 | /// value.
45 | @inlinable
46 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
47 | let promise = Promise<Output, Failure>()
48 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Output' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:28: note: 'Output' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Failure' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| |- error: generic parameter 'Failure' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:36: note: 'Failure' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:21:35: error: cannot find type 'URLRequest' in scope
19 | /// Same as ``data(for:)`` but for `URLRequest`.
20 | @inlinable
21 | public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
22 | self.fetch(request).map { $0.1 }
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:37:34: error: cannot find type 'URLRequest' in scope
35 | /// * a synthesized `NSError` when no data/error is produced.
36 | @inlinable
37 | public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
38 | let promise = Promise<(URLResponse, Data), Error>()
39 |
[6/19] Compiling Promise Promise+URLSession.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:23:61: error: cannot find type 'DispatchQueue' in scope
21 | /// within `interval` seconds.
22 | @inlinable
23 | public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
24 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
25 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:29:120: error: cannot find type 'DispatchQueue' in scope
27 | /// General‑purpose timeout that allows you to supply a custom error.
28 | @inlinable
29 | public func timeout<T: Error>(_ interval: TimeInterval, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Error>()
31 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:43:68: error: cannot find type 'DispatchQueue' in scope
41 |
42 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
43 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
44 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:48:127: error: cannot find type 'DispatchQueue' in scope
46 |
47 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
48 | @inlinable public func timeout<T: Error>(_ duration: Duration, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
49 | self.timeout(duration.timeInterval, error: error(), on: queue)
50 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:33:37: error: cannot call value of non-function type 'Date'
31 | self.subscribe(promise.resolve, promise.reject)
32 |
33 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
34 | promise.reject(error())
35 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:37:46: error: cannot find type 'DispatchQueue' in scope
35 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but the handler may `throw`.
36 | @inlinable
37 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
38 | let promise = Promise<Output, Failure>()
39 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:46:46: error: cannot find type 'DispatchQueue' in scope
44 | /// value.
45 | @inlinable
46 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
47 | let promise = Promise<Output, Failure>()
48 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Output' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:28: note: 'Output' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Failure' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| |- error: generic parameter 'Failure' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:36: note: 'Failure' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:21:35: error: cannot find type 'URLRequest' in scope
19 | /// Same as ``data(for:)`` but for `URLRequest`.
20 | @inlinable
21 | public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
22 | self.fetch(request).map { $0.1 }
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:37:34: error: cannot find type 'URLRequest' in scope
35 | /// * a synthesized `NSError` when no data/error is produced.
36 | @inlinable
37 | public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
38 | let promise = Promise<(URLResponse, Data), Error>()
39 |
[7/21] Compiling Promise Promise+Operators.swift
[8/21] Compiling Promise Promise+OptionalResolve.swift
[9/21] Compiling Promise Promise+Debug.swift
[10/21] Compiling Promise Promise+Init.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/21] Emitting module Promise
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:21:43: error: cannot find type 'DispatchQueue' in scope
19 | /// - handler: Closure receiving the promise’s `resolve` and `reject`.
20 | @inlinable
21 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
22 | let promise = Promise<Output, Failure>()
23 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:29:43: error: cannot find type 'DispatchQueue' in scope
27 | /// Convenience overload for *non‑throwing*, non‑failable work.
28 | @inlinable
29 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Failure>()
31 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:37:46: error: cannot find type 'DispatchQueue' in scope
35 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but the handler may `throw`.
36 | @inlinable
37 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
38 | let promise = Promise<Output, Failure>()
39 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:46:46: error: cannot find type 'DispatchQueue' in scope
44 | /// value.
45 | @inlinable
46 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
47 | let promise = Promise<Output, Failure>()
48 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:66:49: error: cannot find type 'DispatchQueue' in scope
64 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but uses `queue.asyncUnsafe`.
65 | @inlinable
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:74:49: error: cannot find type 'DispatchQueue' in scope
72 | /// Non‑throwing, non‑failable overload of `dispatchUnsafe`.
73 | @inlinable
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:82:52: error: cannot find type 'DispatchQueue' in scope
80 | /// Throwing overload of `dispatchUnsafe`.
81 | @inlinable
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:90:52: error: cannot find type 'DispatchQueue' in scope
88 | /// Throwing overload returning a value.
89 | @inlinable
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:98:41: error: cannot find type 'DispatchQueue' in scope
96 | /// Re‑emits settlement using `queue.asyncUnsafe`.
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
100 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:23:61: error: cannot find type 'DispatchQueue' in scope
21 | /// within `interval` seconds.
22 | @inlinable
23 | public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
24 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
25 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:29:120: error: cannot find type 'DispatchQueue' in scope
27 | /// General‑purpose timeout that allows you to supply a custom error.
28 | @inlinable
29 | public func timeout<T: Error>(_ interval: TimeInterval, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Error>()
31 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:43:68: error: cannot find type 'DispatchQueue' in scope
41 |
42 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
43 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
44 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:48:127: error: cannot find type 'DispatchQueue' in scope
46 |
47 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
48 | @inlinable public func timeout<T: Error>(_ duration: Duration, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
49 | self.timeout(duration.timeInterval, error: error(), on: queue)
50 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:33:37: error: cannot call value of non-function type 'Date'
31 | self.subscribe(promise.resolve, promise.reject)
32 |
33 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
34 | promise.reject(error())
35 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Output' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:28: note: 'Output' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Failure' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| |- error: generic parameter 'Failure' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:36: note: 'Failure' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:28:32: error: cannot find type 'DispatchQueue' in scope
26 | /// The work starts immediately; only the *observation* is postponed.
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
30 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:35:32: error: cannot find type 'DispatchQueue' in scope
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable
35 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
36 | return self.wait(on: queue, for: duration.timeInterval)
37 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:43:39: error: cannot find type 'DispatchQueue' in scope
41 | /// Returns a promise that fulfills after `interval` seconds.
42 | @inlinable
43 | public static func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
44 | Promise.resolve().wait(on: queue, for: interval)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:50:39: error: cannot find type 'DispatchQueue' in scope
48 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
49 | @inlinable
50 | public static func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
51 | Promise.resolve().wait(on: queue, for: duration)
52 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:29:56: error: cannot call value of non-function type 'Date'
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
30 | }
31 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:28:30: error: cannot find 'pthread_mutexattr_init' in scope
26 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr: UnsafePointer<pthread_mutexattr_t> = {
27 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:30: error: cannot find 'pthread_mutexattr_settype' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:63:30: error: cannot find 'pthread_mutexattr_init' in scope
61 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr = {
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:30: error: cannot find 'pthread_mutexattr_settype' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:62: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:30: error: cannot find 'pthread_mutexattr_settype' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:41:30: error: cannot find 'pthread_mutex_init' in scope
39 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 | self.mutex.assertValidAlignment()
41 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, Lock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:46:30: error: cannot find 'pthread_mutex_destroy' in scope
44 | @inlinable @inline(__always)
45 | deinit {
46 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
47 | }
48 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:51:30: error: cannot find 'pthread_mutex_lock' in scope
49 | @inlinable @inline(__always)
50 | func lock() {
51 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:56:30: error: cannot find 'pthread_mutex_unlock' in scope
54 | @inlinable @inline(__always)
55 | func unlock() {
56 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
57 | }
58 | }
/host/spi-builder-workspace/Sources/Promise/Lock.swift:77:30: error: cannot find 'pthread_mutex_init' in scope
75 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
76 | self.mutex.assertValidAlignment()
77 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
78 | }
79 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:82:30: error: cannot find 'pthread_mutex_destroy' in scope
80 | @inlinable @inline(__always)
81 | deinit {
82 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
83 | }
84 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:87:30: error: cannot find 'pthread_mutex_lock' in scope
85 | @inlinable @inline(__always)
86 | func lock() {
87 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
88 | }
89 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:92:30: error: cannot find 'pthread_mutex_unlock' in scope
90 | @inlinable @inline(__always)
91 | func unlock() {
92 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | }
94 | }
[12/21] Compiling Promise Promise+GCD.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:21:43: error: cannot find type 'DispatchQueue' in scope
19 | /// - handler: Closure receiving the promise’s `resolve` and `reject`.
20 | @inlinable
21 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
22 | let promise = Promise<Output, Failure>()
23 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:29:43: error: cannot find type 'DispatchQueue' in scope
27 | /// Convenience overload for *non‑throwing*, non‑failable work.
28 | @inlinable
29 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Failure>()
31 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:37:46: error: cannot find type 'DispatchQueue' in scope
35 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but the handler may `throw`.
36 | @inlinable
37 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
38 | let promise = Promise<Output, Failure>()
39 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:46:46: error: cannot find type 'DispatchQueue' in scope
44 | /// value.
45 | @inlinable
46 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
47 | let promise = Promise<Output, Failure>()
48 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:66:49: error: cannot find type 'DispatchQueue' in scope
64 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but uses `queue.asyncUnsafe`.
65 | @inlinable
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:74:49: error: cannot find type 'DispatchQueue' in scope
72 | /// Non‑throwing, non‑failable overload of `dispatchUnsafe`.
73 | @inlinable
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:82:52: error: cannot find type 'DispatchQueue' in scope
80 | /// Throwing overload of `dispatchUnsafe`.
81 | @inlinable
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:90:52: error: cannot find type 'DispatchQueue' in scope
88 | /// Throwing overload returning a value.
89 | @inlinable
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:98:41: error: cannot find type 'DispatchQueue' in scope
96 | /// Re‑emits settlement using `queue.asyncUnsafe`.
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
100 | }
[13/21] Compiling Promise Promise+MeasureInterval.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:21:43: error: cannot find type 'DispatchQueue' in scope
19 | /// - handler: Closure receiving the promise’s `resolve` and `reject`.
20 | @inlinable
21 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
22 | let promise = Promise<Output, Failure>()
23 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:29:43: error: cannot find type 'DispatchQueue' in scope
27 | /// Convenience overload for *non‑throwing*, non‑failable work.
28 | @inlinable
29 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Failure>()
31 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:37:46: error: cannot find type 'DispatchQueue' in scope
35 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but the handler may `throw`.
36 | @inlinable
37 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
38 | let promise = Promise<Output, Failure>()
39 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:46:46: error: cannot find type 'DispatchQueue' in scope
44 | /// value.
45 | @inlinable
46 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
47 | let promise = Promise<Output, Failure>()
48 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:66:49: error: cannot find type 'DispatchQueue' in scope
64 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but uses `queue.asyncUnsafe`.
65 | @inlinable
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:74:49: error: cannot find type 'DispatchQueue' in scope
72 | /// Non‑throwing, non‑failable overload of `dispatchUnsafe`.
73 | @inlinable
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:82:52: error: cannot find type 'DispatchQueue' in scope
80 | /// Throwing overload of `dispatchUnsafe`.
81 | @inlinable
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:90:52: error: cannot find type 'DispatchQueue' in scope
88 | /// Throwing overload returning a value.
89 | @inlinable
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:98:41: error: cannot find type 'DispatchQueue' in scope
96 | /// Re‑emits settlement using `queue.asyncUnsafe`.
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
100 | }
[14/21] Compiling Promise Promise+Wait.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:28:32: error: cannot find type 'DispatchQueue' in scope
26 | /// The work starts immediately; only the *observation* is postponed.
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
30 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:35:32: error: cannot find type 'DispatchQueue' in scope
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable
35 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
36 | return self.wait(on: queue, for: duration.timeInterval)
37 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:43:39: error: cannot find type 'DispatchQueue' in scope
41 | /// Returns a promise that fulfills after `interval` seconds.
42 | @inlinable
43 | public static func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
44 | Promise.resolve().wait(on: queue, for: interval)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:50:39: error: cannot find type 'DispatchQueue' in scope
48 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
49 | @inlinable
50 | public static func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
51 | Promise.resolve().wait(on: queue, for: duration)
52 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:29:56: error: cannot call value of non-function type 'Date'
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
30 | }
31 |
[15/21] Compiling Promise Promise+Combine.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:28:32: error: cannot find type 'DispatchQueue' in scope
26 | /// The work starts immediately; only the *observation* is postponed.
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
30 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:35:32: error: cannot find type 'DispatchQueue' in scope
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable
35 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
36 | return self.wait(on: queue, for: duration.timeInterval)
37 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:43:39: error: cannot find type 'DispatchQueue' in scope
41 | /// Returns a promise that fulfills after `interval` seconds.
42 | @inlinable
43 | public static func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
44 | Promise.resolve().wait(on: queue, for: interval)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:50:39: error: cannot find type 'DispatchQueue' in scope
48 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
49 | @inlinable
50 | public static func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
51 | Promise.resolve().wait(on: queue, for: duration)
52 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:29:56: error: cannot call value of non-function type 'Date'
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
30 | }
31 |
[16/21] Compiling Promise Promise+Cancel.swift
[17/21] Compiling Promise Promise+Combination.swift
[18/21] Compiling Promise Promise+Concurrency.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:98:41: error: cannot find type 'DispatchQueue' in scope
96 | /// Re‑emits settlement using `queue.asyncUnsafe`.
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
100 | }
/host/spi-builder-workspace/Sources/Promise/Lock.swift:28:30: error: cannot find 'pthread_mutexattr_init' in scope
26 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr: UnsafePointer<pthread_mutexattr_t> = {
27 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:30: error: cannot find 'pthread_mutexattr_settype' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:63:30: error: cannot find 'pthread_mutexattr_init' in scope
61 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr = {
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:30: error: cannot find 'pthread_mutexattr_settype' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:62: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:30: error: cannot find 'pthread_mutexattr_settype' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:41:30: error: cannot find 'pthread_mutex_init' in scope
39 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 | self.mutex.assertValidAlignment()
41 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, Lock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:46:30: error: cannot find 'pthread_mutex_destroy' in scope
44 | @inlinable @inline(__always)
45 | deinit {
46 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
47 | }
48 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:51:30: error: cannot find 'pthread_mutex_lock' in scope
49 | @inlinable @inline(__always)
50 | func lock() {
51 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:56:30: error: cannot find 'pthread_mutex_unlock' in scope
54 | @inlinable @inline(__always)
55 | func unlock() {
56 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
57 | }
58 | }
/host/spi-builder-workspace/Sources/Promise/Lock.swift:77:30: error: cannot find 'pthread_mutex_init' in scope
75 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
76 | self.mutex.assertValidAlignment()
77 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
78 | }
79 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:82:30: error: cannot find 'pthread_mutex_destroy' in scope
80 | @inlinable @inline(__always)
81 | deinit {
82 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
83 | }
84 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:87:30: error: cannot find 'pthread_mutex_lock' in scope
85 | @inlinable @inline(__always)
86 | func lock() {
87 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
88 | }
89 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:92:30: error: cannot find 'pthread_mutex_unlock' in scope
90 | @inlinable @inline(__always)
91 | func unlock() {
92 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | }
94 | }
[19/21] Compiling Promise Lock.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:98:41: error: cannot find type 'DispatchQueue' in scope
96 | /// Re‑emits settlement using `queue.asyncUnsafe`.
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
100 | }
/host/spi-builder-workspace/Sources/Promise/Lock.swift:28:30: error: cannot find 'pthread_mutexattr_init' in scope
26 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr: UnsafePointer<pthread_mutexattr_t> = {
27 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:30: error: cannot find 'pthread_mutexattr_settype' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:63:30: error: cannot find 'pthread_mutexattr_init' in scope
61 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr = {
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:30: error: cannot find 'pthread_mutexattr_settype' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:62: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:30: error: cannot find 'pthread_mutexattr_settype' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:41:30: error: cannot find 'pthread_mutex_init' in scope
39 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 | self.mutex.assertValidAlignment()
41 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, Lock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:46:30: error: cannot find 'pthread_mutex_destroy' in scope
44 | @inlinable @inline(__always)
45 | deinit {
46 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
47 | }
48 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:51:30: error: cannot find 'pthread_mutex_lock' in scope
49 | @inlinable @inline(__always)
50 | func lock() {
51 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:56:30: error: cannot find 'pthread_mutex_unlock' in scope
54 | @inlinable @inline(__always)
55 | func unlock() {
56 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
57 | }
58 | }
/host/spi-builder-workspace/Sources/Promise/Lock.swift:77:30: error: cannot find 'pthread_mutex_init' in scope
75 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
76 | self.mutex.assertValidAlignment()
77 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
78 | }
79 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:82:30: error: cannot find 'pthread_mutex_destroy' in scope
80 | @inlinable @inline(__always)
81 | deinit {
82 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
83 | }
84 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:87:30: error: cannot find 'pthread_mutex_lock' in scope
85 | @inlinable @inline(__always)
86 | func lock() {
87 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
88 | }
89 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:92:30: error: cannot find 'pthread_mutex_unlock' in scope
90 | @inlinable @inline(__always)
91 | func unlock() {
92 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | }
94 | }
[20/21] Compiling Promise Promise+Util.swift
[21/21] Compiling Promise Promise.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/18] Compiling Promise Promise+GCD.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:21:43: error: cannot find type 'DispatchQueue' in scope
19 | /// - handler: Closure receiving the promise’s `resolve` and `reject`.
20 | @inlinable
21 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
22 | let promise = Promise<Output, Failure>()
23 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:29:43: error: cannot find type 'DispatchQueue' in scope
27 | /// Convenience overload for *non‑throwing*, non‑failable work.
28 | @inlinable
29 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Failure>()
31 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:37:46: error: cannot find type 'DispatchQueue' in scope
35 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but the handler may `throw`.
36 | @inlinable
37 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
38 | let promise = Promise<Output, Failure>()
39 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:46:46: error: cannot find type 'DispatchQueue' in scope
44 | /// value.
45 | @inlinable
46 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
47 | let promise = Promise<Output, Failure>()
48 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:66:49: error: cannot find type 'DispatchQueue' in scope
64 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but uses `queue.asyncUnsafe`.
65 | @inlinable
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:74:49: error: cannot find type 'DispatchQueue' in scope
72 | /// Non‑throwing, non‑failable overload of `dispatchUnsafe`.
73 | @inlinable
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:82:52: error: cannot find type 'DispatchQueue' in scope
80 | /// Throwing overload of `dispatchUnsafe`.
81 | @inlinable
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:90:52: error: cannot find type 'DispatchQueue' in scope
88 | /// Throwing overload returning a value.
89 | @inlinable
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:98:41: error: cannot find type 'DispatchQueue' in scope
96 | /// Re‑emits settlement using `queue.asyncUnsafe`.
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
100 | }
[5/18] Compiling Promise Promise+MeasureInterval.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:21:43: error: cannot find type 'DispatchQueue' in scope
19 | /// - handler: Closure receiving the promise’s `resolve` and `reject`.
20 | @inlinable
21 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
22 | let promise = Promise<Output, Failure>()
23 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:29:43: error: cannot find type 'DispatchQueue' in scope
27 | /// Convenience overload for *non‑throwing*, non‑failable work.
28 | @inlinable
29 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Failure>()
31 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:37:46: error: cannot find type 'DispatchQueue' in scope
35 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but the handler may `throw`.
36 | @inlinable
37 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
38 | let promise = Promise<Output, Failure>()
39 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:46:46: error: cannot find type 'DispatchQueue' in scope
44 | /// value.
45 | @inlinable
46 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
47 | let promise = Promise<Output, Failure>()
48 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:66:49: error: cannot find type 'DispatchQueue' in scope
64 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but uses `queue.asyncUnsafe`.
65 | @inlinable
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:74:49: error: cannot find type 'DispatchQueue' in scope
72 | /// Non‑throwing, non‑failable overload of `dispatchUnsafe`.
73 | @inlinable
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:82:52: error: cannot find type 'DispatchQueue' in scope
80 | /// Throwing overload of `dispatchUnsafe`.
81 | @inlinable
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:90:52: error: cannot find type 'DispatchQueue' in scope
88 | /// Throwing overload returning a value.
89 | @inlinable
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:98:41: error: cannot find type 'DispatchQueue' in scope
96 | /// Re‑emits settlement using `queue.asyncUnsafe`.
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
100 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/20] Emitting module Promise
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:21:43: error: cannot find type 'DispatchQueue' in scope
19 | /// - handler: Closure receiving the promise’s `resolve` and `reject`.
20 | @inlinable
21 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
22 | let promise = Promise<Output, Failure>()
23 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:29:43: error: cannot find type 'DispatchQueue' in scope
27 | /// Convenience overload for *non‑throwing*, non‑failable work.
28 | @inlinable
29 | public static func dispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Failure>()
31 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:37:46: error: cannot find type 'DispatchQueue' in scope
35 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but the handler may `throw`.
36 | @inlinable
37 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
38 | let promise = Promise<Output, Failure>()
39 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:46:46: error: cannot find type 'DispatchQueue' in scope
44 | /// value.
45 | @inlinable
46 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
47 | let promise = Promise<Output, Failure>()
48 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:66:49: error: cannot find type 'DispatchQueue' in scope
64 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but uses `queue.asyncUnsafe`.
65 | @inlinable
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:74:49: error: cannot find type 'DispatchQueue' in scope
72 | /// Non‑throwing, non‑failable overload of `dispatchUnsafe`.
73 | @inlinable
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:82:52: error: cannot find type 'DispatchQueue' in scope
80 | /// Throwing overload of `dispatchUnsafe`.
81 | @inlinable
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:90:52: error: cannot find type 'DispatchQueue' in scope
88 | /// Throwing overload returning a value.
89 | @inlinable
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:98:41: error: cannot find type 'DispatchQueue' in scope
96 | /// Re‑emits settlement using `queue.asyncUnsafe`.
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
100 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:23:61: error: cannot find type 'DispatchQueue' in scope
21 | /// within `interval` seconds.
22 | @inlinable
23 | public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
24 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
25 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:29:120: error: cannot find type 'DispatchQueue' in scope
27 | /// General‑purpose timeout that allows you to supply a custom error.
28 | @inlinable
29 | public func timeout<T: Error>(_ interval: TimeInterval, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Error>()
31 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:43:68: error: cannot find type 'DispatchQueue' in scope
41 |
42 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
43 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
44 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:48:127: error: cannot find type 'DispatchQueue' in scope
46 |
47 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
48 | @inlinable public func timeout<T: Error>(_ duration: Duration, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
49 | self.timeout(duration.timeInterval, error: error(), on: queue)
50 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:33:37: error: cannot call value of non-function type 'Date'
31 | self.subscribe(promise.resolve, promise.reject)
32 |
33 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
34 | promise.reject(error())
35 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Output' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:28: note: 'Output' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Failure' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| |- error: generic parameter 'Failure' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:36: note: 'Failure' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:28:32: error: cannot find type 'DispatchQueue' in scope
26 | /// The work starts immediately; only the *observation* is postponed.
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
30 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:35:32: error: cannot find type 'DispatchQueue' in scope
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable
35 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
36 | return self.wait(on: queue, for: duration.timeInterval)
37 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:43:39: error: cannot find type 'DispatchQueue' in scope
41 | /// Returns a promise that fulfills after `interval` seconds.
42 | @inlinable
43 | public static func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
44 | Promise.resolve().wait(on: queue, for: interval)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:50:39: error: cannot find type 'DispatchQueue' in scope
48 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
49 | @inlinable
50 | public static func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
51 | Promise.resolve().wait(on: queue, for: duration)
52 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:29:56: error: cannot call value of non-function type 'Date'
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
30 | }
31 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:28:30: error: cannot find 'pthread_mutexattr_init' in scope
26 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr: UnsafePointer<pthread_mutexattr_t> = {
27 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:30: error: cannot find 'pthread_mutexattr_settype' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:63:30: error: cannot find 'pthread_mutexattr_init' in scope
61 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr = {
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:30: error: cannot find 'pthread_mutexattr_settype' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:62: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:30: error: cannot find 'pthread_mutexattr_settype' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:41:30: error: cannot find 'pthread_mutex_init' in scope
39 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 | self.mutex.assertValidAlignment()
41 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, Lock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:46:30: error: cannot find 'pthread_mutex_destroy' in scope
44 | @inlinable @inline(__always)
45 | deinit {
46 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
47 | }
48 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:51:30: error: cannot find 'pthread_mutex_lock' in scope
49 | @inlinable @inline(__always)
50 | func lock() {
51 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:56:30: error: cannot find 'pthread_mutex_unlock' in scope
54 | @inlinable @inline(__always)
55 | func unlock() {
56 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
57 | }
58 | }
/host/spi-builder-workspace/Sources/Promise/Lock.swift:77:30: error: cannot find 'pthread_mutex_init' in scope
75 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
76 | self.mutex.assertValidAlignment()
77 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
78 | }
79 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:82:30: error: cannot find 'pthread_mutex_destroy' in scope
80 | @inlinable @inline(__always)
81 | deinit {
82 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
83 | }
84 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:87:30: error: cannot find 'pthread_mutex_lock' in scope
85 | @inlinable @inline(__always)
86 | func lock() {
87 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
88 | }
89 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:92:30: error: cannot find 'pthread_mutex_unlock' in scope
90 | @inlinable @inline(__always)
91 | func unlock() {
92 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | }
94 | }
[7/20] Compiling Promise Promise+Timeout.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:23:61: error: cannot find type 'DispatchQueue' in scope
21 | /// within `interval` seconds.
22 | @inlinable
23 | public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
24 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
25 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:29:120: error: cannot find type 'DispatchQueue' in scope
27 | /// General‑purpose timeout that allows you to supply a custom error.
28 | @inlinable
29 | public func timeout<T: Error>(_ interval: TimeInterval, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Error>()
31 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:43:68: error: cannot find type 'DispatchQueue' in scope
41 |
42 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
43 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
44 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:48:127: error: cannot find type 'DispatchQueue' in scope
46 |
47 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
48 | @inlinable public func timeout<T: Error>(_ duration: Duration, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
49 | self.timeout(duration.timeInterval, error: error(), on: queue)
50 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:33:37: error: cannot call value of non-function type 'Date'
31 | self.subscribe(promise.resolve, promise.reject)
32 |
33 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
34 | promise.reject(error())
35 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:37:46: error: cannot find type 'DispatchQueue' in scope
35 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but the handler may `throw`.
36 | @inlinable
37 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
38 | let promise = Promise<Output, Failure>()
39 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:46:46: error: cannot find type 'DispatchQueue' in scope
44 | /// value.
45 | @inlinable
46 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
47 | let promise = Promise<Output, Failure>()
48 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Output' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:28: note: 'Output' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Failure' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| |- error: generic parameter 'Failure' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:36: note: 'Failure' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:21:35: error: cannot find type 'URLRequest' in scope
19 | /// Same as ``data(for:)`` but for `URLRequest`.
20 | @inlinable
21 | public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
22 | self.fetch(request).map { $0.1 }
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:37:34: error: cannot find type 'URLRequest' in scope
35 | /// * a synthesized `NSError` when no data/error is produced.
36 | @inlinable
37 | public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
38 | let promise = Promise<(URLResponse, Data), Error>()
39 |
[8/20] Compiling Promise Promise+URLSession.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:23:61: error: cannot find type 'DispatchQueue' in scope
21 | /// within `interval` seconds.
22 | @inlinable
23 | public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
24 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
25 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:29:120: error: cannot find type 'DispatchQueue' in scope
27 | /// General‑purpose timeout that allows you to supply a custom error.
28 | @inlinable
29 | public func timeout<T: Error>(_ interval: TimeInterval, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
30 | let promise = Promise<Output, Error>()
31 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:43:68: error: cannot find type 'DispatchQueue' in scope
41 |
42 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
43 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
44 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:48:127: error: cannot find type 'DispatchQueue' in scope
46 |
47 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
48 | @inlinable public func timeout<T: Error>(_ duration: Duration, error: @Sendable @autoclosure @escaping () -> T, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
49 | self.timeout(duration.timeInterval, error: error(), on: queue)
50 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:33:37: error: cannot call value of non-function type 'Date'
31 | self.subscribe(promise.resolve, promise.reject)
32 |
33 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
34 | promise.reject(error())
35 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:37:46: error: cannot find type 'DispatchQueue' in scope
35 | /// Same as ``dispatch(on:_:)-(_,((Output)->(),(Failure)->())->())`` but the handler may `throw`.
36 | @inlinable
37 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
38 | let promise = Promise<Output, Failure>()
39 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:46:46: error: cannot find type 'DispatchQueue' in scope
44 | /// value.
45 | @inlinable
46 | public static func tryDispatch(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
| `- error: cannot find type 'DispatchQueue' in scope
47 | let promise = Promise<Output, Failure>()
48 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Output' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:28: note: 'Output' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:69:9: error: generic parameter 'Failure' could not be inferred
67 | @inlinable
68 | public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
69 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| |- error: generic parameter 'Failure' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
70 | }
71 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:51:36: note: 'Failure' declared as parameter to type 'Promise'
49 | /// can be used equally well on the main queue, background queues, or
50 | /// priority inheritance contexts.
51 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
52 | /// The internal state of a ``Promise``.
53 | public enum State {
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:21:35: error: cannot find type 'URLRequest' in scope
19 | /// Same as ``data(for:)`` but for `URLRequest`.
20 | @inlinable
21 | public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
22 | self.fetch(request).map { $0.1 }
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:37:34: error: cannot find type 'URLRequest' in scope
35 | /// * a synthesized `NSError` when no data/error is produced.
36 | @inlinable
37 | public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
38 | let promise = Promise<(URLResponse, Data), Error>()
39 |
[9/20] Compiling Promise Promise+Debug.swift
[10/20] Compiling Promise Promise+Init.swift
[11/20] Compiling Promise Promise+Concurrency.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:98:41: error: cannot find type 'DispatchQueue' in scope
96 | /// Re‑emits settlement using `queue.asyncUnsafe`.
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
100 | }
/host/spi-builder-workspace/Sources/Promise/Lock.swift:28:30: error: cannot find 'pthread_mutexattr_init' in scope
26 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr: UnsafePointer<pthread_mutexattr_t> = {
27 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:30: error: cannot find 'pthread_mutexattr_settype' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:63:30: error: cannot find 'pthread_mutexattr_init' in scope
61 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr = {
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:30: error: cannot find 'pthread_mutexattr_settype' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:62: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:30: error: cannot find 'pthread_mutexattr_settype' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:41:30: error: cannot find 'pthread_mutex_init' in scope
39 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 | self.mutex.assertValidAlignment()
41 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, Lock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:46:30: error: cannot find 'pthread_mutex_destroy' in scope
44 | @inlinable @inline(__always)
45 | deinit {
46 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
47 | }
48 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:51:30: error: cannot find 'pthread_mutex_lock' in scope
49 | @inlinable @inline(__always)
50 | func lock() {
51 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:56:30: error: cannot find 'pthread_mutex_unlock' in scope
54 | @inlinable @inline(__always)
55 | func unlock() {
56 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
57 | }
58 | }
/host/spi-builder-workspace/Sources/Promise/Lock.swift:77:30: error: cannot find 'pthread_mutex_init' in scope
75 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
76 | self.mutex.assertValidAlignment()
77 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
78 | }
79 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:82:30: error: cannot find 'pthread_mutex_destroy' in scope
80 | @inlinable @inline(__always)
81 | deinit {
82 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
83 | }
84 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:87:30: error: cannot find 'pthread_mutex_lock' in scope
85 | @inlinable @inline(__always)
86 | func lock() {
87 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
88 | }
89 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:92:30: error: cannot find 'pthread_mutex_unlock' in scope
90 | @inlinable @inline(__always)
91 | func unlock() {
92 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | }
94 | }
[12/20] Compiling Promise Lock.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:98:41: error: cannot find type 'DispatchQueue' in scope
96 | /// Re‑emits settlement using `queue.asyncUnsafe`.
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
100 | }
/host/spi-builder-workspace/Sources/Promise/Lock.swift:28:30: error: cannot find 'pthread_mutexattr_init' in scope
26 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr: UnsafePointer<pthread_mutexattr_t> = {
27 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:30: error: cannot find 'pthread_mutexattr_settype' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
28 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
29 | #if DEBUG
30 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
31 | #endif
32 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:63:30: error: cannot find 'pthread_mutexattr_init' in scope
61 | @usableFromInline @inline(__always) nonisolated(unsafe) static let attr = {
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
| `- error: cannot find 'pthread_mutexattr_init' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:30: error: cannot find 'pthread_mutexattr_settype' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:62: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
62 | let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
63 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:30: error: cannot find 'pthread_mutexattr_settype' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'pthread_mutexattr_settype' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:66:62: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
64 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
65 | #if DEBUG
66 | _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
67 | #endif
68 | return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:41:30: error: cannot find 'pthread_mutex_init' in scope
39 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 | self.mutex.assertValidAlignment()
41 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, Lock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:46:30: error: cannot find 'pthread_mutex_destroy' in scope
44 | @inlinable @inline(__always)
45 | deinit {
46 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
47 | }
48 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:51:30: error: cannot find 'pthread_mutex_lock' in scope
49 | @inlinable @inline(__always)
50 | func lock() {
51 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:56:30: error: cannot find 'pthread_mutex_unlock' in scope
54 | @inlinable @inline(__always)
55 | func unlock() {
56 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
57 | }
58 | }
/host/spi-builder-workspace/Sources/Promise/Lock.swift:77:30: error: cannot find 'pthread_mutex_init' in scope
75 | self.mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
76 | self.mutex.assertValidAlignment()
77 | _HANDLE_PTHREAD_CALL(pthread_mutex_init(mutex, RecursiveLock.attr), "pthread_mutex_init")
| `- error: cannot find 'pthread_mutex_init' in scope
78 | }
79 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:82:30: error: cannot find 'pthread_mutex_destroy' in scope
80 | @inlinable @inline(__always)
81 | deinit {
82 | _HANDLE_PTHREAD_CALL(pthread_mutex_destroy(mutex), "pthread_mutex_destroy")
| `- error: cannot find 'pthread_mutex_destroy' in scope
83 | }
84 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:87:30: error: cannot find 'pthread_mutex_lock' in scope
85 | @inlinable @inline(__always)
86 | func lock() {
87 | _HANDLE_PTHREAD_CALL(pthread_mutex_lock(mutex), "pthread_mutex_lock")
| `- error: cannot find 'pthread_mutex_lock' in scope
88 | }
89 |
/host/spi-builder-workspace/Sources/Promise/Lock.swift:92:30: error: cannot find 'pthread_mutex_unlock' in scope
90 | @inlinable @inline(__always)
91 | func unlock() {
92 | _HANDLE_PTHREAD_CALL(pthread_mutex_unlock(mutex), "pthread_mutex_unlock")
| `- error: cannot find 'pthread_mutex_unlock' in scope
93 | }
94 | }
[13/20] Compiling Promise Promise+Util.swift
[14/20] Compiling Promise Promise.swift
[15/20] Compiling Promise Promise+Operators.swift
[16/20] Compiling Promise Promise+OptionalResolve.swift
[17/20] Compiling Promise Promise+Cancel.swift
[18/20] Compiling Promise Promise+Combination.swift
[19/20] Compiling Promise Promise+Wait.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:28:32: error: cannot find type 'DispatchQueue' in scope
26 | /// The work starts immediately; only the *observation* is postponed.
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
30 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:35:32: error: cannot find type 'DispatchQueue' in scope
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable
35 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
36 | return self.wait(on: queue, for: duration.timeInterval)
37 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:43:39: error: cannot find type 'DispatchQueue' in scope
41 | /// Returns a promise that fulfills after `interval` seconds.
42 | @inlinable
43 | public static func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
44 | Promise.resolve().wait(on: queue, for: interval)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:50:39: error: cannot find type 'DispatchQueue' in scope
48 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
49 | @inlinable
50 | public static func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
51 | Promise.resolve().wait(on: queue, for: duration)
52 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:29:56: error: cannot call value of non-function type 'Date'
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
30 | }
31 |
[20/20] Compiling Promise Promise+Combine.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:28:32: error: cannot find type 'DispatchQueue' in scope
26 | /// The work starts immediately; only the *observation* is postponed.
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
30 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:35:32: error: cannot find type 'DispatchQueue' in scope
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable
35 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
36 | return self.wait(on: queue, for: duration.timeInterval)
37 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:43:39: error: cannot find type 'DispatchQueue' in scope
41 | /// Returns a promise that fulfills after `interval` seconds.
42 | @inlinable
43 | public static func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
44 | Promise.resolve().wait(on: queue, for: interval)
45 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:50:39: error: cannot find type 'DispatchQueue' in scope
48 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
49 | @inlinable
50 | public static func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output == Void, Failure == Never {
| `- error: cannot find type 'DispatchQueue' in scope
51 | Promise.resolve().wait(on: queue, for: duration)
52 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:54:35: error: cannot find type 'DispatchQueue' in scope
52 | /// Re‑emits the promise’s settlement on the supplied queue.
53 | @inlinable
54 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
55 | self.receive(on: { queue.async(execute: $0) })
56 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:29:56: error: cannot call value of non-function type 'Date'
27 | @inlinable
28 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
29 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
30 | }
31 |
BUILD FAILURE 6.1 wasm