Build Information
Failed to build Futura.swift, reference master (1dd68c), with Swift 6.1 for Wasm on 27 May 2025 06:24:47 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/thedavidharris/Futura.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/thedavidharris/Futura
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 1dd68ce Add documentation
Cloned https://github.com/thedavidharris/Futura.git
Revision (git rev-parse @):
1dd68cee8588d15c77dff40e699ee411bc5e1e1e
SUCCESS checkout https://github.com/thedavidharris/Futura.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/thedavidharris/Futura.git
https://github.com/thedavidharris/Futura.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Futura.swift",
"name" : "Futura.swift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Futura",
"targets" : [
"Futura"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FuturaTests",
"module_type" : "SwiftTarget",
"name" : "FuturaTests",
"path" : "Tests",
"sources" : [
"FutureTests+Always.swift",
"FutureTests+Collection.swift",
"FutureTests+Do.swift",
"FutureTests+Init.swift",
"FutureTests+Map.swift",
"FutureTests+Race.swift",
"FutureTests+Recover.swift",
"FutureTests+Retry.swift",
"FutureTests+Time.swift",
"FutureTests+Validate.swift",
"FutureTests+Variadic.swift",
"FutureTests+Wrap.swift",
"TestHelpers.swift"
],
"target_dependencies" : [
"Futura"
],
"type" : "test"
},
{
"c99name" : "Futura",
"module_type" : "SwiftTarget",
"name" : "Futura",
"path" : "Sources",
"product_memberships" : [
"Futura"
],
"sources" : [
"Callback.swift",
"Collection+Future.swift",
"Either.swift",
"Future+Always.swift",
"Future+Do.swift",
"Future+Map.swift",
"Future+Race.swift",
"Future+Recover.swift",
"Future+Retry.swift",
"Future+Time.swift",
"Future+Validate.swift",
"Future+Variadic.swift",
"Future+Wrap.swift",
"Future.swift",
"FutureError.swift",
"Promise+Void.swift",
"Promise.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/18] Emitting module Futura
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Collection+Future.swift:17:42: error: cannot find type 'DispatchQueue' in scope
15 | /// - Parameter queue: queue to execute callbacks on
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
| `- error: cannot find type 'DispatchQueue' in scope
18 | return Promise<Element.Expectation> { (fulfill, reject) in
19 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Collection+Future.swift:32:35: error: cannot find type 'DispatchQueue' in scope
30 | /// - Parameter queue: queue to execute callbacks on
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
| `- error: cannot find type 'DispatchQueue' in scope
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
34 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Future+Do.swift:20:32: error: cannot find type 'DispatchQueue' in scope
18 | /// - Returns: existing Future object
19 | @discardableResult
20 | public func `do`(on queue: DispatchQueue = DispatchQueue.main, _ action: @escaping (Value) throws -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
21 | return self.flatMap({ (value) in
22 | return Promise({ (fulfill, reject) in
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Future+Retry.swift:21:23: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
19 | /// - Returns: existing Future object
20 | @discardableResult
21 | public func retry<Value>(attempts: Int, delay delayTime: TimeInterval = 0, retryBody: @escaping () -> Future<Value>) -> Future<Value> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
22 |
23 | var attemptsLeft = attempts
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Future+Variadic.swift:16:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | /// - Parameter futures: an array of futures of the same type
15 | /// - Returns: a single promise combining the resolved values of `futures`
16 | public static func all<Value>(_ futures: [Future<Value>]) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 | return Promise<[Value]>{ (fullfill, reject) in
18 | if futures.isEmpty {
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Future+Variadic.swift:37:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
35 | /// - Parameter futures: an array of futures of the same type
36 | /// - Returns: a single future combining the resolved values of `futures`
37 | public static func all<Value>(_ futures: Future<Value>...) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
38 | return all(futures)
39 | }
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:103:29: error: cannot find 'DispatchQueue' in scope
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot find 'DispatchQueue' in scope
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:103:77: error: cannot infer contextual base in reference to member 'userInitiated'
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot infer contextual base in reference to member 'userInitiated'
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future.swift:142:35: error: cannot find type 'DispatchQueue' in scope
140 | /// - Returns: the existing promise object
141 | @discardableResult
142 | public func `catch`(on queue: DispatchQueue = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
143 | addCallback(on: queue, onRejected: onRejected)
144 | return self
/host/spi-builder-workspace/Sources/Future.swift:153:32: error: cannot find type 'DispatchQueue' in scope
151 | /// - onFulfilled: success callback to add
152 | /// - onRejected: error callback to add
153 | func addCallback(on queue: DispatchQueue, onFulfilled: ((Value) -> ())? = nil, onRejected: ((Error) -> ())? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
154 | lockQueue.async {
155 | let callback = Callback(onFulfilled: onFulfilled,
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
[4/20] Compiling Futura Promise+Void.swift
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
[5/20] Compiling Futura Promise.swift
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
[6/20] Compiling Futura Future.swift
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:103:29: error: cannot find 'DispatchQueue' in scope
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot find 'DispatchQueue' in scope
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:103:77: error: cannot infer contextual base in reference to member 'userInitiated'
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot infer contextual base in reference to member 'userInitiated'
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future.swift:142:35: error: cannot find type 'DispatchQueue' in scope
140 | /// - Returns: the existing promise object
141 | @discardableResult
142 | public func `catch`(on queue: DispatchQueue = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
143 | addCallback(on: queue, onRejected: onRejected)
144 | return self
/host/spi-builder-workspace/Sources/Future.swift:153:32: error: cannot find type 'DispatchQueue' in scope
151 | /// - onFulfilled: success callback to add
152 | /// - onRejected: error callback to add
153 | func addCallback(on queue: DispatchQueue, onFulfilled: ((Value) -> ())? = nil, onRejected: ((Error) -> ())? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
154 | lockQueue.async {
155 | let callback = Callback(onFulfilled: onFulfilled,
/host/spi-builder-workspace/Sources/Future.swift:86:16: error: value of optional type 'Value??' not unwrapped; did you mean to use 'try!' or chain with '?'?
84 | /// Convenience accessor for the associated value of the future
85 | public var value: Value? {
86 | return try? result?.get()
| `- error: value of optional type 'Value??' not unwrapped; did you mean to use 'try!' or chain with '?'?
87 | }
88 |
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Future.swift:155:28: error: generic parameter 'Value' could not be inferred
153 | func addCallback(on queue: DispatchQueue, onFulfilled: ((Value) -> ())? = nil, onRejected: ((Error) -> ())? = nil) {
154 | lockQueue.async {
155 | let callback = Callback(onFulfilled: onFulfilled,
| |- error: generic parameter 'Value' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
156 | onRejected: onRejected,
157 | queue: queue)
/host/spi-builder-workspace/Sources/Callback.swift:12:17: note: 'Value' declared as parameter to type 'Callback'
10 |
11 | /// Object representing a piece of work to be executed upon completion of a Future
12 | struct Callback<Value> {
| `- note: 'Value' declared as parameter to type 'Callback'
13 |
14 | /// Work to execute on successful completion
[7/20] Compiling Futura FutureError.swift
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:103:29: error: cannot find 'DispatchQueue' in scope
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot find 'DispatchQueue' in scope
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:103:77: error: cannot infer contextual base in reference to member 'userInitiated'
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot infer contextual base in reference to member 'userInitiated'
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future.swift:142:35: error: cannot find type 'DispatchQueue' in scope
140 | /// - Returns: the existing promise object
141 | @discardableResult
142 | public func `catch`(on queue: DispatchQueue = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
143 | addCallback(on: queue, onRejected: onRejected)
144 | return self
/host/spi-builder-workspace/Sources/Future.swift:153:32: error: cannot find type 'DispatchQueue' in scope
151 | /// - onFulfilled: success callback to add
152 | /// - onRejected: error callback to add
153 | func addCallback(on queue: DispatchQueue, onFulfilled: ((Value) -> ())? = nil, onRejected: ((Error) -> ())? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
154 | lockQueue.async {
155 | let callback = Callback(onFulfilled: onFulfilled,
/host/spi-builder-workspace/Sources/Future.swift:86:16: error: value of optional type 'Value??' not unwrapped; did you mean to use 'try!' or chain with '?'?
84 | /// Convenience accessor for the associated value of the future
85 | public var value: Value? {
86 | return try? result?.get()
| `- error: value of optional type 'Value??' not unwrapped; did you mean to use 'try!' or chain with '?'?
87 | }
88 |
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Future.swift:155:28: error: generic parameter 'Value' could not be inferred
153 | func addCallback(on queue: DispatchQueue, onFulfilled: ((Value) -> ())? = nil, onRejected: ((Error) -> ())? = nil) {
154 | lockQueue.async {
155 | let callback = Callback(onFulfilled: onFulfilled,
| |- error: generic parameter 'Value' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
156 | onRejected: onRejected,
157 | queue: queue)
/host/spi-builder-workspace/Sources/Callback.swift:12:17: note: 'Value' declared as parameter to type 'Callback'
10 |
11 | /// Object representing a piece of work to be executed upon completion of a Future
12 | struct Callback<Value> {
| `- note: 'Value' declared as parameter to type 'Callback'
13 |
14 | /// Work to execute on successful completion
[8/20] Compiling Futura Future+Recover.swift
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Recover.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func recover(_ recoverBlock: @escaping (Error) throws -> Future<Value>) -> Future<Value> {
19 | return Promise { fulfill, reject in
| `- error: no exact matches in call to initializer
20 | self.then(fulfill).catch({ error in
21 | do {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Retry.swift:21:23: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
19 | /// - Returns: existing Future object
20 | @discardableResult
21 | public func retry<Value>(attempts: Int, delay delayTime: TimeInterval = 0, retryBody: @escaping () -> Future<Value>) -> Future<Value> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
22 |
23 | var attemptsLeft = attempts
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
[9/20] Compiling Futura Future+Retry.swift
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Recover.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func recover(_ recoverBlock: @escaping (Error) throws -> Future<Value>) -> Future<Value> {
19 | return Promise { fulfill, reject in
| `- error: no exact matches in call to initializer
20 | self.then(fulfill).catch({ error in
21 | do {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Retry.swift:21:23: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
19 | /// - Returns: existing Future object
20 | @discardableResult
21 | public func retry<Value>(attempts: Int, delay delayTime: TimeInterval = 0, retryBody: @escaping () -> Future<Value>) -> Future<Value> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
22 |
23 | var attemptsLeft = attempts
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
[10/20] Compiling Futura Future+Always.swift
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future+Do.swift:20:32: error: cannot find type 'DispatchQueue' in scope
18 | /// - Returns: existing Future object
19 | @discardableResult
20 | public func `do`(on queue: DispatchQueue = DispatchQueue.main, _ action: @escaping (Value) throws -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
21 | return self.flatMap({ (value) in
22 | return Promise({ (fulfill, reject) in
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Do.swift:22:28: error: missing argument label 'value:' in call
20 | public func `do`(on queue: DispatchQueue = DispatchQueue.main, _ action: @escaping (Value) throws -> Void) -> Future<Value> {
21 | return self.flatMap({ (value) in
22 | return Promise({ (fulfill, reject) in
| `- error: missing argument label 'value:' in call
23 | do {
24 | try action(value)
[11/20] Compiling Futura Future+Do.swift
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future+Do.swift:20:32: error: cannot find type 'DispatchQueue' in scope
18 | /// - Returns: existing Future object
19 | @discardableResult
20 | public func `do`(on queue: DispatchQueue = DispatchQueue.main, _ action: @escaping (Value) throws -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
21 | return self.flatMap({ (value) in
22 | return Promise({ (fulfill, reject) in
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Do.swift:22:28: error: missing argument label 'value:' in call
20 | public func `do`(on queue: DispatchQueue = DispatchQueue.main, _ action: @escaping (Value) throws -> Void) -> Future<Value> {
21 | return self.flatMap({ (value) in
22 | return Promise({ (fulfill, reject) in
| `- error: missing argument label 'value:' in call
23 | do {
24 | try action(value)
[12/20] Compiling Futura Future+Variadic.swift
/host/spi-builder-workspace/Sources/Future+Variadic.swift:16:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | /// - Parameter futures: an array of futures of the same type
15 | /// - Returns: a single promise combining the resolved values of `futures`
16 | public static func all<Value>(_ futures: [Future<Value>]) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 | return Promise<[Value]>{ (fullfill, reject) in
18 | if futures.isEmpty {
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Future+Variadic.swift:37:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
35 | /// - Parameter futures: an array of futures of the same type
36 | /// - Returns: a single future combining the resolved values of `futures`
37 | public static func all<Value>(_ futures: Future<Value>...) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
38 | return all(futures)
39 | }
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Variadic.swift:17:16: error: no exact matches in call to initializer
15 | /// - Returns: a single promise combining the resolved values of `futures`
16 | public static func all<Value>(_ futures: [Future<Value>]) -> Future<[Value]> {
17 | return Promise<[Value]>{ (fullfill, reject) in
| `- error: no exact matches in call to initializer
18 | if futures.isEmpty {
19 | fullfill([])
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '[Value]' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '[Value]' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Variadic.swift:49:12: error: no exact matches in call to initializer
47 | /// - Returns: A future of type Future<(A, B)>, containing a tuple of the resolved values, or the first error returned
48 | public func zip<A, B>(_ first: Future<A>, _ second: Future<B>) -> Future<(A, B)> {
49 | return Promise<(A, B)> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
50 | let zipper = { _ in
51 | if let firstValue = first.value, let secondValue = second.value {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '(A, B)' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '(A, B)' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Variadic.swift:68:12: error: no exact matches in call to initializer
66 | /// - Returns: A future of type Future<(A, B, C)>, containing a tuple of the resolved values, or the first error returned
67 | public func zip<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<(A, B, C)> {
68 | return Promise<(A, B, C)>({ (fulfill, reject) in
| `- error: no exact matches in call to initializer
69 | let firstZippedPair = zip(first, second)
70 |
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: candidate expects value of type '(A, B, C)' for parameter #1 (got '_')
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: candidate expects value of type '(A, B, C)' for parameter #1 (got '_')
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: candidate expects value of type 'any Error' for parameter #1 (got '_')
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Wrap.swift:17:16: error: no exact matches in call to initializer
15 | /// - Returns: Future<T> wrapping the callback
16 | public static func wrap<T>(completion: @escaping (@escaping (T?, Error?) -> Void) -> Void) -> Future<T> {
17 | return Promise { (fulfill, reject) in
| `- error: no exact matches in call to initializer
18 | completion { value, error in
19 | let result: Result<T, Error>
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'T' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'T' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Wrap.swift:42:16: error: no exact matches in call to initializer
40 | /// - Returns: Future<T> wrapper of the callback
41 | public static func wrap<T>(completion: @escaping (@escaping (Result<T, Error>) -> Void) -> Void) -> Future<T> {
42 | return Promise { (fulfill, reject) in
| `- error: no exact matches in call to initializer
43 | completion { result in
44 | switch result {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'T' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'T' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[13/20] Compiling Futura Future+Wrap.swift
/host/spi-builder-workspace/Sources/Future+Variadic.swift:16:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | /// - Parameter futures: an array of futures of the same type
15 | /// - Returns: a single promise combining the resolved values of `futures`
16 | public static func all<Value>(_ futures: [Future<Value>]) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 | return Promise<[Value]>{ (fullfill, reject) in
18 | if futures.isEmpty {
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Future+Variadic.swift:37:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
35 | /// - Parameter futures: an array of futures of the same type
36 | /// - Returns: a single future combining the resolved values of `futures`
37 | public static func all<Value>(_ futures: Future<Value>...) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
38 | return all(futures)
39 | }
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Variadic.swift:17:16: error: no exact matches in call to initializer
15 | /// - Returns: a single promise combining the resolved values of `futures`
16 | public static func all<Value>(_ futures: [Future<Value>]) -> Future<[Value]> {
17 | return Promise<[Value]>{ (fullfill, reject) in
| `- error: no exact matches in call to initializer
18 | if futures.isEmpty {
19 | fullfill([])
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '[Value]' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '[Value]' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Variadic.swift:49:12: error: no exact matches in call to initializer
47 | /// - Returns: A future of type Future<(A, B)>, containing a tuple of the resolved values, or the first error returned
48 | public func zip<A, B>(_ first: Future<A>, _ second: Future<B>) -> Future<(A, B)> {
49 | return Promise<(A, B)> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
50 | let zipper = { _ in
51 | if let firstValue = first.value, let secondValue = second.value {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '(A, B)' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '(A, B)' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Variadic.swift:68:12: error: no exact matches in call to initializer
66 | /// - Returns: A future of type Future<(A, B, C)>, containing a tuple of the resolved values, or the first error returned
67 | public func zip<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<(A, B, C)> {
68 | return Promise<(A, B, C)>({ (fulfill, reject) in
| `- error: no exact matches in call to initializer
69 | let firstZippedPair = zip(first, second)
70 |
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: candidate expects value of type '(A, B, C)' for parameter #1 (got '_')
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: candidate expects value of type '(A, B, C)' for parameter #1 (got '_')
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: candidate expects value of type 'any Error' for parameter #1 (got '_')
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Wrap.swift:17:16: error: no exact matches in call to initializer
15 | /// - Returns: Future<T> wrapping the callback
16 | public static func wrap<T>(completion: @escaping (@escaping (T?, Error?) -> Void) -> Void) -> Future<T> {
17 | return Promise { (fulfill, reject) in
| `- error: no exact matches in call to initializer
18 | completion { value, error in
19 | let result: Result<T, Error>
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'T' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'T' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Wrap.swift:42:16: error: no exact matches in call to initializer
40 | /// - Returns: Future<T> wrapper of the callback
41 | public static func wrap<T>(completion: @escaping (@escaping (Result<T, Error>) -> Void) -> Void) -> Future<T> {
42 | return Promise { (fulfill, reject) in
| `- error: no exact matches in call to initializer
43 | completion { result in
44 | switch result {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'T' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'T' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[14/20] Compiling Futura Future+Map.swift
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Map.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
19 | return Promise<NewValue> { (fullfill, reject) in
| `- error: no exact matches in call to initializer
20 | self.addCallback(
21 | on: queue,
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'NewValue' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'NewValue' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Race.swift:18:16: error: no exact matches in call to initializer
16 | /// - Returns: the first Future to resolve
17 | public static func race(_ futures: [Future<Value>]) -> Future<Value> {
18 | return Promise<Value> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
19 | if futures.isEmpty {
20 | reject(FutureError.emptyRace)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Race.swift:44:12: error: no exact matches in call to initializer
42 | /// - Returns: the first Future to resolve encapsulated in an Either enum with either the first Future as .Left, or the second Future as Right
43 | public func race<A, B>(_ first: Future<A>, _ second: Future<B>) -> Future<Either<A, B>> {
44 | return Promise<Either<A, B>> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
45 | first.then { fulfill(.Left($0)) }.catch(reject)
46 | second.then { fulfill(.Right($0)) }.catch(reject)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Either<A, B>' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Either<A, B>' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future+Race.swift:58:28: error: cannot infer type of closure parameter 'fulfill' without a type annotation
56 | /// - Returns: the first Future to resolve, as a Future<Any> due to inability to resolve type at compile time
57 | public func race<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<Any> {
58 | return Promise<Any> { (fulfill, reject) in
| `- error: cannot infer type of closure parameter 'fulfill' without a type annotation
59 | first.then { fulfill($0) }.catch(reject)
60 | second.then { fulfill($0) }.catch(reject)
/host/spi-builder-workspace/Sources/Future+Race.swift:58:37: error: cannot infer type of closure parameter 'reject' without a type annotation
56 | /// - Returns: the first Future to resolve, as a Future<Any> due to inability to resolve type at compile time
57 | public func race<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<Any> {
58 | return Promise<Any> { (fulfill, reject) in
| `- error: cannot infer type of closure parameter 'reject' without a type annotation
59 | first.then { fulfill($0) }.catch(reject)
60 | second.then { fulfill($0) }.catch(reject)
[15/20] Compiling Futura Future+Race.swift
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Map.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
19 | return Promise<NewValue> { (fullfill, reject) in
| `- error: no exact matches in call to initializer
20 | self.addCallback(
21 | on: queue,
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'NewValue' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'NewValue' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Race.swift:18:16: error: no exact matches in call to initializer
16 | /// - Returns: the first Future to resolve
17 | public static func race(_ futures: [Future<Value>]) -> Future<Value> {
18 | return Promise<Value> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
19 | if futures.isEmpty {
20 | reject(FutureError.emptyRace)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Race.swift:44:12: error: no exact matches in call to initializer
42 | /// - Returns: the first Future to resolve encapsulated in an Either enum with either the first Future as .Left, or the second Future as Right
43 | public func race<A, B>(_ first: Future<A>, _ second: Future<B>) -> Future<Either<A, B>> {
44 | return Promise<Either<A, B>> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
45 | first.then { fulfill(.Left($0)) }.catch(reject)
46 | second.then { fulfill(.Right($0)) }.catch(reject)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Either<A, B>' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Either<A, B>' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future+Race.swift:58:28: error: cannot infer type of closure parameter 'fulfill' without a type annotation
56 | /// - Returns: the first Future to resolve, as a Future<Any> due to inability to resolve type at compile time
57 | public func race<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<Any> {
58 | return Promise<Any> { (fulfill, reject) in
| `- error: cannot infer type of closure parameter 'fulfill' without a type annotation
59 | first.then { fulfill($0) }.catch(reject)
60 | second.then { fulfill($0) }.catch(reject)
/host/spi-builder-workspace/Sources/Future+Race.swift:58:37: error: cannot infer type of closure parameter 'reject' without a type annotation
56 | /// - Returns: the first Future to resolve, as a Future<Any> due to inability to resolve type at compile time
57 | public func race<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<Any> {
58 | return Promise<Any> { (fulfill, reject) in
| `- error: cannot infer type of closure parameter 'reject' without a type annotation
59 | first.then { fulfill($0) }.catch(reject)
60 | second.then { fulfill($0) }.catch(reject)
[16/20] Compiling Futura Future+Time.swift
/host/spi-builder-workspace/Sources/Future+Time.swift:20:13: error: cannot find 'DispatchQueue' in scope
18 | public func delay(_ timeInterval: TimeInterval) -> Future<Value> {
19 | return Promise<Void> { (fulfill, reject) in
20 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
| `- error: cannot find 'DispatchQueue' in scope
21 | fulfill(())
22 | })
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Future+Time.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func delay(_ timeInterval: TimeInterval) -> Future<Value> {
19 | return Promise<Void> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
20 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
21 | fulfill(())
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Void' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Void' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Time.swift:34:13: error: cannot find 'DispatchQueue' in scope
32 | public func timeout(_ timeInterval: TimeInterval) -> Future<Value> {
33 | return Promise<Value> { (fulfill, reject) in
34 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
| `- error: cannot find 'DispatchQueue' in scope
35 | reject(FutureError.timeout)
36 | })
/host/spi-builder-workspace/Sources/Future+Time.swift:33:16: error: no exact matches in call to initializer
31 | /// - Returns: existing Future object
32 | public func timeout(_ timeInterval: TimeInterval) -> Future<Value> {
33 | return Promise<Value> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
34 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
35 | reject(FutureError.timeout)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[17/20] Compiling Futura Future+Validate.swift
/host/spi-builder-workspace/Sources/Future+Time.swift:20:13: error: cannot find 'DispatchQueue' in scope
18 | public func delay(_ timeInterval: TimeInterval) -> Future<Value> {
19 | return Promise<Void> { (fulfill, reject) in
20 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
| `- error: cannot find 'DispatchQueue' in scope
21 | fulfill(())
22 | })
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Future+Time.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func delay(_ timeInterval: TimeInterval) -> Future<Value> {
19 | return Promise<Void> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
20 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
21 | fulfill(())
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Void' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Void' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Time.swift:34:13: error: cannot find 'DispatchQueue' in scope
32 | public func timeout(_ timeInterval: TimeInterval) -> Future<Value> {
33 | return Promise<Value> { (fulfill, reject) in
34 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
| `- error: cannot find 'DispatchQueue' in scope
35 | reject(FutureError.timeout)
36 | })
/host/spi-builder-workspace/Sources/Future+Time.swift:33:16: error: no exact matches in call to initializer
31 | /// - Returns: existing Future object
32 | public func timeout(_ timeInterval: TimeInterval) -> Future<Value> {
33 | return Promise<Value> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
34 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
35 | reject(FutureError.timeout)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[18/20] Compiling Futura Callback.swift
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Collection+Future.swift:17:42: error: cannot find type 'DispatchQueue' in scope
15 | /// - Parameter queue: queue to execute callbacks on
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
| `- error: cannot find type 'DispatchQueue' in scope
18 | return Promise<Element.Expectation> { (fulfill, reject) in
19 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Collection+Future.swift:32:35: error: cannot find type 'DispatchQueue' in scope
30 | /// - Parameter queue: queue to execute callbacks on
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
| `- error: cannot find type 'DispatchQueue' in scope
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
34 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Collection+Future.swift:18:16: error: no exact matches in call to initializer
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
18 | return Promise<Element.Expectation> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
19 | if self.isEmpty {
20 | reject(FutureError.emptyRace)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Collection+Future.swift:33:16: error: no exact matches in call to initializer
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
| `- error: no exact matches in call to initializer
34 | if self.isEmpty {
35 | fullfill([])
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[19/20] Compiling Futura Collection+Future.swift
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Collection+Future.swift:17:42: error: cannot find type 'DispatchQueue' in scope
15 | /// - Parameter queue: queue to execute callbacks on
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
| `- error: cannot find type 'DispatchQueue' in scope
18 | return Promise<Element.Expectation> { (fulfill, reject) in
19 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Collection+Future.swift:32:35: error: cannot find type 'DispatchQueue' in scope
30 | /// - Parameter queue: queue to execute callbacks on
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
| `- error: cannot find type 'DispatchQueue' in scope
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
34 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Collection+Future.swift:18:16: error: no exact matches in call to initializer
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
18 | return Promise<Element.Expectation> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
19 | if self.isEmpty {
20 | reject(FutureError.emptyRace)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Collection+Future.swift:33:16: error: no exact matches in call to initializer
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
| `- error: no exact matches in call to initializer
34 | if self.isEmpty {
35 | fullfill([])
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[20/20] Compiling Futura Either.swift
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Collection+Future.swift:17:42: error: cannot find type 'DispatchQueue' in scope
15 | /// - Parameter queue: queue to execute callbacks on
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
| `- error: cannot find type 'DispatchQueue' in scope
18 | return Promise<Element.Expectation> { (fulfill, reject) in
19 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Collection+Future.swift:32:35: error: cannot find type 'DispatchQueue' in scope
30 | /// - Parameter queue: queue to execute callbacks on
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
| `- error: cannot find type 'DispatchQueue' in scope
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
34 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Collection+Future.swift:18:16: error: no exact matches in call to initializer
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
18 | return Promise<Element.Expectation> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
19 | if self.isEmpty {
20 | reject(FutureError.emptyRace)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Collection+Future.swift:33:16: error: no exact matches in call to initializer
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
| `- error: no exact matches in call to initializer
34 | if self.isEmpty {
35 | fullfill([])
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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
[2/17] Compiling Futura Future.swift
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:103:29: error: cannot find 'DispatchQueue' in scope
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot find 'DispatchQueue' in scope
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:103:77: error: cannot infer contextual base in reference to member 'userInitiated'
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot infer contextual base in reference to member 'userInitiated'
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future.swift:142:35: error: cannot find type 'DispatchQueue' in scope
140 | /// - Returns: the existing promise object
141 | @discardableResult
142 | public func `catch`(on queue: DispatchQueue = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
143 | addCallback(on: queue, onRejected: onRejected)
144 | return self
/host/spi-builder-workspace/Sources/Future.swift:153:32: error: cannot find type 'DispatchQueue' in scope
151 | /// - onFulfilled: success callback to add
152 | /// - onRejected: error callback to add
153 | func addCallback(on queue: DispatchQueue, onFulfilled: ((Value) -> ())? = nil, onRejected: ((Error) -> ())? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
154 | lockQueue.async {
155 | let callback = Callback(onFulfilled: onFulfilled,
/host/spi-builder-workspace/Sources/Future.swift:86:16: error: value of optional type 'Value??' not unwrapped; did you mean to use 'try!' or chain with '?'?
84 | /// Convenience accessor for the associated value of the future
85 | public var value: Value? {
86 | return try? result?.get()
| `- error: value of optional type 'Value??' not unwrapped; did you mean to use 'try!' or chain with '?'?
87 | }
88 |
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Future.swift:155:28: error: generic parameter 'Value' could not be inferred
153 | func addCallback(on queue: DispatchQueue, onFulfilled: ((Value) -> ())? = nil, onRejected: ((Error) -> ())? = nil) {
154 | lockQueue.async {
155 | let callback = Callback(onFulfilled: onFulfilled,
| |- error: generic parameter 'Value' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
156 | onRejected: onRejected,
157 | queue: queue)
/host/spi-builder-workspace/Sources/Callback.swift:12:17: note: 'Value' declared as parameter to type 'Callback'
10 |
11 | /// Object representing a piece of work to be executed upon completion of a Future
12 | struct Callback<Value> {
| `- note: 'Value' declared as parameter to type 'Callback'
13 |
14 | /// Work to execute on successful completion
[3/17] Compiling Futura FutureError.swift
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:103:29: error: cannot find 'DispatchQueue' in scope
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot find 'DispatchQueue' in scope
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:103:77: error: cannot infer contextual base in reference to member 'userInitiated'
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot infer contextual base in reference to member 'userInitiated'
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future.swift:142:35: error: cannot find type 'DispatchQueue' in scope
140 | /// - Returns: the existing promise object
141 | @discardableResult
142 | public func `catch`(on queue: DispatchQueue = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
143 | addCallback(on: queue, onRejected: onRejected)
144 | return self
/host/spi-builder-workspace/Sources/Future.swift:153:32: error: cannot find type 'DispatchQueue' in scope
151 | /// - onFulfilled: success callback to add
152 | /// - onRejected: error callback to add
153 | func addCallback(on queue: DispatchQueue, onFulfilled: ((Value) -> ())? = nil, onRejected: ((Error) -> ())? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
154 | lockQueue.async {
155 | let callback = Callback(onFulfilled: onFulfilled,
/host/spi-builder-workspace/Sources/Future.swift:86:16: error: value of optional type 'Value??' not unwrapped; did you mean to use 'try!' or chain with '?'?
84 | /// Convenience accessor for the associated value of the future
85 | public var value: Value? {
86 | return try? result?.get()
| `- error: value of optional type 'Value??' not unwrapped; did you mean to use 'try!' or chain with '?'?
87 | }
88 |
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Future.swift:155:28: error: generic parameter 'Value' could not be inferred
153 | func addCallback(on queue: DispatchQueue, onFulfilled: ((Value) -> ())? = nil, onRejected: ((Error) -> ())? = nil) {
154 | lockQueue.async {
155 | let callback = Callback(onFulfilled: onFulfilled,
| |- error: generic parameter 'Value' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
156 | onRejected: onRejected,
157 | queue: queue)
/host/spi-builder-workspace/Sources/Callback.swift:12:17: note: 'Value' declared as parameter to type 'Callback'
10 |
11 | /// Object representing a piece of work to be executed upon completion of a Future
12 | struct Callback<Value> {
| `- note: 'Value' declared as parameter to type 'Callback'
13 |
14 | /// Work to execute on successful completion
[4/17] Compiling Futura Future+Time.swift
/host/spi-builder-workspace/Sources/Future+Time.swift:20:13: error: cannot find 'DispatchQueue' in scope
18 | public func delay(_ timeInterval: TimeInterval) -> Future<Value> {
19 | return Promise<Void> { (fulfill, reject) in
20 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
| `- error: cannot find 'DispatchQueue' in scope
21 | fulfill(())
22 | })
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Future+Time.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func delay(_ timeInterval: TimeInterval) -> Future<Value> {
19 | return Promise<Void> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
20 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
21 | fulfill(())
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Void' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Void' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Time.swift:34:13: error: cannot find 'DispatchQueue' in scope
32 | public func timeout(_ timeInterval: TimeInterval) -> Future<Value> {
33 | return Promise<Value> { (fulfill, reject) in
34 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
| `- error: cannot find 'DispatchQueue' in scope
35 | reject(FutureError.timeout)
36 | })
/host/spi-builder-workspace/Sources/Future+Time.swift:33:16: error: no exact matches in call to initializer
31 | /// - Returns: existing Future object
32 | public func timeout(_ timeInterval: TimeInterval) -> Future<Value> {
33 | return Promise<Value> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
34 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
35 | reject(FutureError.timeout)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[5/17] Compiling Futura Future+Validate.swift
/host/spi-builder-workspace/Sources/Future+Time.swift:20:13: error: cannot find 'DispatchQueue' in scope
18 | public func delay(_ timeInterval: TimeInterval) -> Future<Value> {
19 | return Promise<Void> { (fulfill, reject) in
20 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
| `- error: cannot find 'DispatchQueue' in scope
21 | fulfill(())
22 | })
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Future+Time.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func delay(_ timeInterval: TimeInterval) -> Future<Value> {
19 | return Promise<Void> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
20 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
21 | fulfill(())
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Void' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Void' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Time.swift:34:13: error: cannot find 'DispatchQueue' in scope
32 | public func timeout(_ timeInterval: TimeInterval) -> Future<Value> {
33 | return Promise<Value> { (fulfill, reject) in
34 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
| `- error: cannot find 'DispatchQueue' in scope
35 | reject(FutureError.timeout)
36 | })
/host/spi-builder-workspace/Sources/Future+Time.swift:33:16: error: no exact matches in call to initializer
31 | /// - Returns: existing Future object
32 | public func timeout(_ timeInterval: TimeInterval) -> Future<Value> {
33 | return Promise<Value> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
34 | DispatchQueue.global().asyncAfter(deadline: .now() + timeInterval, execute: {
35 | reject(FutureError.timeout)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/19] Emitting module Futura
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Collection+Future.swift:17:42: error: cannot find type 'DispatchQueue' in scope
15 | /// - Parameter queue: queue to execute callbacks on
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
| `- error: cannot find type 'DispatchQueue' in scope
18 | return Promise<Element.Expectation> { (fulfill, reject) in
19 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Collection+Future.swift:32:35: error: cannot find type 'DispatchQueue' in scope
30 | /// - Parameter queue: queue to execute callbacks on
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
| `- error: cannot find type 'DispatchQueue' in scope
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
34 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Future+Do.swift:20:32: error: cannot find type 'DispatchQueue' in scope
18 | /// - Returns: existing Future object
19 | @discardableResult
20 | public func `do`(on queue: DispatchQueue = DispatchQueue.main, _ action: @escaping (Value) throws -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
21 | return self.flatMap({ (value) in
22 | return Promise({ (fulfill, reject) in
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Future+Retry.swift:21:23: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
19 | /// - Returns: existing Future object
20 | @discardableResult
21 | public func retry<Value>(attempts: Int, delay delayTime: TimeInterval = 0, retryBody: @escaping () -> Future<Value>) -> Future<Value> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
22 |
23 | var attemptsLeft = attempts
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Future+Variadic.swift:16:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | /// - Parameter futures: an array of futures of the same type
15 | /// - Returns: a single promise combining the resolved values of `futures`
16 | public static func all<Value>(_ futures: [Future<Value>]) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 | return Promise<[Value]>{ (fullfill, reject) in
18 | if futures.isEmpty {
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Future+Variadic.swift:37:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
35 | /// - Parameter futures: an array of futures of the same type
36 | /// - Returns: a single future combining the resolved values of `futures`
37 | public static func all<Value>(_ futures: Future<Value>...) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
38 | return all(futures)
39 | }
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:103:29: error: cannot find 'DispatchQueue' in scope
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot find 'DispatchQueue' in scope
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:103:77: error: cannot infer contextual base in reference to member 'userInitiated'
101 |
102 | /// Locked queue to allow for thread-safety within the Future object
103 | private let lockQueue = DispatchQueue(label: "future_lock_queue", qos: .userInitiated)
| `- error: cannot infer contextual base in reference to member 'userInitiated'
104 |
105 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future.swift:142:35: error: cannot find type 'DispatchQueue' in scope
140 | /// - Returns: the existing promise object
141 | @discardableResult
142 | public func `catch`(on queue: DispatchQueue = DispatchQueue.main, _ onRejected: @escaping (Error) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
143 | addCallback(on: queue, onRejected: onRejected)
144 | return self
/host/spi-builder-workspace/Sources/Future.swift:153:32: error: cannot find type 'DispatchQueue' in scope
151 | /// - onFulfilled: success callback to add
152 | /// - onRejected: error callback to add
153 | func addCallback(on queue: DispatchQueue, onFulfilled: ((Value) -> ())? = nil, onRejected: ((Error) -> ())? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
154 | lockQueue.async {
155 | let callback = Callback(onFulfilled: onFulfilled,
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
[7/19] Compiling Futura Future+Variadic.swift
/host/spi-builder-workspace/Sources/Future+Variadic.swift:16:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | /// - Parameter futures: an array of futures of the same type
15 | /// - Returns: a single promise combining the resolved values of `futures`
16 | public static func all<Value>(_ futures: [Future<Value>]) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 | return Promise<[Value]>{ (fullfill, reject) in
18 | if futures.isEmpty {
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Future+Variadic.swift:37:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
35 | /// - Parameter futures: an array of futures of the same type
36 | /// - Returns: a single future combining the resolved values of `futures`
37 | public static func all<Value>(_ futures: Future<Value>...) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
38 | return all(futures)
39 | }
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Variadic.swift:17:16: error: no exact matches in call to initializer
15 | /// - Returns: a single promise combining the resolved values of `futures`
16 | public static func all<Value>(_ futures: [Future<Value>]) -> Future<[Value]> {
17 | return Promise<[Value]>{ (fullfill, reject) in
| `- error: no exact matches in call to initializer
18 | if futures.isEmpty {
19 | fullfill([])
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '[Value]' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '[Value]' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Variadic.swift:49:12: error: no exact matches in call to initializer
47 | /// - Returns: A future of type Future<(A, B)>, containing a tuple of the resolved values, or the first error returned
48 | public func zip<A, B>(_ first: Future<A>, _ second: Future<B>) -> Future<(A, B)> {
49 | return Promise<(A, B)> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
50 | let zipper = { _ in
51 | if let firstValue = first.value, let secondValue = second.value {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '(A, B)' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '(A, B)' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Variadic.swift:68:12: error: no exact matches in call to initializer
66 | /// - Returns: A future of type Future<(A, B, C)>, containing a tuple of the resolved values, or the first error returned
67 | public func zip<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<(A, B, C)> {
68 | return Promise<(A, B, C)>({ (fulfill, reject) in
| `- error: no exact matches in call to initializer
69 | let firstZippedPair = zip(first, second)
70 |
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: candidate expects value of type '(A, B, C)' for parameter #1 (got '_')
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: candidate expects value of type '(A, B, C)' for parameter #1 (got '_')
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: candidate expects value of type 'any Error' for parameter #1 (got '_')
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Wrap.swift:17:16: error: no exact matches in call to initializer
15 | /// - Returns: Future<T> wrapping the callback
16 | public static func wrap<T>(completion: @escaping (@escaping (T?, Error?) -> Void) -> Void) -> Future<T> {
17 | return Promise { (fulfill, reject) in
| `- error: no exact matches in call to initializer
18 | completion { value, error in
19 | let result: Result<T, Error>
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'T' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'T' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Wrap.swift:42:16: error: no exact matches in call to initializer
40 | /// - Returns: Future<T> wrapper of the callback
41 | public static func wrap<T>(completion: @escaping (@escaping (Result<T, Error>) -> Void) -> Void) -> Future<T> {
42 | return Promise { (fulfill, reject) in
| `- error: no exact matches in call to initializer
43 | completion { result in
44 | switch result {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'T' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'T' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[8/19] Compiling Futura Future+Wrap.swift
/host/spi-builder-workspace/Sources/Future+Variadic.swift:16:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | /// - Parameter futures: an array of futures of the same type
15 | /// - Returns: a single promise combining the resolved values of `futures`
16 | public static func all<Value>(_ futures: [Future<Value>]) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 | return Promise<[Value]>{ (fullfill, reject) in
18 | if futures.isEmpty {
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Future+Variadic.swift:37:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
35 | /// - Parameter futures: an array of futures of the same type
36 | /// - Returns: a single future combining the resolved values of `futures`
37 | public static func all<Value>(_ futures: Future<Value>...) -> Future<[Value]> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
38 | return all(futures)
39 | }
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Variadic.swift:17:16: error: no exact matches in call to initializer
15 | /// - Returns: a single promise combining the resolved values of `futures`
16 | public static func all<Value>(_ futures: [Future<Value>]) -> Future<[Value]> {
17 | return Promise<[Value]>{ (fullfill, reject) in
| `- error: no exact matches in call to initializer
18 | if futures.isEmpty {
19 | fullfill([])
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '[Value]' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '[Value]' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Variadic.swift:49:12: error: no exact matches in call to initializer
47 | /// - Returns: A future of type Future<(A, B)>, containing a tuple of the resolved values, or the first error returned
48 | public func zip<A, B>(_ first: Future<A>, _ second: Future<B>) -> Future<(A, B)> {
49 | return Promise<(A, B)> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
50 | let zipper = { _ in
51 | if let firstValue = first.value, let secondValue = second.value {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '(A, B)' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '(A, B)' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Variadic.swift:68:12: error: no exact matches in call to initializer
66 | /// - Returns: A future of type Future<(A, B, C)>, containing a tuple of the resolved values, or the first error returned
67 | public func zip<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<(A, B, C)> {
68 | return Promise<(A, B, C)>({ (fulfill, reject) in
| `- error: no exact matches in call to initializer
69 | let firstZippedPair = zip(first, second)
70 |
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: candidate expects value of type '(A, B, C)' for parameter #1 (got '_')
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: candidate expects value of type '(A, B, C)' for parameter #1 (got '_')
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: candidate expects value of type 'any Error' for parameter #1 (got '_')
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Wrap.swift:17:16: error: no exact matches in call to initializer
15 | /// - Returns: Future<T> wrapping the callback
16 | public static func wrap<T>(completion: @escaping (@escaping (T?, Error?) -> Void) -> Void) -> Future<T> {
17 | return Promise { (fulfill, reject) in
| `- error: no exact matches in call to initializer
18 | completion { value, error in
19 | let result: Result<T, Error>
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'T' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'T' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Wrap.swift:42:16: error: no exact matches in call to initializer
40 | /// - Returns: Future<T> wrapper of the callback
41 | public static func wrap<T>(completion: @escaping (@escaping (Result<T, Error>) -> Void) -> Void) -> Future<T> {
42 | return Promise { (fulfill, reject) in
| `- error: no exact matches in call to initializer
43 | completion { result in
44 | switch result {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'T' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'T' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[9/19] Compiling Futura Future+Map.swift
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Map.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
19 | return Promise<NewValue> { (fullfill, reject) in
| `- error: no exact matches in call to initializer
20 | self.addCallback(
21 | on: queue,
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'NewValue' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'NewValue' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Race.swift:18:16: error: no exact matches in call to initializer
16 | /// - Returns: the first Future to resolve
17 | public static func race(_ futures: [Future<Value>]) -> Future<Value> {
18 | return Promise<Value> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
19 | if futures.isEmpty {
20 | reject(FutureError.emptyRace)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Race.swift:44:12: error: no exact matches in call to initializer
42 | /// - Returns: the first Future to resolve encapsulated in an Either enum with either the first Future as .Left, or the second Future as Right
43 | public func race<A, B>(_ first: Future<A>, _ second: Future<B>) -> Future<Either<A, B>> {
44 | return Promise<Either<A, B>> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
45 | first.then { fulfill(.Left($0)) }.catch(reject)
46 | second.then { fulfill(.Right($0)) }.catch(reject)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Either<A, B>' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Either<A, B>' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future+Race.swift:58:28: error: cannot infer type of closure parameter 'fulfill' without a type annotation
56 | /// - Returns: the first Future to resolve, as a Future<Any> due to inability to resolve type at compile time
57 | public func race<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<Any> {
58 | return Promise<Any> { (fulfill, reject) in
| `- error: cannot infer type of closure parameter 'fulfill' without a type annotation
59 | first.then { fulfill($0) }.catch(reject)
60 | second.then { fulfill($0) }.catch(reject)
/host/spi-builder-workspace/Sources/Future+Race.swift:58:37: error: cannot infer type of closure parameter 'reject' without a type annotation
56 | /// - Returns: the first Future to resolve, as a Future<Any> due to inability to resolve type at compile time
57 | public func race<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<Any> {
58 | return Promise<Any> { (fulfill, reject) in
| `- error: cannot infer type of closure parameter 'reject' without a type annotation
59 | first.then { fulfill($0) }.catch(reject)
60 | second.then { fulfill($0) }.catch(reject)
[10/19] Compiling Futura Future+Race.swift
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Map.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
19 | return Promise<NewValue> { (fullfill, reject) in
| `- error: no exact matches in call to initializer
20 | self.addCallback(
21 | on: queue,
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'NewValue' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'NewValue' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Race.swift:18:16: error: no exact matches in call to initializer
16 | /// - Returns: the first Future to resolve
17 | public static func race(_ futures: [Future<Value>]) -> Future<Value> {
18 | return Promise<Value> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
19 | if futures.isEmpty {
20 | reject(FutureError.emptyRace)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Race.swift:44:12: error: no exact matches in call to initializer
42 | /// - Returns: the first Future to resolve encapsulated in an Either enum with either the first Future as .Left, or the second Future as Right
43 | public func race<A, B>(_ first: Future<A>, _ second: Future<B>) -> Future<Either<A, B>> {
44 | return Promise<Either<A, B>> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
45 | first.then { fulfill(.Left($0)) }.catch(reject)
46 | second.then { fulfill(.Right($0)) }.catch(reject)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Either<A, B>' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Either<A, B>' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future+Race.swift:58:28: error: cannot infer type of closure parameter 'fulfill' without a type annotation
56 | /// - Returns: the first Future to resolve, as a Future<Any> due to inability to resolve type at compile time
57 | public func race<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<Any> {
58 | return Promise<Any> { (fulfill, reject) in
| `- error: cannot infer type of closure parameter 'fulfill' without a type annotation
59 | first.then { fulfill($0) }.catch(reject)
60 | second.then { fulfill($0) }.catch(reject)
/host/spi-builder-workspace/Sources/Future+Race.swift:58:37: error: cannot infer type of closure parameter 'reject' without a type annotation
56 | /// - Returns: the first Future to resolve, as a Future<Any> due to inability to resolve type at compile time
57 | public func race<A, B, C>(_ first: Future<A>, _ second: Future<B>, _ third: Future<C>) -> Future<Any> {
58 | return Promise<Any> { (fulfill, reject) in
| `- error: cannot infer type of closure parameter 'reject' without a type annotation
59 | first.then { fulfill($0) }.catch(reject)
60 | second.then { fulfill($0) }.catch(reject)
[11/19] Compiling Futura Future+Always.swift
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future+Do.swift:20:32: error: cannot find type 'DispatchQueue' in scope
18 | /// - Returns: existing Future object
19 | @discardableResult
20 | public func `do`(on queue: DispatchQueue = DispatchQueue.main, _ action: @escaping (Value) throws -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
21 | return self.flatMap({ (value) in
22 | return Promise({ (fulfill, reject) in
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Do.swift:22:28: error: missing argument label 'value:' in call
20 | public func `do`(on queue: DispatchQueue = DispatchQueue.main, _ action: @escaping (Value) throws -> Void) -> Future<Value> {
21 | return self.flatMap({ (value) in
22 | return Promise({ (fulfill, reject) in
| `- error: missing argument label 'value:' in call
23 | do {
24 | try action(value)
[12/19] Compiling Futura Future+Do.swift
/host/spi-builder-workspace/Sources/Future.swift:41:25: error: cannot find type 'DispatchQueue' in scope
39 | /// - Returns: the FutureType object
40 | @discardableResult
41 | func then(on queue: DispatchQueue, _ onFulfilled: @escaping (Expectation) -> Void) -> Future<Expectation>
| `- error: cannot find type 'DispatchQueue' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Future.swift:132:32: error: cannot find type 'DispatchQueue' in scope
130 | /// - Returns: the existing promise object
131 | @discardableResult
132 | public func then(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
133 | addCallback(on: queue, onFulfilled: onFulfilled)
134 | return self
/host/spi-builder-workspace/Sources/Future+Do.swift:20:32: error: cannot find type 'DispatchQueue' in scope
18 | /// - Returns: existing Future object
19 | @discardableResult
20 | public func `do`(on queue: DispatchQueue = DispatchQueue.main, _ action: @escaping (Value) throws -> Void) -> Future<Value> {
| `- error: cannot find type 'DispatchQueue' in scope
21 | return self.flatMap({ (value) in
22 | return Promise({ (fulfill, reject) in
/host/spi-builder-workspace/Sources/Future+Map.swift:18:45: error: cannot find type 'DispatchQueue' in scope
16 | /// - Returns: existing promise object
17 | @discardableResult
18 | public func flatMap<NewValue>(on queue: DispatchQueue = DispatchQueue.main, _ onFulfilled: @escaping (Value) throws -> Future<NewValue>) -> Future<NewValue> {
| `- error: cannot find type 'DispatchQueue' in scope
19 | return Promise<NewValue> { (fullfill, reject) in
20 | self.addCallback(
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Do.swift:22:28: error: missing argument label 'value:' in call
20 | public func `do`(on queue: DispatchQueue = DispatchQueue.main, _ action: @escaping (Value) throws -> Void) -> Future<Value> {
21 | return self.flatMap({ (value) in
22 | return Promise({ (fulfill, reject) in
| `- error: missing argument label 'value:' in call
23 | do {
24 | try action(value)
[13/19] Compiling Futura Callback.swift
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Collection+Future.swift:17:42: error: cannot find type 'DispatchQueue' in scope
15 | /// - Parameter queue: queue to execute callbacks on
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
| `- error: cannot find type 'DispatchQueue' in scope
18 | return Promise<Element.Expectation> { (fulfill, reject) in
19 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Collection+Future.swift:32:35: error: cannot find type 'DispatchQueue' in scope
30 | /// - Parameter queue: queue to execute callbacks on
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
| `- error: cannot find type 'DispatchQueue' in scope
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
34 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Collection+Future.swift:18:16: error: no exact matches in call to initializer
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
18 | return Promise<Element.Expectation> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
19 | if self.isEmpty {
20 | reject(FutureError.emptyRace)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Collection+Future.swift:33:16: error: no exact matches in call to initializer
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
| `- error: no exact matches in call to initializer
34 | if self.isEmpty {
35 | fullfill([])
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[14/19] Compiling Futura Collection+Future.swift
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Collection+Future.swift:17:42: error: cannot find type 'DispatchQueue' in scope
15 | /// - Parameter queue: queue to execute callbacks on
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
| `- error: cannot find type 'DispatchQueue' in scope
18 | return Promise<Element.Expectation> { (fulfill, reject) in
19 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Collection+Future.swift:32:35: error: cannot find type 'DispatchQueue' in scope
30 | /// - Parameter queue: queue to execute callbacks on
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
| `- error: cannot find type 'DispatchQueue' in scope
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
34 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Collection+Future.swift:18:16: error: no exact matches in call to initializer
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
18 | return Promise<Element.Expectation> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
19 | if self.isEmpty {
20 | reject(FutureError.emptyRace)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Collection+Future.swift:33:16: error: no exact matches in call to initializer
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
| `- error: no exact matches in call to initializer
34 | if self.isEmpty {
35 | fullfill([])
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[15/19] Compiling Futura Either.swift
/host/spi-builder-workspace/Sources/Callback.swift:21:16: error: cannot find type 'DispatchQueue' in scope
19 |
20 | /// Queue to execute work on
21 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
22 |
23 | /// Run callback work for a given resolved value
/host/spi-builder-workspace/Sources/Collection+Future.swift:17:42: error: cannot find type 'DispatchQueue' in scope
15 | /// - Parameter queue: queue to execute callbacks on
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
| `- error: cannot find type 'DispatchQueue' in scope
18 | return Promise<Element.Expectation> { (fulfill, reject) in
19 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Collection+Future.swift:32:35: error: cannot find type 'DispatchQueue' in scope
30 | /// - Parameter queue: queue to execute callbacks on
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
| `- error: cannot find type 'DispatchQueue' in scope
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
34 | if self.isEmpty {
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Collection+Future.swift:18:16: error: no exact matches in call to initializer
16 | /// - Returns: the first completed Future
17 | public func firstCompleted(on queue: DispatchQueue = DispatchQueue.main) -> Future<Element.Expectation> {
18 | return Promise<Element.Expectation> { (fulfill, reject) in
| `- error: no exact matches in call to initializer
19 | if self.isEmpty {
20 | reject(FutureError.emptyRace)
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Self.Element.Expectation' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Collection+Future.swift:33:16: error: no exact matches in call to initializer
31 | /// - Returns: a single Future object with an array of resolved values
32 | public func flatten(on queue: DispatchQueue = DispatchQueue.main) -> Future<[Element.Expectation]> {
33 | return Promise<[Element.Expectation]>{ (fullfill, reject) in
| `- error: no exact matches in call to initializer
34 | if self.isEmpty {
35 | fullfill([])
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type '[Self.Element.Expectation]' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
[16/19] Compiling Futura Future+Recover.swift
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Recover.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func recover(_ recoverBlock: @escaping (Error) throws -> Future<Value>) -> Future<Value> {
19 | return Promise { fulfill, reject in
| `- error: no exact matches in call to initializer
20 | self.then(fulfill).catch({ error in
21 | do {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Retry.swift:21:23: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
19 | /// - Returns: existing Future object
20 | @discardableResult
21 | public func retry<Value>(attempts: Int, delay delayTime: TimeInterval = 0, retryBody: @escaping () -> Future<Value>) -> Future<Value> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
22 |
23 | var attemptsLeft = attempts
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
[17/19] Compiling Futura Future+Retry.swift
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
/host/spi-builder-workspace/Sources/Future+Recover.swift:19:16: error: no exact matches in call to initializer
17 | @discardableResult
18 | public func recover(_ recoverBlock: @escaping (Error) throws -> Future<Value>) -> Future<Value> {
19 | return Promise { fulfill, reject in
| `- error: no exact matches in call to initializer
20 | self.then(fulfill).catch({ error in
21 | do {
/host/spi-builder-workspace/Sources/Promise.swift:42:12: note: closure passed to parameter of type 'Value' that does not accept a closure
40 | ///
41 | /// - Parameter value: resolved value
42 | public init(value: Value) {
| `- note: closure passed to parameter of type 'Value' that does not accept a closure
43 | self.futureResult = Future(value: value)
44 | }
:
47 | ///
48 | /// - Parameter error: resolved error
49 | public init(error: Error) {
| `- note: closure passed to parameter of type 'any Error' that does not accept a closure
50 | self.futureResult = Future(error: error)
51 | }
/host/spi-builder-workspace/Sources/Future+Retry.swift:21:23: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
19 | /// - Returns: existing Future object
20 | @discardableResult
21 | public func retry<Value>(attempts: Int, delay delayTime: TimeInterval = 0, retryBody: @escaping () -> Future<Value>) -> Future<Value> {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
22 |
23 | var attemptsLeft = attempts
/host/spi-builder-workspace/Sources/Future.swift:45:21: note: 'Value' previously declared here
43 |
44 | /// Generic class for a Future
45 | public class Future<Value>: FutureType {
| `- note: 'Value' previously declared here
46 |
47 | /// Generic value type
[18/19] Compiling Futura Promise+Void.swift
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
[19/19] Compiling Futura Promise.swift
/host/spi-builder-workspace/Sources/Promise.swift:28:27: error: cannot find type 'DispatchQueue' in scope
26 | /// - queue: DispatchQueue to execute work on. Defaults to DispatchQueue.global(qos: .userInitiated)
27 | /// - work: Closure containing async work. Contains two internal parameters, a `resolve` closure and a `reject` closure to be executed depending on successful or unsuccessful completion of the promise
28 | public init(on queue: DispatchQueue = DispatchQueue.global(qos: .userInitiated), _ work: @escaping (_ resolve: @escaping (Value) -> (), _ reject: @escaping (Error) -> ()) throws -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
29 | self.futureResult = Future<Value>()
30 | queue.async {
BUILD FAILURE 6.1 wasm