Build Information
Failed to build Promise, reference 2.0.1 (d85a51), with Swift 6.1 for Wasm on 12 Jul 2025 13:45:56 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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: 2.0.1
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
* tag 2.0.1 -> FETCH_HEAD
HEAD is now at d85a515 fix concurrency error
Cloned https://github.com/ObuchiYuki/Promise.git
Revision (git rev-parse @):
d85a515d6e662f8c47d8f480f092d9bd1a945c2e
SUCCESS checkout https://github.com/ObuchiYuki/Promise.git at 2.0.1
========================================
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" : [
],
"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-4609320-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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/17] Emitting module Promise
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:13:43: error: cannot find type 'DispatchQueue' in scope
11 | extension Promise where Output: Sendable {
12 | @inlinable
13 | 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
14 | let promise = Promise<Output, Failure>()
15 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:20:43: error: cannot find type 'DispatchQueue' in scope
18 |
19 | @inlinable
20 | 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
21 | let promise = Promise<Output, Failure>()
22 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:27:46: error: cannot find type 'DispatchQueue' in scope
25 |
26 | @inlinable
27 | 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
28 | let promise = Promise<Output, Failure>()
29 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:34:46: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @inlinable
34 | 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
35 | let promise = Promise<Output, Failure>()
36 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:49:49: error: cannot find type 'DispatchQueue' in scope
47 | extension Promise {
48 | @inlinable
49 | 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
50 | let promise = Promise<Output, Failure>()
51 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:56:49: error: cannot find type 'DispatchQueue' in scope
54 |
55 | @inlinable
56 | 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
57 | let promise = Promise<Output, Failure>()
58 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:63:52: error: cannot find type 'DispatchQueue' in scope
61 |
62 | @inlinable
63 | 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
64 | let promise = Promise<Output, Failure>()
65 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:70:52: error: cannot find type 'DispatchQueue' in scope
68 |
69 | @inlinable
70 | 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
71 | let promise = Promise<Output, Failure>()
72 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:77:41: error: cannot find type 'DispatchQueue' in scope
75 |
76 | @inlinable
77 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
78 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
79 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:18:72: error: cannot find type 'DispatchQueue' in scope
16 |
17 | extension Promise where Output: Sendable {
18 | @inlinable public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
20 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:22:131: error: cannot find type 'DispatchQueue' in scope
20 | }
21 |
22 | @inlinable 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
23 | let promise = Promise<Output, Error>()
24 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:34:68: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
35 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
36 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:39:127: error: cannot find type 'DispatchQueue' in scope
37 |
38 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
39 | @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
40 | self.timeout(duration.timeInterval, error: error(), on: queue)
41 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:26:37: error: cannot call value of non-function type 'Date'
24 | self.subscribe(promise.resolve, promise.reject)
25 |
26 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
27 | promise.reject(error())
28 | }
/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 | @inlinable public func data(for url: URL) -> Promise<Data, Error> {
13 | self.fetch(url).map { $0.1 }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:46:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | extension Data {
45 | @inlinable public static func async(contentsOf url: URL) -> Promise<Data, Error> {
46 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | }
48 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Output' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:28: note: 'Output' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Failure' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | 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
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:36: note: 'Failure' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:21:32: error: cannot find type 'DispatchQueue' in scope
19 | extension Promise {
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:27:32: error: cannot find type 'DispatchQueue' in scope
25 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
26 | @inlinable
27 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
28 | return self.wait(on: queue, for: duration.timeInterval)
29 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:32:39: error: cannot find type 'DispatchQueue' in scope
30 |
31 | @inlinable
32 | 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
33 | Promise.resolve().wait(on: queue, for: interval)
34 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:38:39: error: cannot find type 'DispatchQueue' in scope
36 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
37 | @inlinable
38 | 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
39 | Promise.resolve().wait(on: queue, for: duration)
40 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:22:56: error: cannot call value of non-function type 'Date'
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
23 | }
24 |
/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 | }
[4/17] Compiling Promise Promise+Debug.swift
[5/17] Compiling Promise Promise+Init.swift
[6/17] Compiling Promise Promise+Operators.swift
[7/17] Compiling Promise Promise+OptionalResolve.swift
[8/17] Compiling Promise Promise+Cancel.swift
[9/17] Compiling Promise Promise+Combination.swift
[10/17] Compiling Promise Promise+Concurrency.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:77:41: error: cannot find type 'DispatchQueue' in scope
75 |
76 | @inlinable
77 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
78 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
79 | }
/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 | }
[11/17] Compiling Promise Lock.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:77:41: error: cannot find type 'DispatchQueue' in scope
75 |
76 | @inlinable
77 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
78 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
79 | }
/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/17] Compiling Promise Promise+Wait.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:21:32: error: cannot find type 'DispatchQueue' in scope
19 | extension Promise {
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:27:32: error: cannot find type 'DispatchQueue' in scope
25 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
26 | @inlinable
27 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
28 | return self.wait(on: queue, for: duration.timeInterval)
29 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:32:39: error: cannot find type 'DispatchQueue' in scope
30 |
31 | @inlinable
32 | 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
33 | Promise.resolve().wait(on: queue, for: interval)
34 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:38:39: error: cannot find type 'DispatchQueue' in scope
36 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
37 | @inlinable
38 | 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
39 | Promise.resolve().wait(on: queue, for: duration)
40 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:22:56: error: cannot call value of non-function type 'Date'
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
23 | }
24 |
[13/17] Compiling Promise Promise+Combine.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:21:32: error: cannot find type 'DispatchQueue' in scope
19 | extension Promise {
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:27:32: error: cannot find type 'DispatchQueue' in scope
25 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
26 | @inlinable
27 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
28 | return self.wait(on: queue, for: duration.timeInterval)
29 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:32:39: error: cannot find type 'DispatchQueue' in scope
30 |
31 | @inlinable
32 | 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
33 | Promise.resolve().wait(on: queue, for: interval)
34 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:38:39: error: cannot find type 'DispatchQueue' in scope
36 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
37 | @inlinable
38 | 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
39 | Promise.resolve().wait(on: queue, for: duration)
40 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:22:56: error: cannot call value of non-function type 'Date'
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
23 | }
24 |
[14/17] Compiling Promise Promise+Timeout.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:18:72: error: cannot find type 'DispatchQueue' in scope
16 |
17 | extension Promise where Output: Sendable {
18 | @inlinable public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
20 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:22:131: error: cannot find type 'DispatchQueue' in scope
20 | }
21 |
22 | @inlinable 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
23 | let promise = Promise<Output, Error>()
24 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:34:68: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
35 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
36 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:39:127: error: cannot find type 'DispatchQueue' in scope
37 |
38 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
39 | @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
40 | self.timeout(duration.timeInterval, error: error(), on: queue)
41 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:26:37: error: cannot call value of non-function type 'Date'
24 | self.subscribe(promise.resolve, promise.reject)
25 |
26 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
27 | promise.reject(error())
28 | }
/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 | @inlinable public func data(for url: URL) -> Promise<Data, Error> {
13 | self.fetch(url).map { $0.1 }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:46:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | extension Data {
45 | @inlinable public static func async(contentsOf url: URL) -> Promise<Data, Error> {
46 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | }
48 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:27:46: error: cannot find type 'DispatchQueue' in scope
25 |
26 | @inlinable
27 | 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
28 | let promise = Promise<Output, Failure>()
29 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:34:46: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @inlinable
34 | 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
35 | let promise = Promise<Output, Failure>()
36 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Output' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:28: note: 'Output' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Failure' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | 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
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:36: note: 'Failure' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:16:46: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | @inlinable public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
17 | self.fetch(request).map { $0.1 }
18 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:24:45: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | @inlinable public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
25 | let promise = Promise<(URLResponse, Data), Error>()
26 |
[15/17] Compiling Promise Promise+URLSession.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:18:72: error: cannot find type 'DispatchQueue' in scope
16 |
17 | extension Promise where Output: Sendable {
18 | @inlinable public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
20 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:22:131: error: cannot find type 'DispatchQueue' in scope
20 | }
21 |
22 | @inlinable 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
23 | let promise = Promise<Output, Error>()
24 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:34:68: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
35 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
36 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:39:127: error: cannot find type 'DispatchQueue' in scope
37 |
38 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
39 | @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
40 | self.timeout(duration.timeInterval, error: error(), on: queue)
41 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:26:37: error: cannot call value of non-function type 'Date'
24 | self.subscribe(promise.resolve, promise.reject)
25 |
26 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
27 | promise.reject(error())
28 | }
/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 | @inlinable public func data(for url: URL) -> Promise<Data, Error> {
13 | self.fetch(url).map { $0.1 }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:46:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | extension Data {
45 | @inlinable public static func async(contentsOf url: URL) -> Promise<Data, Error> {
46 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | }
48 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:27:46: error: cannot find type 'DispatchQueue' in scope
25 |
26 | @inlinable
27 | 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
28 | let promise = Promise<Output, Failure>()
29 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:34:46: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @inlinable
34 | 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
35 | let promise = Promise<Output, Failure>()
36 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Output' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:28: note: 'Output' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Failure' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | 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
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:36: note: 'Failure' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:16:46: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | @inlinable public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
17 | self.fetch(request).map { $0.1 }
18 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:24:45: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | @inlinable public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
25 | let promise = Promise<(URLResponse, Data), Error>()
26 |
[16/17] Compiling Promise Promise+GCD.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:13:43: error: cannot find type 'DispatchQueue' in scope
11 | extension Promise where Output: Sendable {
12 | @inlinable
13 | 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
14 | let promise = Promise<Output, Failure>()
15 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:20:43: error: cannot find type 'DispatchQueue' in scope
18 |
19 | @inlinable
20 | 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
21 | let promise = Promise<Output, Failure>()
22 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:27:46: error: cannot find type 'DispatchQueue' in scope
25 |
26 | @inlinable
27 | 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
28 | let promise = Promise<Output, Failure>()
29 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:34:46: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @inlinable
34 | 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
35 | let promise = Promise<Output, Failure>()
36 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:49:49: error: cannot find type 'DispatchQueue' in scope
47 | extension Promise {
48 | @inlinable
49 | 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
50 | let promise = Promise<Output, Failure>()
51 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:56:49: error: cannot find type 'DispatchQueue' in scope
54 |
55 | @inlinable
56 | 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
57 | let promise = Promise<Output, Failure>()
58 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:63:52: error: cannot find type 'DispatchQueue' in scope
61 |
62 | @inlinable
63 | 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
64 | let promise = Promise<Output, Failure>()
65 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:70:52: error: cannot find type 'DispatchQueue' in scope
68 |
69 | @inlinable
70 | 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
71 | let promise = Promise<Output, Failure>()
72 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:77:41: error: cannot find type 'DispatchQueue' in scope
75 |
76 | @inlinable
77 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
78 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
79 | }
[17/17] Compiling Promise Promise+MeasureInterval.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:13:43: error: cannot find type 'DispatchQueue' in scope
11 | extension Promise where Output: Sendable {
12 | @inlinable
13 | 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
14 | let promise = Promise<Output, Failure>()
15 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:20:43: error: cannot find type 'DispatchQueue' in scope
18 |
19 | @inlinable
20 | 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
21 | let promise = Promise<Output, Failure>()
22 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:27:46: error: cannot find type 'DispatchQueue' in scope
25 |
26 | @inlinable
27 | 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
28 | let promise = Promise<Output, Failure>()
29 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:34:46: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @inlinable
34 | 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
35 | let promise = Promise<Output, Failure>()
36 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:49:49: error: cannot find type 'DispatchQueue' in scope
47 | extension Promise {
48 | @inlinable
49 | 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
50 | let promise = Promise<Output, Failure>()
51 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:56:49: error: cannot find type 'DispatchQueue' in scope
54 |
55 | @inlinable
56 | 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
57 | let promise = Promise<Output, Failure>()
58 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:63:52: error: cannot find type 'DispatchQueue' in scope
61 |
62 | @inlinable
63 | 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
64 | let promise = Promise<Output, Failure>()
65 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:70:52: error: cannot find type 'DispatchQueue' in scope
68 |
69 | @inlinable
70 | 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
71 | let promise = Promise<Output, Failure>()
72 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:77:41: error: cannot find type 'DispatchQueue' in scope
75 |
76 | @inlinable
77 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
78 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
79 | }
[18/19] Compiling Promise Promise+Util.swift
[19/19] Compiling Promise Promise.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/16] Compiling Promise Promise+Timeout.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:18:72: error: cannot find type 'DispatchQueue' in scope
16 |
17 | extension Promise where Output: Sendable {
18 | @inlinable public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
20 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:22:131: error: cannot find type 'DispatchQueue' in scope
20 | }
21 |
22 | @inlinable 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
23 | let promise = Promise<Output, Error>()
24 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:34:68: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
35 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
36 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:39:127: error: cannot find type 'DispatchQueue' in scope
37 |
38 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
39 | @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
40 | self.timeout(duration.timeInterval, error: error(), on: queue)
41 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:26:37: error: cannot call value of non-function type 'Date'
24 | self.subscribe(promise.resolve, promise.reject)
25 |
26 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
27 | promise.reject(error())
28 | }
/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 | @inlinable public func data(for url: URL) -> Promise<Data, Error> {
13 | self.fetch(url).map { $0.1 }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:46:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | extension Data {
45 | @inlinable public static func async(contentsOf url: URL) -> Promise<Data, Error> {
46 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | }
48 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:27:46: error: cannot find type 'DispatchQueue' in scope
25 |
26 | @inlinable
27 | 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
28 | let promise = Promise<Output, Failure>()
29 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:34:46: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @inlinable
34 | 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
35 | let promise = Promise<Output, Failure>()
36 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Output' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:28: note: 'Output' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Failure' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | 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
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:36: note: 'Failure' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:16:46: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | @inlinable public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
17 | self.fetch(request).map { $0.1 }
18 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:24:45: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | @inlinable public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
25 | let promise = Promise<(URLResponse, Data), Error>()
26 |
[3/16] Compiling Promise Promise+URLSession.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:18:72: error: cannot find type 'DispatchQueue' in scope
16 |
17 | extension Promise where Output: Sendable {
18 | @inlinable public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
20 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:22:131: error: cannot find type 'DispatchQueue' in scope
20 | }
21 |
22 | @inlinable 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
23 | let promise = Promise<Output, Error>()
24 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:34:68: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
35 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
36 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:39:127: error: cannot find type 'DispatchQueue' in scope
37 |
38 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
39 | @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
40 | self.timeout(duration.timeInterval, error: error(), on: queue)
41 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:26:37: error: cannot call value of non-function type 'Date'
24 | self.subscribe(promise.resolve, promise.reject)
25 |
26 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
27 | promise.reject(error())
28 | }
/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 | @inlinable public func data(for url: URL) -> Promise<Data, Error> {
13 | self.fetch(url).map { $0.1 }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:46:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | extension Data {
45 | @inlinable public static func async(contentsOf url: URL) -> Promise<Data, Error> {
46 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | }
48 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:27:46: error: cannot find type 'DispatchQueue' in scope
25 |
26 | @inlinable
27 | 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
28 | let promise = Promise<Output, Failure>()
29 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:34:46: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @inlinable
34 | 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
35 | let promise = Promise<Output, Failure>()
36 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Output' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:28: note: 'Output' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Failure' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | 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
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:36: note: 'Failure' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:16:46: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | @inlinable public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
17 | self.fetch(request).map { $0.1 }
18 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:24:45: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | @inlinable public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
25 | let promise = Promise<(URLResponse, Data), Error>()
26 |
[4/16] Compiling Promise Promise+Wait.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:21:32: error: cannot find type 'DispatchQueue' in scope
19 | extension Promise {
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:27:32: error: cannot find type 'DispatchQueue' in scope
25 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
26 | @inlinable
27 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
28 | return self.wait(on: queue, for: duration.timeInterval)
29 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:32:39: error: cannot find type 'DispatchQueue' in scope
30 |
31 | @inlinable
32 | 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
33 | Promise.resolve().wait(on: queue, for: interval)
34 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:38:39: error: cannot find type 'DispatchQueue' in scope
36 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
37 | @inlinable
38 | 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
39 | Promise.resolve().wait(on: queue, for: duration)
40 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:22:56: error: cannot call value of non-function type 'Date'
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
23 | }
24 |
[5/16] Compiling Promise Promise+Combine.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:21:32: error: cannot find type 'DispatchQueue' in scope
19 | extension Promise {
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:27:32: error: cannot find type 'DispatchQueue' in scope
25 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
26 | @inlinable
27 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
28 | return self.wait(on: queue, for: duration.timeInterval)
29 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:32:39: error: cannot find type 'DispatchQueue' in scope
30 |
31 | @inlinable
32 | 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
33 | Promise.resolve().wait(on: queue, for: interval)
34 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:38:39: error: cannot find type 'DispatchQueue' in scope
36 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
37 | @inlinable
38 | 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
39 | Promise.resolve().wait(on: queue, for: duration)
40 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:22:56: error: cannot call value of non-function type 'Date'
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
23 | }
24 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/18] Emitting module Promise
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:13:43: error: cannot find type 'DispatchQueue' in scope
11 | extension Promise where Output: Sendable {
12 | @inlinable
13 | 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
14 | let promise = Promise<Output, Failure>()
15 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:20:43: error: cannot find type 'DispatchQueue' in scope
18 |
19 | @inlinable
20 | 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
21 | let promise = Promise<Output, Failure>()
22 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:27:46: error: cannot find type 'DispatchQueue' in scope
25 |
26 | @inlinable
27 | 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
28 | let promise = Promise<Output, Failure>()
29 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:34:46: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @inlinable
34 | 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
35 | let promise = Promise<Output, Failure>()
36 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:49:49: error: cannot find type 'DispatchQueue' in scope
47 | extension Promise {
48 | @inlinable
49 | 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
50 | let promise = Promise<Output, Failure>()
51 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:56:49: error: cannot find type 'DispatchQueue' in scope
54 |
55 | @inlinable
56 | 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
57 | let promise = Promise<Output, Failure>()
58 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:63:52: error: cannot find type 'DispatchQueue' in scope
61 |
62 | @inlinable
63 | 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
64 | let promise = Promise<Output, Failure>()
65 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:70:52: error: cannot find type 'DispatchQueue' in scope
68 |
69 | @inlinable
70 | 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
71 | let promise = Promise<Output, Failure>()
72 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:77:41: error: cannot find type 'DispatchQueue' in scope
75 |
76 | @inlinable
77 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
78 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
79 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:18:72: error: cannot find type 'DispatchQueue' in scope
16 |
17 | extension Promise where Output: Sendable {
18 | @inlinable public func timeout(_ interval: TimeInterval, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | self.timeout(interval, error: PromiseTimeoutError(), on: queue)
20 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:22:131: error: cannot find type 'DispatchQueue' in scope
20 | }
21 |
22 | @inlinable 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
23 | let promise = Promise<Output, Error>()
24 | self.subscribe(promise.resolve, promise.reject)
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:34:68: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
34 | @inlinable public func timeout(_ duration: Duration, on queue: DispatchQueue = .main) -> Promise<Output, Error> {
| `- error: cannot find type 'DispatchQueue' in scope
35 | self.timeout(duration.timeInterval, error: PromiseTimeoutError(), on: queue)
36 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:39:127: error: cannot find type 'DispatchQueue' in scope
37 |
38 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
39 | @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
40 | self.timeout(duration.timeInterval, error: error(), on: queue)
41 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Timeout.swift:26:37: error: cannot call value of non-function type 'Date'
24 | self.subscribe(promise.resolve, promise.reject)
25 |
26 | queue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
27 | promise.reject(error())
28 | }
/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 | @inlinable public func data(for url: URL) -> Promise<Data, Error> {
13 | self.fetch(url).map { $0.1 }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:46:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | extension Data {
45 | @inlinable public static func async(contentsOf url: URL) -> Promise<Data, Error> {
46 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | }
48 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Output' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | Promise.tryDispatch { try String(contentsOf: url, encoding: encoding) }
| `- error: generic parameter 'Output' could not be inferred
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:28: note: 'Output' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Output' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:52:9: error: generic parameter 'Failure' could not be inferred
50 | extension String {
51 | @inlinable public static func async(contentsOf url: URL, encoding: Encoding) -> Promise<String, Error> {
52 | 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
53 | }
54 | }
/host/spi-builder-workspace/Sources/Promise/Promise.swift:8:36: note: 'Failure' declared as parameter to type 'Promise'
6 | //
7 |
8 | public final class Promise<Output, Failure: Error> {
| `- note: 'Failure' declared as parameter to type 'Promise'
9 | public enum State {
10 | case pending
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:21:32: error: cannot find type 'DispatchQueue' in scope
19 | extension Promise {
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:27:32: error: cannot find type 'DispatchQueue' in scope
25 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
26 | @inlinable
27 | public func wait(on queue: DispatchQueue = .main, for duration: Duration) -> Promise<Output, Failure> where Output: Sendable {
| `- error: cannot find type 'DispatchQueue' in scope
28 | return self.wait(on: queue, for: duration.timeInterval)
29 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:32:39: error: cannot find type 'DispatchQueue' in scope
30 |
31 | @inlinable
32 | 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
33 | Promise.resolve().wait(on: queue, for: interval)
34 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:38:39: error: cannot find type 'DispatchQueue' in scope
36 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
37 | @inlinable
38 | 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
39 | Promise.resolve().wait(on: queue, for: duration)
40 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+Wait.swift:22:56: error: cannot call value of non-function type 'Date'
20 | @inlinable
21 | public func wait(on queue: DispatchQueue = .main, for interval: TimeInterval) -> Promise<Output, Failure> where Output: Sendable {
22 | self.receive(on: { queue.asyncAfter(deadline: .now() + interval, execute: $0) })
| `- error: cannot call value of non-function type 'Date'
23 | }
24 |
/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/18] Compiling Promise Promise+GCD.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:13:43: error: cannot find type 'DispatchQueue' in scope
11 | extension Promise where Output: Sendable {
12 | @inlinable
13 | 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
14 | let promise = Promise<Output, Failure>()
15 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:20:43: error: cannot find type 'DispatchQueue' in scope
18 |
19 | @inlinable
20 | 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
21 | let promise = Promise<Output, Failure>()
22 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:27:46: error: cannot find type 'DispatchQueue' in scope
25 |
26 | @inlinable
27 | 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
28 | let promise = Promise<Output, Failure>()
29 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:34:46: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @inlinable
34 | 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
35 | let promise = Promise<Output, Failure>()
36 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:49:49: error: cannot find type 'DispatchQueue' in scope
47 | extension Promise {
48 | @inlinable
49 | 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
50 | let promise = Promise<Output, Failure>()
51 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:56:49: error: cannot find type 'DispatchQueue' in scope
54 |
55 | @inlinable
56 | 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
57 | let promise = Promise<Output, Failure>()
58 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:63:52: error: cannot find type 'DispatchQueue' in scope
61 |
62 | @inlinable
63 | 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
64 | let promise = Promise<Output, Failure>()
65 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:70:52: error: cannot find type 'DispatchQueue' in scope
68 |
69 | @inlinable
70 | 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
71 | let promise = Promise<Output, Failure>()
72 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:77:41: error: cannot find type 'DispatchQueue' in scope
75 |
76 | @inlinable
77 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
78 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
79 | }
[8/18] Compiling Promise Promise+MeasureInterval.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:13:43: error: cannot find type 'DispatchQueue' in scope
11 | extension Promise where Output: Sendable {
12 | @inlinable
13 | 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
14 | let promise = Promise<Output, Failure>()
15 | queue.async { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:20:43: error: cannot find type 'DispatchQueue' in scope
18 |
19 | @inlinable
20 | 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
21 | let promise = Promise<Output, Failure>()
22 | queue.async { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:27:46: error: cannot find type 'DispatchQueue' in scope
25 |
26 | @inlinable
27 | 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
28 | let promise = Promise<Output, Failure>()
29 | queue.async { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:34:46: error: cannot find type 'DispatchQueue' in scope
32 |
33 | @inlinable
34 | 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
35 | let promise = Promise<Output, Failure>()
36 | queue.async { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:49:49: error: cannot find type 'DispatchQueue' in scope
47 | extension Promise {
48 | @inlinable
49 | 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
50 | let promise = Promise<Output, Failure>()
51 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:56:49: error: cannot find type 'DispatchQueue' in scope
54 |
55 | @inlinable
56 | 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
57 | let promise = Promise<Output, Failure>()
58 | queue.asyncUnsafe { promise.resolve(output()) }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:63:52: error: cannot find type 'DispatchQueue' in scope
61 |
62 | @inlinable
63 | 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
64 | let promise = Promise<Output, Failure>()
65 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:70:52: error: cannot find type 'DispatchQueue' in scope
68 |
69 | @inlinable
70 | 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
71 | let promise = Promise<Output, Failure>()
72 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:77:41: error: cannot find type 'DispatchQueue' in scope
75 |
76 | @inlinable
77 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
78 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
79 | }
[9/18] Compiling Promise Promise+Util.swift
[10/18] Compiling Promise Promise.swift
[11/18] Compiling Promise Promise+Concurrency.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:77:41: error: cannot find type 'DispatchQueue' in scope
75 |
76 | @inlinable
77 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
78 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
79 | }
/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/18] Compiling Promise Lock.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:41:35: error: cannot find type 'DispatchQueue' in scope
39 |
40 | @inlinable
41 | public func receive(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.receive(on: { queue.async(execute: $0) })
43 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:77:41: error: cannot find type 'DispatchQueue' in scope
75 |
76 | @inlinable
77 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
78 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
79 | }
/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/18] Compiling Promise Promise+Cancel.swift
[14/18] Compiling Promise Promise+Combination.swift
[15/18] Compiling Promise Promise+Operators.swift
[16/18] Compiling Promise Promise+OptionalResolve.swift
[17/18] Compiling Promise Promise+Debug.swift
[18/18] Compiling Promise Promise+Init.swift
BUILD FAILURE 6.1 wasm