The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Promises, reference master (2949f5), with Swift 6.1 for Wasm on 27 May 2025 09:41:56 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/khanlou/Promise.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/khanlou/Promise
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2949f58 Add promise async getter (#79)
Cloned https://github.com/khanlou/Promise.git
Revision (git rev-parse @):
2949f58f2ca81964447a1435f6e162d5cb4bb092
SUCCESS checkout https://github.com/khanlou/Promise.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/khanlou/Promise.git
https://github.com/khanlou/Promise.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Promises",
  "name" : "Promises",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Promise",
      "targets" : [
        "Promise"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PromiseTests",
      "module_type" : "SwiftTarget",
      "name" : "PromiseTests",
      "path" : "PromiseTests",
      "sources" : [
        "ExecutionContextTests.swift",
        "PromiseAllTests.swift",
        "PromiseAlwaysTests.swift",
        "PromiseDelayTests.swift",
        "PromiseEnsureTests.swift",
        "PromiseErrorMatcherTests.swift",
        "PromiseErrorTests.swift",
        "PromiseKickoffTests.swift",
        "PromiseRaceTests.swift",
        "PromiseRecoverTests.swift",
        "PromiseRetryTests.swift",
        "PromiseTests.swift",
        "PromiseThrowsTests.swift",
        "PromiseZipTests.swift",
        "Wrench.swift",
        "delay.swift"
      ],
      "target_dependencies" : [
        "Promise"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Promise",
      "module_type" : "SwiftTarget",
      "name" : "Promise",
      "path" : "Promise",
      "product_memberships" : [
        "Promise"
      ],
      "sources" : [
        "Promise+Extras.swift",
        "Promise.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
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
[3/5] Compiling Promise Promise.swift
/host/spi-builder-workspace/Promise/Promise.swift:18:11: error: cannot find type 'DispatchQueue' in scope
 16 | }
 17 |
 18 | extension DispatchQueue: ExecutionContext {
    |           `- error: cannot find type 'DispatchQueue' in scope
 19 |
 20 |     public func execute(_ work: @escaping () -> Void) {
/host/spi-builder-workspace/Promise/Promise.swift:29:24: error: cannot find type 'DispatchQueue' in scope
 27 |     private var valid = true
 28 |
 29 |     private var queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 30 |
 31 |     public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Promise/Promise.swift:31:24: error: cannot find type 'DispatchQueue' in scope
 29 |     private var queue: DispatchQueue
 30 |
 31 |     public init(queue: DispatchQueue = .main) {
    |                        `- error: cannot find type 'DispatchQueue' in scope
 32 |         self.queue = queue
 33 |     }
/host/spi-builder-workspace/Promise/Promise.swift:136:29: error: cannot find 'DispatchQueue' in scope
134 |
135 |     private var state: State<Value>
136 |     private let lockQueue = DispatchQueue(label: "promise_lock_queue", qos: .userInitiated)
    |                             `- error: cannot find 'DispatchQueue' in scope
137 |
138 |     /// Creates a Promise in the pending state which can be fulfilled or rejected.
/host/spi-builder-workspace/Promise/Promise.swift:136:78: error: cannot infer contextual base in reference to member 'userInitiated'
134 |
135 |     private var state: State<Value>
136 |     private let lockQueue = DispatchQueue(label: "promise_lock_queue", qos: .userInitiated)
    |                                                                              `- error: cannot infer contextual base in reference to member 'userInitiated'
137 |
138 |     /// Creates a Promise in the pending state which can be fulfilled or rejected.
/host/spi-builder-workspace/Promise/Promise.swift:173:36: error: cannot find type 'DispatchQueue' in scope
171 |     /// Promises are *rejected* if they fail, and thus, generate an `Error`.
172 |     /// With this library, any Promise can produce any `Error`
173 |     public convenience init(queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), work: @escaping (_ fulfill: @escaping (Value) -> Void, _ reject: @escaping (Error) -> Void) throws -> Void) {
    |                                    `- error: cannot find type 'DispatchQueue' in scope
174 |         self.init()
175 |         queue.async(execute: {
/host/spi-builder-workspace/Promise/Promise.swift:194:61: error: cannot find 'DispatchQueue' in scope
192 |     /// This is roughly the equivalent of a traditional `flatMap()`.
193 |     @discardableResult
194 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Promise<NewValue>) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
195 |         return Promise<NewValue>(work: { fulfill, reject in
196 |             self.addCallbacks(
/host/spi-builder-workspace/Promise/Promise.swift:221:61: error: cannot find 'DispatchQueue' in scope
219 |     /// This is roughly the equivalent of a traditional `map()`.
220 |     @discardableResult
221 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> NewValue) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
222 |         return then(on: queue, { (value) -> Promise<NewValue> in
223 |             do {
/host/spi-builder-workspace/Promise/Promise.swift:239:51: error: cannot find 'DispatchQueue' in scope
237 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
238 |     @discardableResult
239 |     public func then(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void, _ onRejected: @escaping (Error) -> Void = { _ in }) -> Promise<Value> {
    |                                                   `- error: cannot find 'DispatchQueue' in scope
240 |         addCallbacks(on: queue, onFulfilled: onFulfilled, onRejected: onRejected)
241 |         return self
/host/spi-builder-workspace/Promise/Promise.swift:251:54: error: cannot find 'DispatchQueue' in scope
249 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
250 |     @discardableResult
251 |     public func `catch`(on queue: ExecutionContext = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Promise<Value> {
    |                                                      `- error: cannot find 'DispatchQueue' in scope
252 |         return then(on: queue, { _ in }, onRejected)
253 |     }
/host/spi-builder-workspace/Promise/Promise.swift:304:60: error: cannot find 'DispatchQueue' in scope
302 |     }
303 |
304 |     private func addCallbacks(on queue: ExecutionContext = DispatchQueue.main, onFulfilled: @escaping (Value) -> Void, onRejected: @escaping (Error) -> Void) {
    |                                                            `- error: cannot find 'DispatchQueue' in scope
305 |         let callback = Callback(onFulfilled: onFulfilled, onRejected: onRejected, executionContext: queue)
306 |         lockQueue.async(flags: .barrier, execute: {
/host/spi-builder-workspace/Promise/Promise.swift:195:40: error: argument passed to call that takes no arguments
193 |     @discardableResult
194 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Promise<NewValue>) -> Promise<NewValue> {
195 |         return Promise<NewValue>(work: { fulfill, reject in
    |                                        `- error: argument passed to call that takes no arguments
196 |             self.addCallbacks(
197 |                 on: queue,
/host/spi-builder-workspace/Promise/Promise.swift:306:33: error: cannot infer contextual base in reference to member 'barrier'
304 |     private func addCallbacks(on queue: ExecutionContext = DispatchQueue.main, onFulfilled: @escaping (Value) -> Void, onRejected: @escaping (Error) -> Void) {
305 |         let callback = Callback(onFulfilled: onFulfilled, onRejected: onRejected, executionContext: queue)
306 |         lockQueue.async(flags: .barrier, execute: {
    |                                 `- error: cannot infer contextual base in reference to member 'barrier'
307 |             switch self.state {
308 |             case .pending(let callbacks):
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module Promise
/host/spi-builder-workspace/Promise/Promise+Extras.swift:209:53: error: cannot find 'DispatchQueue' in scope
207 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
208 |     @discardableResult
209 |     public func always(on queue: ExecutionContext = DispatchQueue.main, _ onComplete: @escaping () -> Void) -> Promise<Value> {
    |                                                     `- error: cannot find 'DispatchQueue' in scope
210 |         return then(on: queue, { _ in
211 |             onComplete()
/host/spi-builder-workspace/Promise/Promise+Extras.swift:223:54: error: cannot find 'DispatchQueue' in scope
221 |     ///   - recovery: Recovery routine to perform; this returns a new `Promise`
222 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
223 |     public func recover(on queue: ExecutionContext = DispatchQueue.main, _ recovery: @escaping (Error) throws -> Promise<Value>) -> Promise<Value> {
    |                                                      `- error: cannot find 'DispatchQueue' in scope
224 |         return recover(type: Error.self, on: queue, recovery)
225 |     }
/host/spi-builder-workspace/Promise/Promise+Extras.swift:234:88: error: cannot find 'DispatchQueue' in scope
232 |     ///   - recovery: Routine to run to recover from the error; returns a new `Promise`.
233 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
234 |     public func recover<E: Error>(type errorType: E.Type, on queue: ExecutionContext = DispatchQueue.main, _ recovery: @escaping (E) throws -> Promise<Value>) -> Promise<Value> {
    |                                                                                        `- error: cannot find 'DispatchQueue' in scope
235 |         return Promise(work: { fulfill, reject in
236 |             self.then(on: queue, fulfill).catch(on: queue, { anyError in
/host/spi-builder-workspace/Promise/Promise+Extras.swift:283:55: error: cannot find 'DispatchQueue' in scope
281 |     ///   - transformError: Transformer to convert the erorr into a new error.
282 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
283 |     public func mapError(on queue: ExecutionContext = DispatchQueue.main, _ transformError: @escaping (Error) -> Error) -> Promise {
    |                                                       `- error: cannot find 'DispatchQueue' in scope
284 |         return self.mapError(type: Error.self, on: queue, transformError)
285 |     }
/host/spi-builder-workspace/Promise/Promise+Extras.swift:294:89: error: cannot find 'DispatchQueue' in scope
292 |     ///   - transformError: Transformer to convert an error of type `errorType` into a new error.
293 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
294 |     public func mapError<E: Error>(type errorType: E.Type, on queue: ExecutionContext = DispatchQueue.main, _ transformError: @escaping (E) -> Error) -> Promise {
    |                                                                                         `- error: cannot find 'DispatchQueue' in scope
295 |         return self.recover(type: errorType, on: queue, { (error) -> Promise<Value> in
296 |             return Promise(error: transformError(error))
/host/spi-builder-workspace/Promise/Promise+Extras.swift:308:25: error: cannot find type 'DispatchQueue' in scope
306 |     ///            Defaults to the main queue.
307 |     /// - Returns: The promise's value or an error.
308 |     func wait(on queue: DispatchQueue = DispatchQueue.main) async throws -> Value {
    |                         `- error: cannot find type 'DispatchQueue' in scope
309 |         try await withCheckedThrowingContinuation { continuation in
310 |             self.then(on: queue) { value in
/host/spi-builder-workspace/Promise/Promise.swift:18:11: error: cannot find type 'DispatchQueue' in scope
 16 | }
 17 |
 18 | extension DispatchQueue: ExecutionContext {
    |           `- error: cannot find type 'DispatchQueue' in scope
 19 |
 20 |     public func execute(_ work: @escaping () -> Void) {
/host/spi-builder-workspace/Promise/Promise.swift:29:24: error: cannot find type 'DispatchQueue' in scope
 27 |     private var valid = true
 28 |
 29 |     private var queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 30 |
 31 |     public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Promise/Promise.swift:31:24: error: cannot find type 'DispatchQueue' in scope
 29 |     private var queue: DispatchQueue
 30 |
 31 |     public init(queue: DispatchQueue = .main) {
    |                        `- error: cannot find type 'DispatchQueue' in scope
 32 |         self.queue = queue
 33 |     }
/host/spi-builder-workspace/Promise/Promise.swift:136:29: error: cannot find 'DispatchQueue' in scope
134 |
135 |     private var state: State<Value>
136 |     private let lockQueue = DispatchQueue(label: "promise_lock_queue", qos: .userInitiated)
    |                             `- error: cannot find 'DispatchQueue' in scope
137 |
138 |     /// Creates a Promise in the pending state which can be fulfilled or rejected.
/host/spi-builder-workspace/Promise/Promise.swift:136:78: error: cannot infer contextual base in reference to member 'userInitiated'
134 |
135 |     private var state: State<Value>
136 |     private let lockQueue = DispatchQueue(label: "promise_lock_queue", qos: .userInitiated)
    |                                                                              `- error: cannot infer contextual base in reference to member 'userInitiated'
137 |
138 |     /// Creates a Promise in the pending state which can be fulfilled or rejected.
/host/spi-builder-workspace/Promise/Promise.swift:173:36: error: cannot find type 'DispatchQueue' in scope
171 |     /// Promises are *rejected* if they fail, and thus, generate an `Error`.
172 |     /// With this library, any Promise can produce any `Error`
173 |     public convenience init(queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), work: @escaping (_ fulfill: @escaping (Value) -> Void, _ reject: @escaping (Error) -> Void) throws -> Void) {
    |                                    `- error: cannot find type 'DispatchQueue' in scope
174 |         self.init()
175 |         queue.async(execute: {
/host/spi-builder-workspace/Promise/Promise.swift:194:61: error: cannot find 'DispatchQueue' in scope
192 |     /// This is roughly the equivalent of a traditional `flatMap()`.
193 |     @discardableResult
194 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Promise<NewValue>) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
195 |         return Promise<NewValue>(work: { fulfill, reject in
196 |             self.addCallbacks(
/host/spi-builder-workspace/Promise/Promise.swift:221:61: error: cannot find 'DispatchQueue' in scope
219 |     /// This is roughly the equivalent of a traditional `map()`.
220 |     @discardableResult
221 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> NewValue) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
222 |         return then(on: queue, { (value) -> Promise<NewValue> in
223 |             do {
/host/spi-builder-workspace/Promise/Promise.swift:239:51: error: cannot find 'DispatchQueue' in scope
237 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
238 |     @discardableResult
239 |     public func then(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void, _ onRejected: @escaping (Error) -> Void = { _ in }) -> Promise<Value> {
    |                                                   `- error: cannot find 'DispatchQueue' in scope
240 |         addCallbacks(on: queue, onFulfilled: onFulfilled, onRejected: onRejected)
241 |         return self
/host/spi-builder-workspace/Promise/Promise.swift:251:54: error: cannot find 'DispatchQueue' in scope
249 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
250 |     @discardableResult
251 |     public func `catch`(on queue: ExecutionContext = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Promise<Value> {
    |                                                      `- error: cannot find 'DispatchQueue' in scope
252 |         return then(on: queue, { _ in }, onRejected)
253 |     }
/host/spi-builder-workspace/Promise/Promise.swift:304:60: error: cannot find 'DispatchQueue' in scope
302 |     }
303 |
304 |     private func addCallbacks(on queue: ExecutionContext = DispatchQueue.main, onFulfilled: @escaping (Value) -> Void, onRejected: @escaping (Error) -> Void) {
    |                                                            `- error: cannot find 'DispatchQueue' in scope
305 |         let callback = Callback(onFulfilled: onFulfilled, onRejected: onRejected, executionContext: queue)
306 |         lockQueue.async(flags: .barrier, execute: {
[5/5] Compiling Promise Promise+Extras.swift
/host/spi-builder-workspace/Promise/Promise+Extras.swift:209:53: error: cannot find 'DispatchQueue' in scope
207 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
208 |     @discardableResult
209 |     public func always(on queue: ExecutionContext = DispatchQueue.main, _ onComplete: @escaping () -> Void) -> Promise<Value> {
    |                                                     `- error: cannot find 'DispatchQueue' in scope
210 |         return then(on: queue, { _ in
211 |             onComplete()
/host/spi-builder-workspace/Promise/Promise+Extras.swift:223:54: error: cannot find 'DispatchQueue' in scope
221 |     ///   - recovery: Recovery routine to perform; this returns a new `Promise`
222 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
223 |     public func recover(on queue: ExecutionContext = DispatchQueue.main, _ recovery: @escaping (Error) throws -> Promise<Value>) -> Promise<Value> {
    |                                                      `- error: cannot find 'DispatchQueue' in scope
224 |         return recover(type: Error.self, on: queue, recovery)
225 |     }
/host/spi-builder-workspace/Promise/Promise+Extras.swift:234:88: error: cannot find 'DispatchQueue' in scope
232 |     ///   - recovery: Routine to run to recover from the error; returns a new `Promise`.
233 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
234 |     public func recover<E: Error>(type errorType: E.Type, on queue: ExecutionContext = DispatchQueue.main, _ recovery: @escaping (E) throws -> Promise<Value>) -> Promise<Value> {
    |                                                                                        `- error: cannot find 'DispatchQueue' in scope
235 |         return Promise(work: { fulfill, reject in
236 |             self.then(on: queue, fulfill).catch(on: queue, { anyError in
/host/spi-builder-workspace/Promise/Promise+Extras.swift:283:55: error: cannot find 'DispatchQueue' in scope
281 |     ///   - transformError: Transformer to convert the erorr into a new error.
282 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
283 |     public func mapError(on queue: ExecutionContext = DispatchQueue.main, _ transformError: @escaping (Error) -> Error) -> Promise {
    |                                                       `- error: cannot find 'DispatchQueue' in scope
284 |         return self.mapError(type: Error.self, on: queue, transformError)
285 |     }
/host/spi-builder-workspace/Promise/Promise+Extras.swift:294:89: error: cannot find 'DispatchQueue' in scope
292 |     ///   - transformError: Transformer to convert an error of type `errorType` into a new error.
293 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
294 |     public func mapError<E: Error>(type errorType: E.Type, on queue: ExecutionContext = DispatchQueue.main, _ transformError: @escaping (E) -> Error) -> Promise {
    |                                                                                         `- error: cannot find 'DispatchQueue' in scope
295 |         return self.recover(type: errorType, on: queue, { (error) -> Promise<Value> in
296 |             return Promise(error: transformError(error))
/host/spi-builder-workspace/Promise/Promise+Extras.swift:308:25: error: cannot find type 'DispatchQueue' in scope
306 |     ///            Defaults to the main queue.
307 |     /// - Returns: The promise's value or an error.
308 |     func wait(on queue: DispatchQueue = DispatchQueue.main) async throws -> Value {
    |                         `- error: cannot find type 'DispatchQueue' in scope
309 |         try await withCheckedThrowingContinuation { continuation in
310 |             self.then(on: queue) { value in
/host/spi-builder-workspace/Promise/Promise.swift:173:36: error: cannot find type 'DispatchQueue' in scope
171 |     /// Promises are *rejected* if they fail, and thus, generate an `Error`.
172 |     /// With this library, any Promise can produce any `Error`
173 |     public convenience init(queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), work: @escaping (_ fulfill: @escaping (Value) -> Void, _ reject: @escaping (Error) -> Void) throws -> Void) {
    |                                    `- error: cannot find type 'DispatchQueue' in scope
174 |         self.init()
175 |         queue.async(execute: {
/host/spi-builder-workspace/Promise/Promise+Extras.swift:28:35: error: argument passed to call that takes no arguments
 26 |     /// results or the first failure. Fails if any of the input promises fail.
 27 |     public static func all<T>(_ promises: [Promise<T>]) -> Promise<[T]> {
 28 |         return Promise<[T]>(work: { fulfill, reject in
    |                                   `- error: argument passed to call that takes no arguments
 29 |             guard !promises.isEmpty else { fulfill([]); return }
 30 |             for promise in promises {
/host/spi-builder-workspace/Promise/Promise+Extras.swift:47:13: error: cannot find 'DispatchQueue' in scope
 45 |     public static func delay(_ delay: TimeInterval) -> Promise<()> {
 46 |         return Promise<()>(work: { fulfill, reject in
 47 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: {
    |             `- error: cannot find 'DispatchQueue' in scope
 48 |                 fulfill(())
 49 |             })
/host/spi-builder-workspace/Promise/Promise+Extras.swift:46:34: error: argument passed to call that takes no arguments
 44 |     /// - Returns: A `Promise<()>` that is resolved after `delay` seconds.
 45 |     public static func delay(_ delay: TimeInterval) -> Promise<()> {
 46 |         return Promise<()>(work: { fulfill, reject in
    |                                  `- error: argument passed to call that takes no arguments
 47 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: {
 48 |                 fulfill(())
/host/spi-builder-workspace/Promise/Promise+Extras.swift:47:54: error: cannot call value of non-function type 'Date'
 45 |     public static func delay(_ delay: TimeInterval) -> Promise<()> {
 46 |         return Promise<()>(work: { fulfill, reject in
 47 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: {
    |                                                      `- error: cannot call value of non-function type 'Date'
 48 |                 fulfill(())
 49 |             })
/host/spi-builder-workspace/Promise/Promise+Extras.swift:57:33: error: argument passed to call that takes no arguments
 55 |     /// - Returns: A Promise that is rejected after `timeout` seconds.
 56 |     public static func timeout<T>(_ timeout: TimeInterval) -> Promise<T> {
 57 |         return Promise<T>(work: { fulfill, reject in
    |                                 `- error: argument passed to call that takes no arguments
 58 |             delay(timeout).then({ _ in
 59 |                 reject(NSError(domain: "com.khanlou.Promise", code: -1111, userInfo: [ NSLocalizedDescriptionKey: "Timed out" ]))
/host/spi-builder-workspace/Promise/Promise+Extras.swift:73:33: error: argument passed to call that takes no arguments
 71 |     /// where `all()` will wait for every promise to complete and return all of them.
 72 |     public static func race<T>(_ promises: [Promise<T>]) -> Promise<T> {
 73 |         return Promise<T>(work: { fulfill, reject in
    |                                 `- error: argument passed to call that takes no arguments
 74 |             guard !promises.isEmpty else { fatalError() }
 75 |             for promise in promises {
/host/spi-builder-workspace/Promise/Promise+Extras.swift:95:33: error: argument passed to call that takes no arguments
 93 |             return generate()
 94 |         }
 95 |         return Promise<T>(work: { fulfill, reject in
    |                                 `- error: argument passed to call that takes no arguments
 96 |             generate().recover({ error in
 97 |                 return self.delay(delay).then({
/host/spi-builder-workspace/Promise/Promise.swift:194:61: error: cannot find 'DispatchQueue' in scope
192 |     /// This is roughly the equivalent of a traditional `flatMap()`.
193 |     @discardableResult
194 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Promise<NewValue>) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
195 |         return Promise<NewValue>(work: { fulfill, reject in
196 |             self.addCallbacks(
/host/spi-builder-workspace/Promise/Promise+Extras.swift:132:38: error: argument passed to call that takes no arguments
130 |     /// - Returns: A `Promise<>` whose type is a tuple of the values of the two given promises.
131 |     public static func zip<T, U>(_ first: Promise<T>, _ second: Promise<U>) -> Promise<(T, U)> {
132 |         return Promise<(T, U)>(work: { fulfill, reject in
    |                                      `- error: argument passed to call that takes no arguments
133 |             let resolver: (Any) -> Void = { _ in
134 |                 if let firstValue = first.value, let secondValue = second.value {
/host/spi-builder-workspace/Promise/Promise+Extras.swift:155:44: error: argument passed to call that takes no arguments
153 |     /// - Returns: A `Promise<>` whose type is a typle of the values of the three given promises.
154 |     public static func zip<T1, T2, T3>(_ p1: Promise<T1>, _ p2: Promise<T2>, _ last: Promise<T3>) -> Promise<(T1, T2, T3)> {
155 |         return Promise<(T1, T2, T3)>(work: { (fulfill: @escaping ((T1, T2, T3)) -> Void, reject: @escaping (Error) -> Void) in
    |                                            `- error: argument passed to call that takes no arguments
156 |             let zipped: Promise<(T1, T2)> = zip(p1, p2)
157 |
/host/spi-builder-workspace/Promise/Promise+Extras.swift:177:48: error: argument passed to call that takes no arguments
175 |     /// - Returns: A `Promise<>` whose type is a typle of the values of the three given promises.
176 |     public static func zip<T1, T2, T3, T4>(_ p1: Promise<T1>, _ p2: Promise<T2>, _ p3: Promise<T3>, _ last: Promise<T4>) -> Promise<(T1, T2, T3, T4)> {
177 |         return Promise<(T1, T2, T3, T4)>(work: { (fulfill: @escaping ((T1, T2, T3, T4)) -> Void, reject: @escaping (Error) -> Void) in
    |                                                `- error: argument passed to call that takes no arguments
178 |             let zipped: Promise<(T1, T2, T3)> = zip(p1, p2, p3)
179 |
/host/spi-builder-workspace/Promise/Promise+Extras.swift:235:30: error: argument passed to call that takes no arguments
233 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
234 |     public func recover<E: Error>(type errorType: E.Type, on queue: ExecutionContext = DispatchQueue.main, _ recovery: @escaping (E) throws -> Promise<Value>) -> Promise<Value> {
235 |         return Promise(work: { fulfill, reject in
    |                              `- error: argument passed to call that takes no arguments
236 |             self.then(on: queue, fulfill).catch(on: queue, { anyError in
237 |                 guard let error = anyError as? E else {
/host/spi-builder-workspace/Promise/Promise.swift:221:61: error: cannot find 'DispatchQueue' in scope
219 |     /// This is roughly the equivalent of a traditional `map()`.
220 |     @discardableResult
221 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> NewValue) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
222 |         return then(on: queue, { (value) -> Promise<NewValue> in
223 |             do {
/host/spi-builder-workspace/Promise/Promise.swift:251:54: error: cannot find 'DispatchQueue' in scope
249 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
250 |     @discardableResult
251 |     public func `catch`(on queue: ExecutionContext = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Promise<Value> {
    |                                                      `- error: cannot find 'DispatchQueue' in scope
252 |         return then(on: queue, { _ in }, onRejected)
253 |     }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Emitting module Promise
/host/spi-builder-workspace/Promise/Promise+Extras.swift:209:53: error: cannot find 'DispatchQueue' in scope
207 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
208 |     @discardableResult
209 |     public func always(on queue: ExecutionContext = DispatchQueue.main, _ onComplete: @escaping () -> Void) -> Promise<Value> {
    |                                                     `- error: cannot find 'DispatchQueue' in scope
210 |         return then(on: queue, { _ in
211 |             onComplete()
/host/spi-builder-workspace/Promise/Promise+Extras.swift:223:54: error: cannot find 'DispatchQueue' in scope
221 |     ///   - recovery: Recovery routine to perform; this returns a new `Promise`
222 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
223 |     public func recover(on queue: ExecutionContext = DispatchQueue.main, _ recovery: @escaping (Error) throws -> Promise<Value>) -> Promise<Value> {
    |                                                      `- error: cannot find 'DispatchQueue' in scope
224 |         return recover(type: Error.self, on: queue, recovery)
225 |     }
/host/spi-builder-workspace/Promise/Promise+Extras.swift:234:88: error: cannot find 'DispatchQueue' in scope
232 |     ///   - recovery: Routine to run to recover from the error; returns a new `Promise`.
233 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
234 |     public func recover<E: Error>(type errorType: E.Type, on queue: ExecutionContext = DispatchQueue.main, _ recovery: @escaping (E) throws -> Promise<Value>) -> Promise<Value> {
    |                                                                                        `- error: cannot find 'DispatchQueue' in scope
235 |         return Promise(work: { fulfill, reject in
236 |             self.then(on: queue, fulfill).catch(on: queue, { anyError in
/host/spi-builder-workspace/Promise/Promise+Extras.swift:283:55: error: cannot find 'DispatchQueue' in scope
281 |     ///   - transformError: Transformer to convert the erorr into a new error.
282 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
283 |     public func mapError(on queue: ExecutionContext = DispatchQueue.main, _ transformError: @escaping (Error) -> Error) -> Promise {
    |                                                       `- error: cannot find 'DispatchQueue' in scope
284 |         return self.mapError(type: Error.self, on: queue, transformError)
285 |     }
/host/spi-builder-workspace/Promise/Promise+Extras.swift:294:89: error: cannot find 'DispatchQueue' in scope
292 |     ///   - transformError: Transformer to convert an error of type `errorType` into a new error.
293 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
294 |     public func mapError<E: Error>(type errorType: E.Type, on queue: ExecutionContext = DispatchQueue.main, _ transformError: @escaping (E) -> Error) -> Promise {
    |                                                                                         `- error: cannot find 'DispatchQueue' in scope
295 |         return self.recover(type: errorType, on: queue, { (error) -> Promise<Value> in
296 |             return Promise(error: transformError(error))
/host/spi-builder-workspace/Promise/Promise+Extras.swift:308:25: error: cannot find type 'DispatchQueue' in scope
306 |     ///            Defaults to the main queue.
307 |     /// - Returns: The promise's value or an error.
308 |     func wait(on queue: DispatchQueue = DispatchQueue.main) async throws -> Value {
    |                         `- error: cannot find type 'DispatchQueue' in scope
309 |         try await withCheckedThrowingContinuation { continuation in
310 |             self.then(on: queue) { value in
/host/spi-builder-workspace/Promise/Promise.swift:18:11: error: cannot find type 'DispatchQueue' in scope
 16 | }
 17 |
 18 | extension DispatchQueue: ExecutionContext {
    |           `- error: cannot find type 'DispatchQueue' in scope
 19 |
 20 |     public func execute(_ work: @escaping () -> Void) {
/host/spi-builder-workspace/Promise/Promise.swift:29:24: error: cannot find type 'DispatchQueue' in scope
 27 |     private var valid = true
 28 |
 29 |     private var queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 30 |
 31 |     public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Promise/Promise.swift:31:24: error: cannot find type 'DispatchQueue' in scope
 29 |     private var queue: DispatchQueue
 30 |
 31 |     public init(queue: DispatchQueue = .main) {
    |                        `- error: cannot find type 'DispatchQueue' in scope
 32 |         self.queue = queue
 33 |     }
/host/spi-builder-workspace/Promise/Promise.swift:136:29: error: cannot find 'DispatchQueue' in scope
134 |
135 |     private var state: State<Value>
136 |     private let lockQueue = DispatchQueue(label: "promise_lock_queue", qos: .userInitiated)
    |                             `- error: cannot find 'DispatchQueue' in scope
137 |
138 |     /// Creates a Promise in the pending state which can be fulfilled or rejected.
/host/spi-builder-workspace/Promise/Promise.swift:136:78: error: cannot infer contextual base in reference to member 'userInitiated'
134 |
135 |     private var state: State<Value>
136 |     private let lockQueue = DispatchQueue(label: "promise_lock_queue", qos: .userInitiated)
    |                                                                              `- error: cannot infer contextual base in reference to member 'userInitiated'
137 |
138 |     /// Creates a Promise in the pending state which can be fulfilled or rejected.
/host/spi-builder-workspace/Promise/Promise.swift:173:36: error: cannot find type 'DispatchQueue' in scope
171 |     /// Promises are *rejected* if they fail, and thus, generate an `Error`.
172 |     /// With this library, any Promise can produce any `Error`
173 |     public convenience init(queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), work: @escaping (_ fulfill: @escaping (Value) -> Void, _ reject: @escaping (Error) -> Void) throws -> Void) {
    |                                    `- error: cannot find type 'DispatchQueue' in scope
174 |         self.init()
175 |         queue.async(execute: {
/host/spi-builder-workspace/Promise/Promise.swift:194:61: error: cannot find 'DispatchQueue' in scope
192 |     /// This is roughly the equivalent of a traditional `flatMap()`.
193 |     @discardableResult
194 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Promise<NewValue>) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
195 |         return Promise<NewValue>(work: { fulfill, reject in
196 |             self.addCallbacks(
/host/spi-builder-workspace/Promise/Promise.swift:221:61: error: cannot find 'DispatchQueue' in scope
219 |     /// This is roughly the equivalent of a traditional `map()`.
220 |     @discardableResult
221 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> NewValue) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
222 |         return then(on: queue, { (value) -> Promise<NewValue> in
223 |             do {
/host/spi-builder-workspace/Promise/Promise.swift:239:51: error: cannot find 'DispatchQueue' in scope
237 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
238 |     @discardableResult
239 |     public func then(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void, _ onRejected: @escaping (Error) -> Void = { _ in }) -> Promise<Value> {
    |                                                   `- error: cannot find 'DispatchQueue' in scope
240 |         addCallbacks(on: queue, onFulfilled: onFulfilled, onRejected: onRejected)
241 |         return self
/host/spi-builder-workspace/Promise/Promise.swift:251:54: error: cannot find 'DispatchQueue' in scope
249 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
250 |     @discardableResult
251 |     public func `catch`(on queue: ExecutionContext = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Promise<Value> {
    |                                                      `- error: cannot find 'DispatchQueue' in scope
252 |         return then(on: queue, { _ in }, onRejected)
253 |     }
/host/spi-builder-workspace/Promise/Promise.swift:304:60: error: cannot find 'DispatchQueue' in scope
302 |     }
303 |
304 |     private func addCallbacks(on queue: ExecutionContext = DispatchQueue.main, onFulfilled: @escaping (Value) -> Void, onRejected: @escaping (Error) -> Void) {
    |                                                            `- error: cannot find 'DispatchQueue' in scope
305 |         let callback = Callback(onFulfilled: onFulfilled, onRejected: onRejected, executionContext: queue)
306 |         lockQueue.async(flags: .barrier, execute: {
[3/4] Compiling Promise Promise.swift
/host/spi-builder-workspace/Promise/Promise.swift:18:11: error: cannot find type 'DispatchQueue' in scope
 16 | }
 17 |
 18 | extension DispatchQueue: ExecutionContext {
    |           `- error: cannot find type 'DispatchQueue' in scope
 19 |
 20 |     public func execute(_ work: @escaping () -> Void) {
/host/spi-builder-workspace/Promise/Promise.swift:29:24: error: cannot find type 'DispatchQueue' in scope
 27 |     private var valid = true
 28 |
 29 |     private var queue: DispatchQueue
    |                        `- error: cannot find type 'DispatchQueue' in scope
 30 |
 31 |     public init(queue: DispatchQueue = .main) {
/host/spi-builder-workspace/Promise/Promise.swift:31:24: error: cannot find type 'DispatchQueue' in scope
 29 |     private var queue: DispatchQueue
 30 |
 31 |     public init(queue: DispatchQueue = .main) {
    |                        `- error: cannot find type 'DispatchQueue' in scope
 32 |         self.queue = queue
 33 |     }
/host/spi-builder-workspace/Promise/Promise.swift:136:29: error: cannot find 'DispatchQueue' in scope
134 |
135 |     private var state: State<Value>
136 |     private let lockQueue = DispatchQueue(label: "promise_lock_queue", qos: .userInitiated)
    |                             `- error: cannot find 'DispatchQueue' in scope
137 |
138 |     /// Creates a Promise in the pending state which can be fulfilled or rejected.
/host/spi-builder-workspace/Promise/Promise.swift:136:78: error: cannot infer contextual base in reference to member 'userInitiated'
134 |
135 |     private var state: State<Value>
136 |     private let lockQueue = DispatchQueue(label: "promise_lock_queue", qos: .userInitiated)
    |                                                                              `- error: cannot infer contextual base in reference to member 'userInitiated'
137 |
138 |     /// Creates a Promise in the pending state which can be fulfilled or rejected.
/host/spi-builder-workspace/Promise/Promise.swift:173:36: error: cannot find type 'DispatchQueue' in scope
171 |     /// Promises are *rejected* if they fail, and thus, generate an `Error`.
172 |     /// With this library, any Promise can produce any `Error`
173 |     public convenience init(queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), work: @escaping (_ fulfill: @escaping (Value) -> Void, _ reject: @escaping (Error) -> Void) throws -> Void) {
    |                                    `- error: cannot find type 'DispatchQueue' in scope
174 |         self.init()
175 |         queue.async(execute: {
/host/spi-builder-workspace/Promise/Promise.swift:194:61: error: cannot find 'DispatchQueue' in scope
192 |     /// This is roughly the equivalent of a traditional `flatMap()`.
193 |     @discardableResult
194 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Promise<NewValue>) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
195 |         return Promise<NewValue>(work: { fulfill, reject in
196 |             self.addCallbacks(
/host/spi-builder-workspace/Promise/Promise.swift:221:61: error: cannot find 'DispatchQueue' in scope
219 |     /// This is roughly the equivalent of a traditional `map()`.
220 |     @discardableResult
221 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> NewValue) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
222 |         return then(on: queue, { (value) -> Promise<NewValue> in
223 |             do {
/host/spi-builder-workspace/Promise/Promise.swift:239:51: error: cannot find 'DispatchQueue' in scope
237 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
238 |     @discardableResult
239 |     public func then(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void, _ onRejected: @escaping (Error) -> Void = { _ in }) -> Promise<Value> {
    |                                                   `- error: cannot find 'DispatchQueue' in scope
240 |         addCallbacks(on: queue, onFulfilled: onFulfilled, onRejected: onRejected)
241 |         return self
/host/spi-builder-workspace/Promise/Promise.swift:251:54: error: cannot find 'DispatchQueue' in scope
249 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
250 |     @discardableResult
251 |     public func `catch`(on queue: ExecutionContext = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Promise<Value> {
    |                                                      `- error: cannot find 'DispatchQueue' in scope
252 |         return then(on: queue, { _ in }, onRejected)
253 |     }
/host/spi-builder-workspace/Promise/Promise.swift:304:60: error: cannot find 'DispatchQueue' in scope
302 |     }
303 |
304 |     private func addCallbacks(on queue: ExecutionContext = DispatchQueue.main, onFulfilled: @escaping (Value) -> Void, onRejected: @escaping (Error) -> Void) {
    |                                                            `- error: cannot find 'DispatchQueue' in scope
305 |         let callback = Callback(onFulfilled: onFulfilled, onRejected: onRejected, executionContext: queue)
306 |         lockQueue.async(flags: .barrier, execute: {
/host/spi-builder-workspace/Promise/Promise.swift:195:40: error: argument passed to call that takes no arguments
193 |     @discardableResult
194 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Promise<NewValue>) -> Promise<NewValue> {
195 |         return Promise<NewValue>(work: { fulfill, reject in
    |                                        `- error: argument passed to call that takes no arguments
196 |             self.addCallbacks(
197 |                 on: queue,
/host/spi-builder-workspace/Promise/Promise.swift:306:33: error: cannot infer contextual base in reference to member 'barrier'
304 |     private func addCallbacks(on queue: ExecutionContext = DispatchQueue.main, onFulfilled: @escaping (Value) -> Void, onRejected: @escaping (Error) -> Void) {
305 |         let callback = Callback(onFulfilled: onFulfilled, onRejected: onRejected, executionContext: queue)
306 |         lockQueue.async(flags: .barrier, execute: {
    |                                 `- error: cannot infer contextual base in reference to member 'barrier'
307 |             switch self.state {
308 |             case .pending(let callbacks):
[4/4] Compiling Promise Promise+Extras.swift
/host/spi-builder-workspace/Promise/Promise+Extras.swift:209:53: error: cannot find 'DispatchQueue' in scope
207 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
208 |     @discardableResult
209 |     public func always(on queue: ExecutionContext = DispatchQueue.main, _ onComplete: @escaping () -> Void) -> Promise<Value> {
    |                                                     `- error: cannot find 'DispatchQueue' in scope
210 |         return then(on: queue, { _ in
211 |             onComplete()
/host/spi-builder-workspace/Promise/Promise+Extras.swift:223:54: error: cannot find 'DispatchQueue' in scope
221 |     ///   - recovery: Recovery routine to perform; this returns a new `Promise`
222 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
223 |     public func recover(on queue: ExecutionContext = DispatchQueue.main, _ recovery: @escaping (Error) throws -> Promise<Value>) -> Promise<Value> {
    |                                                      `- error: cannot find 'DispatchQueue' in scope
224 |         return recover(type: Error.self, on: queue, recovery)
225 |     }
/host/spi-builder-workspace/Promise/Promise+Extras.swift:234:88: error: cannot find 'DispatchQueue' in scope
232 |     ///   - recovery: Routine to run to recover from the error; returns a new `Promise`.
233 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
234 |     public func recover<E: Error>(type errorType: E.Type, on queue: ExecutionContext = DispatchQueue.main, _ recovery: @escaping (E) throws -> Promise<Value>) -> Promise<Value> {
    |                                                                                        `- error: cannot find 'DispatchQueue' in scope
235 |         return Promise(work: { fulfill, reject in
236 |             self.then(on: queue, fulfill).catch(on: queue, { anyError in
/host/spi-builder-workspace/Promise/Promise+Extras.swift:283:55: error: cannot find 'DispatchQueue' in scope
281 |     ///   - transformError: Transformer to convert the erorr into a new error.
282 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
283 |     public func mapError(on queue: ExecutionContext = DispatchQueue.main, _ transformError: @escaping (Error) -> Error) -> Promise {
    |                                                       `- error: cannot find 'DispatchQueue' in scope
284 |         return self.mapError(type: Error.self, on: queue, transformError)
285 |     }
/host/spi-builder-workspace/Promise/Promise+Extras.swift:294:89: error: cannot find 'DispatchQueue' in scope
292 |     ///   - transformError: Transformer to convert an error of type `errorType` into a new error.
293 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
294 |     public func mapError<E: Error>(type errorType: E.Type, on queue: ExecutionContext = DispatchQueue.main, _ transformError: @escaping (E) -> Error) -> Promise {
    |                                                                                         `- error: cannot find 'DispatchQueue' in scope
295 |         return self.recover(type: errorType, on: queue, { (error) -> Promise<Value> in
296 |             return Promise(error: transformError(error))
/host/spi-builder-workspace/Promise/Promise+Extras.swift:308:25: error: cannot find type 'DispatchQueue' in scope
306 |     ///            Defaults to the main queue.
307 |     /// - Returns: The promise's value or an error.
308 |     func wait(on queue: DispatchQueue = DispatchQueue.main) async throws -> Value {
    |                         `- error: cannot find type 'DispatchQueue' in scope
309 |         try await withCheckedThrowingContinuation { continuation in
310 |             self.then(on: queue) { value in
/host/spi-builder-workspace/Promise/Promise.swift:173:36: error: cannot find type 'DispatchQueue' in scope
171 |     /// Promises are *rejected* if they fail, and thus, generate an `Error`.
172 |     /// With this library, any Promise can produce any `Error`
173 |     public convenience init(queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), work: @escaping (_ fulfill: @escaping (Value) -> Void, _ reject: @escaping (Error) -> Void) throws -> Void) {
    |                                    `- error: cannot find type 'DispatchQueue' in scope
174 |         self.init()
175 |         queue.async(execute: {
/host/spi-builder-workspace/Promise/Promise+Extras.swift:28:35: error: argument passed to call that takes no arguments
 26 |     /// results or the first failure. Fails if any of the input promises fail.
 27 |     public static func all<T>(_ promises: [Promise<T>]) -> Promise<[T]> {
 28 |         return Promise<[T]>(work: { fulfill, reject in
    |                                   `- error: argument passed to call that takes no arguments
 29 |             guard !promises.isEmpty else { fulfill([]); return }
 30 |             for promise in promises {
/host/spi-builder-workspace/Promise/Promise+Extras.swift:47:13: error: cannot find 'DispatchQueue' in scope
 45 |     public static func delay(_ delay: TimeInterval) -> Promise<()> {
 46 |         return Promise<()>(work: { fulfill, reject in
 47 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: {
    |             `- error: cannot find 'DispatchQueue' in scope
 48 |                 fulfill(())
 49 |             })
/host/spi-builder-workspace/Promise/Promise+Extras.swift:46:34: error: argument passed to call that takes no arguments
 44 |     /// - Returns: A `Promise<()>` that is resolved after `delay` seconds.
 45 |     public static func delay(_ delay: TimeInterval) -> Promise<()> {
 46 |         return Promise<()>(work: { fulfill, reject in
    |                                  `- error: argument passed to call that takes no arguments
 47 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: {
 48 |                 fulfill(())
/host/spi-builder-workspace/Promise/Promise+Extras.swift:47:54: error: cannot call value of non-function type 'Date'
 45 |     public static func delay(_ delay: TimeInterval) -> Promise<()> {
 46 |         return Promise<()>(work: { fulfill, reject in
 47 |             DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: {
    |                                                      `- error: cannot call value of non-function type 'Date'
 48 |                 fulfill(())
 49 |             })
/host/spi-builder-workspace/Promise/Promise+Extras.swift:57:33: error: argument passed to call that takes no arguments
 55 |     /// - Returns: A Promise that is rejected after `timeout` seconds.
 56 |     public static func timeout<T>(_ timeout: TimeInterval) -> Promise<T> {
 57 |         return Promise<T>(work: { fulfill, reject in
    |                                 `- error: argument passed to call that takes no arguments
 58 |             delay(timeout).then({ _ in
 59 |                 reject(NSError(domain: "com.khanlou.Promise", code: -1111, userInfo: [ NSLocalizedDescriptionKey: "Timed out" ]))
/host/spi-builder-workspace/Promise/Promise+Extras.swift:73:33: error: argument passed to call that takes no arguments
 71 |     /// where `all()` will wait for every promise to complete and return all of them.
 72 |     public static func race<T>(_ promises: [Promise<T>]) -> Promise<T> {
 73 |         return Promise<T>(work: { fulfill, reject in
    |                                 `- error: argument passed to call that takes no arguments
 74 |             guard !promises.isEmpty else { fatalError() }
 75 |             for promise in promises {
/host/spi-builder-workspace/Promise/Promise+Extras.swift:95:33: error: argument passed to call that takes no arguments
 93 |             return generate()
 94 |         }
 95 |         return Promise<T>(work: { fulfill, reject in
    |                                 `- error: argument passed to call that takes no arguments
 96 |             generate().recover({ error in
 97 |                 return self.delay(delay).then({
/host/spi-builder-workspace/Promise/Promise.swift:194:61: error: cannot find 'DispatchQueue' in scope
192 |     /// This is roughly the equivalent of a traditional `flatMap()`.
193 |     @discardableResult
194 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Promise<NewValue>) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
195 |         return Promise<NewValue>(work: { fulfill, reject in
196 |             self.addCallbacks(
/host/spi-builder-workspace/Promise/Promise+Extras.swift:132:38: error: argument passed to call that takes no arguments
130 |     /// - Returns: A `Promise<>` whose type is a tuple of the values of the two given promises.
131 |     public static func zip<T, U>(_ first: Promise<T>, _ second: Promise<U>) -> Promise<(T, U)> {
132 |         return Promise<(T, U)>(work: { fulfill, reject in
    |                                      `- error: argument passed to call that takes no arguments
133 |             let resolver: (Any) -> Void = { _ in
134 |                 if let firstValue = first.value, let secondValue = second.value {
/host/spi-builder-workspace/Promise/Promise+Extras.swift:155:44: error: argument passed to call that takes no arguments
153 |     /// - Returns: A `Promise<>` whose type is a typle of the values of the three given promises.
154 |     public static func zip<T1, T2, T3>(_ p1: Promise<T1>, _ p2: Promise<T2>, _ last: Promise<T3>) -> Promise<(T1, T2, T3)> {
155 |         return Promise<(T1, T2, T3)>(work: { (fulfill: @escaping ((T1, T2, T3)) -> Void, reject: @escaping (Error) -> Void) in
    |                                            `- error: argument passed to call that takes no arguments
156 |             let zipped: Promise<(T1, T2)> = zip(p1, p2)
157 |
/host/spi-builder-workspace/Promise/Promise+Extras.swift:177:48: error: argument passed to call that takes no arguments
175 |     /// - Returns: A `Promise<>` whose type is a typle of the values of the three given promises.
176 |     public static func zip<T1, T2, T3, T4>(_ p1: Promise<T1>, _ p2: Promise<T2>, _ p3: Promise<T3>, _ last: Promise<T4>) -> Promise<(T1, T2, T3, T4)> {
177 |         return Promise<(T1, T2, T3, T4)>(work: { (fulfill: @escaping ((T1, T2, T3, T4)) -> Void, reject: @escaping (Error) -> Void) in
    |                                                `- error: argument passed to call that takes no arguments
178 |             let zipped: Promise<(T1, T2, T3)> = zip(p1, p2, p3)
179 |
/host/spi-builder-workspace/Promise/Promise+Extras.swift:235:30: error: argument passed to call that takes no arguments
233 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
234 |     public func recover<E: Error>(type errorType: E.Type, on queue: ExecutionContext = DispatchQueue.main, _ recovery: @escaping (E) throws -> Promise<Value>) -> Promise<Value> {
235 |         return Promise(work: { fulfill, reject in
    |                              `- error: argument passed to call that takes no arguments
236 |             self.then(on: queue, fulfill).catch(on: queue, { anyError in
237 |                 guard let error = anyError as? E else {
/host/spi-builder-workspace/Promise/Promise.swift:221:61: error: cannot find 'DispatchQueue' in scope
219 |     /// This is roughly the equivalent of a traditional `map()`.
220 |     @discardableResult
221 |     public func then<NewValue>(on queue: ExecutionContext = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> NewValue) -> Promise<NewValue> {
    |                                                             `- error: cannot find 'DispatchQueue' in scope
222 |         return then(on: queue, { (value) -> Promise<NewValue> in
223 |             do {
/host/spi-builder-workspace/Promise/Promise.swift:251:54: error: cannot find 'DispatchQueue' in scope
249 |     /// - Returns: A discardable instance of this promise that can be used for further chaining.
250 |     @discardableResult
251 |     public func `catch`(on queue: ExecutionContext = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Promise<Value> {
    |                                                      `- error: cannot find 'DispatchQueue' in scope
252 |         return then(on: queue, { _ in }, onRejected)
253 |     }
BUILD FAILURE 6.1 wasm