Build Information
Failed to build Repeat, reference develop (76ebc7
), with Swift 6.1 for Wasm on 27 May 2025 07:03:22 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/malcommac/Repeat.git
Reference: develop
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/malcommac/Repeat
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at 76ebc72 Merge tag '0.6.0' into develop
Cloned https://github.com/malcommac/Repeat.git
Revision (git rev-parse @):
76ebc7216a7909032b7eb0badcb59c57c5315275
SUCCESS checkout https://github.com/malcommac/Repeat.git at develop
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/malcommac/Repeat.git
https://github.com/malcommac/Repeat.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Repeat",
"name" : "Repeat",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Repeat",
"targets" : [
"Repeat"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "RepeatTests",
"module_type" : "SwiftTarget",
"name" : "RepeatTests",
"path" : "Tests/RepeatTests",
"sources" : [
"RepeatTests.swift"
],
"target_dependencies" : [
"Repeat"
],
"type" : "test"
},
{
"c99name" : "Repeat",
"module_type" : "SwiftTarget",
"name" : "Repeat",
"path" : "Sources/Repeat",
"product_memberships" : [
"Repeat"
],
"sources" : [
"Debouncer.swift",
"Repeater.swift",
"Throttler.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling Repeat Throttler.swift
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:53:21: error: cannot find type 'DispatchQueue' in scope
51 |
52 | /// Queue in which the throotle will work.
53 | private var queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
54 |
55 | /// Callback to call
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:59:28: error: cannot find 'DispatchWorkItem' in scope
57 |
58 | /// Last scheduled callback job
59 | private var callbackJob = DispatchWorkItem(block: {})
| `- error: cannot find 'DispatchWorkItem' in scope
60 |
61 | /// Previous scheduled time
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:62:33: error: cannot find type 'DispatchTime' in scope
60 |
61 | /// Previous scheduled time
62 | private var previousScheduled: DispatchTime?
| `- error: cannot find type 'DispatchTime' in scope
63 |
64 | /// Last executed time
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:65:33: error: cannot find type 'DispatchTime' in scope
63 |
64 | /// Last executed time
65 | private var lastExecutionTime: DispatchTime?
| `- error: cannot find type 'DispatchTime' in scope
66 |
67 | /// Need to delay before perform
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:71:36: error: cannot find type 'DispatchTimeInterval' in scope
69 |
70 | /// Throotle interval
71 | public private(set) var throttle: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
72 |
73 | /// Initialize a new throttler with given time interval.
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:81:46: error: cannot find type 'DispatchQueue' in scope
79 | /// - fireNow: immediate fire first execution of the throttle.
80 | /// - callback: callback to throttle.
81 | public init(time: Repeater.Interval, queue: DispatchQueue? = nil, mode: Mode = .fixed, immediateFire: Bool = false, _ callback: Callback? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
82 | self.throttle = time.value
83 | self.queue = (queue ?? DispatchQueue.global(qos: .background))
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:110:47: error: cannot find type 'DispatchTime' in scope
108 | ///
109 | /// - Returns: a tuple with now interval and evaluated interval based upon the current mode.
110 | private func evaluateDispatchTime() -> (now: DispatchTime, evaluated: DispatchTime) {
| `- error: cannot find type 'DispatchTime' in scope
111 | let now: DispatchTime = .now()
112 |
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:110:72: error: cannot find type 'DispatchTime' in scope
108 | ///
109 | /// - Returns: a tuple with now interval and evaluated interval based upon the current mode.
110 | private func evaluateDispatchTime() -> (now: DispatchTime, evaluated: DispatchTime) {
| `- error: cannot find type 'DispatchTime' in scope
111 | let now: DispatchTime = .now()
112 |
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:101:23: error: cannot find type 'DispatchTimeInterval' in scope
99 | case days(_: Int)
100 |
101 | internal var value: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
102 | switch self {
103 | case .nanoseconds(let value): return .nanoseconds(value)
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:83:26: error: cannot find 'DispatchQueue' in scope
81 | public init(time: Repeater.Interval, queue: DispatchQueue? = nil, mode: Mode = .fixed, immediateFire: Bool = false, _ callback: Callback? = nil) {
82 | self.throttle = time.value
83 | self.queue = (queue ?? DispatchQueue.global(qos: .background))
| `- error: cannot find 'DispatchQueue' in scope
84 | self.mode = mode
85 | self.immediateFire = immediateFire
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:83:53: error: cannot infer contextual base in reference to member 'background'
81 | public init(time: Repeater.Interval, queue: DispatchQueue? = nil, mode: Mode = .fixed, immediateFire: Bool = false, _ callback: Callback? = nil) {
82 | self.throttle = time.value
83 | self.queue = (queue ?? DispatchQueue.global(qos: .background))
| `- error: cannot infer contextual base in reference to member 'background'
84 | self.mode = mode
85 | self.immediateFire = immediateFire
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:92:17: error: cannot find 'DispatchWorkItem' in scope
90 | public func call() {
91 | callbackJob.cancel()
92 | callbackJob = DispatchWorkItem { [weak self] in
| `- error: cannot find 'DispatchWorkItem' in scope
93 | if let selfStrong = self {
94 | selfStrong.lastExecutionTime = .now()
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:94:37: error: cannot infer contextual base in reference to member 'now'
92 | callbackJob = DispatchWorkItem { [weak self] in
93 | if let selfStrong = self {
94 | selfStrong.lastExecutionTime = .now()
| `- error: cannot infer contextual base in reference to member 'now'
95 | selfStrong.waitingForPerform = false
96 | }
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:111:12: error: cannot find type 'DispatchTime' in scope
109 | /// - Returns: a tuple with now interval and evaluated interval based upon the current mode.
110 | private func evaluateDispatchTime() -> (now: DispatchTime, evaluated: DispatchTime) {
111 | let now: DispatchTime = .now()
| `- error: cannot find type 'DispatchTime' in scope
112 |
113 | switch self.mode {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Emitting module Repeat
/host/spi-builder-workspace/Sources/Repeat/Debouncer.swift:40:9: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
38 |
39 | /// Delay interval
40 | private (set) public var delay: Repeater.Interval
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
41 |
42 | /// Callback to activate
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:101:23: error: cannot find type 'DispatchTimeInterval' in scope
99 | case days(_: Int)
100 |
101 | internal var value: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
102 | switch self {
103 | case .nanoseconds(let value): return .nanoseconds(value)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:173:21: error: cannot find type 'DispatchSourceTimer' in scope
171 |
172 | /// Internal GCD Timer
173 | private var timer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
174 |
175 | /// Is timer a repeat timer
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:185:25: error: cannot find type 'DispatchTimeInterval' in scope
183 |
184 | /// Accuracy of the timer
185 | private var tolerance: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
186 |
187 | /// Dispatch queue parent of the timer
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:188:21: error: cannot find type 'DispatchQueue' in scope
186 |
187 | /// Dispatch queue parent of the timer
188 | private var queue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
189 |
190 | /// Initialize a new timer.
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:198:69: error: cannot find type 'DispatchTimeInterval' in scope
196 | /// - queue: queue in which the timer should be executed; if `nil` a new queue is created automatically.
197 | /// - observer: observer
198 | public init(interval: Interval, mode: Mode = .infinite, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, observer: @escaping Observer) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
199 | self.mode = mode
200 | self.interval = interval
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:198:116: error: cannot find type 'DispatchQueue' in scope
196 | /// - queue: queue in which the timer should be executed; if `nil` a new queue is created automatically.
197 | /// - observer: observer
198 | public init(interval: Interval, mode: Mode = .infinite, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, observer: @escaping Observer) {
| `- error: cannot find type 'DispatchQueue' in scope
199 | self.mode = mode
200 | self.interval = interval
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:245:35: error: cannot find type 'DispatchSourceTimer' in scope
243 | ///
244 | /// - Returns: dispatch timer
245 | private func configureTimer() -> DispatchSourceTimer {
| `- error: cannot find type 'DispatchSourceTimer' in scope
246 | let associatedQueue = (queue ?? DispatchQueue(label: "com.repeat.\(NSUUID().uuidString)"))
247 | let timer = DispatchSource.makeTimerSource(queue: associatedQueue)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:62: error: cannot find type 'DispatchTimeInterval' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchTimeInterval' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:109: error: cannot find type 'DispatchQueue' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchQueue' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:297:78: error: cannot find type 'DispatchTimeInterval' in scope
295 | /// - Returns: timer
296 | @discardableResult
297 | public class func every(_ interval: Interval, count: Int? = nil, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ handler: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchTimeInterval' in scope
298 | let mode: Mode = (count != nil ? .finite(count!) : .infinite)
299 | let timer = Repeater(interval: interval, mode: mode, tolerance: tolerance, queue: queue, observer: handler)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:297:125: error: cannot find type 'DispatchQueue' in scope
295 | /// - Returns: timer
296 | @discardableResult
297 | public class func every(_ interval: Interval, count: Int? = nil, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ handler: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchQueue' in scope
298 | let mode: Mode = (count != nil ? .finite(count!) : .infinite)
299 | let timer = Repeater(interval: interval, mode: mode, tolerance: tolerance, queue: queue, observer: handler)
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:53:21: error: cannot find type 'DispatchQueue' in scope
51 |
52 | /// Queue in which the throotle will work.
53 | private var queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
54 |
55 | /// Callback to call
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:59:28: error: cannot find 'DispatchWorkItem' in scope
57 |
58 | /// Last scheduled callback job
59 | private var callbackJob = DispatchWorkItem(block: {})
| `- error: cannot find 'DispatchWorkItem' in scope
60 |
61 | /// Previous scheduled time
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:62:33: error: cannot find type 'DispatchTime' in scope
60 |
61 | /// Previous scheduled time
62 | private var previousScheduled: DispatchTime?
| `- error: cannot find type 'DispatchTime' in scope
63 |
64 | /// Last executed time
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:65:33: error: cannot find type 'DispatchTime' in scope
63 |
64 | /// Last executed time
65 | private var lastExecutionTime: DispatchTime?
| `- error: cannot find type 'DispatchTime' in scope
66 |
67 | /// Need to delay before perform
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:71:36: error: cannot find type 'DispatchTimeInterval' in scope
69 |
70 | /// Throotle interval
71 | public private(set) var throttle: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
72 |
73 | /// Initialize a new throttler with given time interval.
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:81:46: error: cannot find type 'DispatchQueue' in scope
79 | /// - fireNow: immediate fire first execution of the throttle.
80 | /// - callback: callback to throttle.
81 | public init(time: Repeater.Interval, queue: DispatchQueue? = nil, mode: Mode = .fixed, immediateFire: Bool = false, _ callback: Callback? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
82 | self.throttle = time.value
83 | self.queue = (queue ?? DispatchQueue.global(qos: .background))
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:110:47: error: cannot find type 'DispatchTime' in scope
108 | ///
109 | /// - Returns: a tuple with now interval and evaluated interval based upon the current mode.
110 | private func evaluateDispatchTime() -> (now: DispatchTime, evaluated: DispatchTime) {
| `- error: cannot find type 'DispatchTime' in scope
111 | let now: DispatchTime = .now()
112 |
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:110:72: error: cannot find type 'DispatchTime' in scope
108 | ///
109 | /// - Returns: a tuple with now interval and evaluated interval based upon the current mode.
110 | private func evaluateDispatchTime() -> (now: DispatchTime, evaluated: DispatchTime) {
| `- error: cannot find type 'DispatchTime' in scope
111 | let now: DispatchTime = .now()
112 |
[5/6] Compiling Repeat Repeater.swift
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:101:23: error: cannot find type 'DispatchTimeInterval' in scope
99 | case days(_: Int)
100 |
101 | internal var value: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
102 | switch self {
103 | case .nanoseconds(let value): return .nanoseconds(value)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:173:21: error: cannot find type 'DispatchSourceTimer' in scope
171 |
172 | /// Internal GCD Timer
173 | private var timer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
174 |
175 | /// Is timer a repeat timer
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:185:25: error: cannot find type 'DispatchTimeInterval' in scope
183 |
184 | /// Accuracy of the timer
185 | private var tolerance: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
186 |
187 | /// Dispatch queue parent of the timer
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:188:21: error: cannot find type 'DispatchQueue' in scope
186 |
187 | /// Dispatch queue parent of the timer
188 | private var queue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
189 |
190 | /// Initialize a new timer.
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:198:69: error: cannot find type 'DispatchTimeInterval' in scope
196 | /// - queue: queue in which the timer should be executed; if `nil` a new queue is created automatically.
197 | /// - observer: observer
198 | public init(interval: Interval, mode: Mode = .infinite, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, observer: @escaping Observer) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
199 | self.mode = mode
200 | self.interval = interval
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:198:116: error: cannot find type 'DispatchQueue' in scope
196 | /// - queue: queue in which the timer should be executed; if `nil` a new queue is created automatically.
197 | /// - observer: observer
198 | public init(interval: Interval, mode: Mode = .infinite, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, observer: @escaping Observer) {
| `- error: cannot find type 'DispatchQueue' in scope
199 | self.mode = mode
200 | self.interval = interval
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:245:35: error: cannot find type 'DispatchSourceTimer' in scope
243 | ///
244 | /// - Returns: dispatch timer
245 | private func configureTimer() -> DispatchSourceTimer {
| `- error: cannot find type 'DispatchSourceTimer' in scope
246 | let associatedQueue = (queue ?? DispatchQueue(label: "com.repeat.\(NSUUID().uuidString)"))
247 | let timer = DispatchSource.makeTimerSource(queue: associatedQueue)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:62: error: cannot find type 'DispatchTimeInterval' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchTimeInterval' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:109: error: cannot find type 'DispatchQueue' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchQueue' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:297:78: error: cannot find type 'DispatchTimeInterval' in scope
295 | /// - Returns: timer
296 | @discardableResult
297 | public class func every(_ interval: Interval, count: Int? = nil, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ handler: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchTimeInterval' in scope
298 | let mode: Mode = (count != nil ? .finite(count!) : .infinite)
299 | let timer = Repeater(interval: interval, mode: mode, tolerance: tolerance, queue: queue, observer: handler)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:297:125: error: cannot find type 'DispatchQueue' in scope
295 | /// - Returns: timer
296 | @discardableResult
297 | public class func every(_ interval: Interval, count: Int? = nil, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ handler: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchQueue' in scope
298 | let mode: Mode = (count != nil ? .finite(count!) : .infinite)
299 | let timer = Repeater(interval: interval, mode: mode, tolerance: tolerance, queue: queue, observer: handler)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:203:26: error: cannot find 'DispatchQueue' in scope
201 | self.tolerance = tolerance
202 | self.remainingIterations = mode.countIterations
203 | self.queue = (queue ?? DispatchQueue(label: "com.repeat.queue"))
| `- error: cannot find 'DispatchQueue' in scope
204 | self.timer = configureTimer()
205 | self.observe(observer)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:246:35: error: cannot find 'DispatchQueue' in scope
244 | /// - Returns: dispatch timer
245 | private func configureTimer() -> DispatchSourceTimer {
246 | let associatedQueue = (queue ?? DispatchQueue(label: "com.repeat.\(NSUUID().uuidString)"))
| `- error: cannot find 'DispatchQueue' in scope
247 | let timer = DispatchSource.makeTimerSource(queue: associatedQueue)
248 | let repeatInterval = interval.value
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:247:15: error: cannot find 'DispatchSource' in scope
245 | private func configureTimer() -> DispatchSourceTimer {
246 | let associatedQueue = (queue ?? DispatchQueue(label: "com.repeat.\(NSUUID().uuidString)"))
247 | let timer = DispatchSource.makeTimerSource(queue: associatedQueue)
| `- error: cannot find 'DispatchSource' in scope
248 | let repeatInterval = interval.value
249 | let deadline: DispatchTime = (DispatchTime.now() + repeatInterval)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:249:17: error: cannot find type 'DispatchTime' in scope
247 | let timer = DispatchSource.makeTimerSource(queue: associatedQueue)
248 | let repeatInterval = interval.value
249 | let deadline: DispatchTime = (DispatchTime.now() + repeatInterval)
| `- error: cannot find type 'DispatchTime' in scope
250 | if self.mode.isRepeating {
251 | timer.schedule(deadline: deadline, repeating: repeatInterval, leeway: tolerance)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:266:40: error: 'nil' requires a contextual type
264 | /// Destroy current timer
265 | private func destroyTimer() {
266 | self.timer?.setEventHandler(handler: nil)
| `- error: 'nil' requires a contextual type
267 | self.timer?.cancel()
268 |
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:283:57: error: cannot infer contextual base in reference to member 'once'
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
| `- error: cannot infer contextual base in reference to member 'once'
284 | timer.start()
285 | return timer
[6/6] Compiling Repeat Debouncer.swift
/host/spi-builder-workspace/Sources/Repeat/Debouncer.swift:40:9: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
38 |
39 | /// Delay interval
40 | private (set) public var delay: Repeater.Interval
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
41 |
42 | /// Callback to activate
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:62: error: cannot find type 'DispatchTimeInterval' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchTimeInterval' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:109: error: cannot find type 'DispatchQueue' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchQueue' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Debouncer.swift:71:64: error: cannot infer type of closure parameter '_' without a type annotation
69 |
70 | if self.timer == nil {
71 | self.timer = Repeater.once(after: self.delay, { [weak self] _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
72 | guard let callback = self?.callback else {
73 | debugPrint("Debouncer fired but callback not set.")
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256: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/5] Compiling Repeat Throttler.swift
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:53:21: error: cannot find type 'DispatchQueue' in scope
51 |
52 | /// Queue in which the throotle will work.
53 | private var queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
54 |
55 | /// Callback to call
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:59:28: error: cannot find 'DispatchWorkItem' in scope
57 |
58 | /// Last scheduled callback job
59 | private var callbackJob = DispatchWorkItem(block: {})
| `- error: cannot find 'DispatchWorkItem' in scope
60 |
61 | /// Previous scheduled time
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:62:33: error: cannot find type 'DispatchTime' in scope
60 |
61 | /// Previous scheduled time
62 | private var previousScheduled: DispatchTime?
| `- error: cannot find type 'DispatchTime' in scope
63 |
64 | /// Last executed time
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:65:33: error: cannot find type 'DispatchTime' in scope
63 |
64 | /// Last executed time
65 | private var lastExecutionTime: DispatchTime?
| `- error: cannot find type 'DispatchTime' in scope
66 |
67 | /// Need to delay before perform
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:71:36: error: cannot find type 'DispatchTimeInterval' in scope
69 |
70 | /// Throotle interval
71 | public private(set) var throttle: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
72 |
73 | /// Initialize a new throttler with given time interval.
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:81:46: error: cannot find type 'DispatchQueue' in scope
79 | /// - fireNow: immediate fire first execution of the throttle.
80 | /// - callback: callback to throttle.
81 | public init(time: Repeater.Interval, queue: DispatchQueue? = nil, mode: Mode = .fixed, immediateFire: Bool = false, _ callback: Callback? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
82 | self.throttle = time.value
83 | self.queue = (queue ?? DispatchQueue.global(qos: .background))
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:110:47: error: cannot find type 'DispatchTime' in scope
108 | ///
109 | /// - Returns: a tuple with now interval and evaluated interval based upon the current mode.
110 | private func evaluateDispatchTime() -> (now: DispatchTime, evaluated: DispatchTime) {
| `- error: cannot find type 'DispatchTime' in scope
111 | let now: DispatchTime = .now()
112 |
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:110:72: error: cannot find type 'DispatchTime' in scope
108 | ///
109 | /// - Returns: a tuple with now interval and evaluated interval based upon the current mode.
110 | private func evaluateDispatchTime() -> (now: DispatchTime, evaluated: DispatchTime) {
| `- error: cannot find type 'DispatchTime' in scope
111 | let now: DispatchTime = .now()
112 |
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:101:23: error: cannot find type 'DispatchTimeInterval' in scope
99 | case days(_: Int)
100 |
101 | internal var value: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
102 | switch self {
103 | case .nanoseconds(let value): return .nanoseconds(value)
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:83:26: error: cannot find 'DispatchQueue' in scope
81 | public init(time: Repeater.Interval, queue: DispatchQueue? = nil, mode: Mode = .fixed, immediateFire: Bool = false, _ callback: Callback? = nil) {
82 | self.throttle = time.value
83 | self.queue = (queue ?? DispatchQueue.global(qos: .background))
| `- error: cannot find 'DispatchQueue' in scope
84 | self.mode = mode
85 | self.immediateFire = immediateFire
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:83:53: error: cannot infer contextual base in reference to member 'background'
81 | public init(time: Repeater.Interval, queue: DispatchQueue? = nil, mode: Mode = .fixed, immediateFire: Bool = false, _ callback: Callback? = nil) {
82 | self.throttle = time.value
83 | self.queue = (queue ?? DispatchQueue.global(qos: .background))
| `- error: cannot infer contextual base in reference to member 'background'
84 | self.mode = mode
85 | self.immediateFire = immediateFire
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:92:17: error: cannot find 'DispatchWorkItem' in scope
90 | public func call() {
91 | callbackJob.cancel()
92 | callbackJob = DispatchWorkItem { [weak self] in
| `- error: cannot find 'DispatchWorkItem' in scope
93 | if let selfStrong = self {
94 | selfStrong.lastExecutionTime = .now()
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:94:37: error: cannot infer contextual base in reference to member 'now'
92 | callbackJob = DispatchWorkItem { [weak self] in
93 | if let selfStrong = self {
94 | selfStrong.lastExecutionTime = .now()
| `- error: cannot infer contextual base in reference to member 'now'
95 | selfStrong.waitingForPerform = false
96 | }
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:111:12: error: cannot find type 'DispatchTime' in scope
109 | /// - Returns: a tuple with now interval and evaluated interval based upon the current mode.
110 | private func evaluateDispatchTime() -> (now: DispatchTime, evaluated: DispatchTime) {
111 | let now: DispatchTime = .now()
| `- error: cannot find type 'DispatchTime' in scope
112 |
113 | switch self.mode {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module Repeat
/host/spi-builder-workspace/Sources/Repeat/Debouncer.swift:40:9: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
38 |
39 | /// Delay interval
40 | private (set) public var delay: Repeater.Interval
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
41 |
42 | /// Callback to activate
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:101:23: error: cannot find type 'DispatchTimeInterval' in scope
99 | case days(_: Int)
100 |
101 | internal var value: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
102 | switch self {
103 | case .nanoseconds(let value): return .nanoseconds(value)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:173:21: error: cannot find type 'DispatchSourceTimer' in scope
171 |
172 | /// Internal GCD Timer
173 | private var timer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
174 |
175 | /// Is timer a repeat timer
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:185:25: error: cannot find type 'DispatchTimeInterval' in scope
183 |
184 | /// Accuracy of the timer
185 | private var tolerance: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
186 |
187 | /// Dispatch queue parent of the timer
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:188:21: error: cannot find type 'DispatchQueue' in scope
186 |
187 | /// Dispatch queue parent of the timer
188 | private var queue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
189 |
190 | /// Initialize a new timer.
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:198:69: error: cannot find type 'DispatchTimeInterval' in scope
196 | /// - queue: queue in which the timer should be executed; if `nil` a new queue is created automatically.
197 | /// - observer: observer
198 | public init(interval: Interval, mode: Mode = .infinite, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, observer: @escaping Observer) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
199 | self.mode = mode
200 | self.interval = interval
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:198:116: error: cannot find type 'DispatchQueue' in scope
196 | /// - queue: queue in which the timer should be executed; if `nil` a new queue is created automatically.
197 | /// - observer: observer
198 | public init(interval: Interval, mode: Mode = .infinite, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, observer: @escaping Observer) {
| `- error: cannot find type 'DispatchQueue' in scope
199 | self.mode = mode
200 | self.interval = interval
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:245:35: error: cannot find type 'DispatchSourceTimer' in scope
243 | ///
244 | /// - Returns: dispatch timer
245 | private func configureTimer() -> DispatchSourceTimer {
| `- error: cannot find type 'DispatchSourceTimer' in scope
246 | let associatedQueue = (queue ?? DispatchQueue(label: "com.repeat.\(NSUUID().uuidString)"))
247 | let timer = DispatchSource.makeTimerSource(queue: associatedQueue)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:62: error: cannot find type 'DispatchTimeInterval' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchTimeInterval' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:109: error: cannot find type 'DispatchQueue' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchQueue' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:297:78: error: cannot find type 'DispatchTimeInterval' in scope
295 | /// - Returns: timer
296 | @discardableResult
297 | public class func every(_ interval: Interval, count: Int? = nil, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ handler: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchTimeInterval' in scope
298 | let mode: Mode = (count != nil ? .finite(count!) : .infinite)
299 | let timer = Repeater(interval: interval, mode: mode, tolerance: tolerance, queue: queue, observer: handler)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:297:125: error: cannot find type 'DispatchQueue' in scope
295 | /// - Returns: timer
296 | @discardableResult
297 | public class func every(_ interval: Interval, count: Int? = nil, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ handler: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchQueue' in scope
298 | let mode: Mode = (count != nil ? .finite(count!) : .infinite)
299 | let timer = Repeater(interval: interval, mode: mode, tolerance: tolerance, queue: queue, observer: handler)
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:53:21: error: cannot find type 'DispatchQueue' in scope
51 |
52 | /// Queue in which the throotle will work.
53 | private var queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
54 |
55 | /// Callback to call
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:59:28: error: cannot find 'DispatchWorkItem' in scope
57 |
58 | /// Last scheduled callback job
59 | private var callbackJob = DispatchWorkItem(block: {})
| `- error: cannot find 'DispatchWorkItem' in scope
60 |
61 | /// Previous scheduled time
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:62:33: error: cannot find type 'DispatchTime' in scope
60 |
61 | /// Previous scheduled time
62 | private var previousScheduled: DispatchTime?
| `- error: cannot find type 'DispatchTime' in scope
63 |
64 | /// Last executed time
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:65:33: error: cannot find type 'DispatchTime' in scope
63 |
64 | /// Last executed time
65 | private var lastExecutionTime: DispatchTime?
| `- error: cannot find type 'DispatchTime' in scope
66 |
67 | /// Need to delay before perform
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:71:36: error: cannot find type 'DispatchTimeInterval' in scope
69 |
70 | /// Throotle interval
71 | public private(set) var throttle: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
72 |
73 | /// Initialize a new throttler with given time interval.
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:81:46: error: cannot find type 'DispatchQueue' in scope
79 | /// - fireNow: immediate fire first execution of the throttle.
80 | /// - callback: callback to throttle.
81 | public init(time: Repeater.Interval, queue: DispatchQueue? = nil, mode: Mode = .fixed, immediateFire: Bool = false, _ callback: Callback? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
82 | self.throttle = time.value
83 | self.queue = (queue ?? DispatchQueue.global(qos: .background))
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:110:47: error: cannot find type 'DispatchTime' in scope
108 | ///
109 | /// - Returns: a tuple with now interval and evaluated interval based upon the current mode.
110 | private func evaluateDispatchTime() -> (now: DispatchTime, evaluated: DispatchTime) {
| `- error: cannot find type 'DispatchTime' in scope
111 | let now: DispatchTime = .now()
112 |
/host/spi-builder-workspace/Sources/Repeat/Throttler.swift:110:72: error: cannot find type 'DispatchTime' in scope
108 | ///
109 | /// - Returns: a tuple with now interval and evaluated interval based upon the current mode.
110 | private func evaluateDispatchTime() -> (now: DispatchTime, evaluated: DispatchTime) {
| `- error: cannot find type 'DispatchTime' in scope
111 | let now: DispatchTime = .now()
112 |
[4/5] Compiling Repeat Debouncer.swift
/host/spi-builder-workspace/Sources/Repeat/Debouncer.swift:40:9: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
38 |
39 | /// Delay interval
40 | private (set) public var delay: Repeater.Interval
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
41 |
42 | /// Callback to activate
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:62: error: cannot find type 'DispatchTimeInterval' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchTimeInterval' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:109: error: cannot find type 'DispatchQueue' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchQueue' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Debouncer.swift:71:64: error: cannot infer type of closure parameter '_' without a type annotation
69 |
70 | if self.timer == nil {
71 | self.timer = Repeater.once(after: self.delay, { [weak self] _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
72 | guard let callback = self?.callback else {
73 | debugPrint("Debouncer fired but callback not set.")
[5/5] Compiling Repeat Repeater.swift
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:101:23: error: cannot find type 'DispatchTimeInterval' in scope
99 | case days(_: Int)
100 |
101 | internal var value: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
102 | switch self {
103 | case .nanoseconds(let value): return .nanoseconds(value)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:173:21: error: cannot find type 'DispatchSourceTimer' in scope
171 |
172 | /// Internal GCD Timer
173 | private var timer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
174 |
175 | /// Is timer a repeat timer
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:185:25: error: cannot find type 'DispatchTimeInterval' in scope
183 |
184 | /// Accuracy of the timer
185 | private var tolerance: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
186 |
187 | /// Dispatch queue parent of the timer
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:188:21: error: cannot find type 'DispatchQueue' in scope
186 |
187 | /// Dispatch queue parent of the timer
188 | private var queue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
189 |
190 | /// Initialize a new timer.
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:198:69: error: cannot find type 'DispatchTimeInterval' in scope
196 | /// - queue: queue in which the timer should be executed; if `nil` a new queue is created automatically.
197 | /// - observer: observer
198 | public init(interval: Interval, mode: Mode = .infinite, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, observer: @escaping Observer) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
199 | self.mode = mode
200 | self.interval = interval
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:198:116: error: cannot find type 'DispatchQueue' in scope
196 | /// - queue: queue in which the timer should be executed; if `nil` a new queue is created automatically.
197 | /// - observer: observer
198 | public init(interval: Interval, mode: Mode = .infinite, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, observer: @escaping Observer) {
| `- error: cannot find type 'DispatchQueue' in scope
199 | self.mode = mode
200 | self.interval = interval
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:245:35: error: cannot find type 'DispatchSourceTimer' in scope
243 | ///
244 | /// - Returns: dispatch timer
245 | private func configureTimer() -> DispatchSourceTimer {
| `- error: cannot find type 'DispatchSourceTimer' in scope
246 | let associatedQueue = (queue ?? DispatchQueue(label: "com.repeat.\(NSUUID().uuidString)"))
247 | let timer = DispatchSource.makeTimerSource(queue: associatedQueue)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:62: error: cannot find type 'DispatchTimeInterval' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchTimeInterval' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:282:109: error: cannot find type 'DispatchQueue' in scope
280 | /// - Returns: timer instance
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchQueue' in scope
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
284 | timer.start()
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:297:78: error: cannot find type 'DispatchTimeInterval' in scope
295 | /// - Returns: timer
296 | @discardableResult
297 | public class func every(_ interval: Interval, count: Int? = nil, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ handler: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchTimeInterval' in scope
298 | let mode: Mode = (count != nil ? .finite(count!) : .infinite)
299 | let timer = Repeater(interval: interval, mode: mode, tolerance: tolerance, queue: queue, observer: handler)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:297:125: error: cannot find type 'DispatchQueue' in scope
295 | /// - Returns: timer
296 | @discardableResult
297 | public class func every(_ interval: Interval, count: Int? = nil, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ handler: @escaping Observer) -> Repeater {
| `- error: cannot find type 'DispatchQueue' in scope
298 | let mode: Mode = (count != nil ? .finite(count!) : .infinite)
299 | let timer = Repeater(interval: interval, mode: mode, tolerance: tolerance, queue: queue, observer: handler)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:203:26: error: cannot find 'DispatchQueue' in scope
201 | self.tolerance = tolerance
202 | self.remainingIterations = mode.countIterations
203 | self.queue = (queue ?? DispatchQueue(label: "com.repeat.queue"))
| `- error: cannot find 'DispatchQueue' in scope
204 | self.timer = configureTimer()
205 | self.observe(observer)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:246:35: error: cannot find 'DispatchQueue' in scope
244 | /// - Returns: dispatch timer
245 | private func configureTimer() -> DispatchSourceTimer {
246 | let associatedQueue = (queue ?? DispatchQueue(label: "com.repeat.\(NSUUID().uuidString)"))
| `- error: cannot find 'DispatchQueue' in scope
247 | let timer = DispatchSource.makeTimerSource(queue: associatedQueue)
248 | let repeatInterval = interval.value
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:247:15: error: cannot find 'DispatchSource' in scope
245 | private func configureTimer() -> DispatchSourceTimer {
246 | let associatedQueue = (queue ?? DispatchQueue(label: "com.repeat.\(NSUUID().uuidString)"))
247 | let timer = DispatchSource.makeTimerSource(queue: associatedQueue)
| `- error: cannot find 'DispatchSource' in scope
248 | let repeatInterval = interval.value
249 | let deadline: DispatchTime = (DispatchTime.now() + repeatInterval)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:249:17: error: cannot find type 'DispatchTime' in scope
247 | let timer = DispatchSource.makeTimerSource(queue: associatedQueue)
248 | let repeatInterval = interval.value
249 | let deadline: DispatchTime = (DispatchTime.now() + repeatInterval)
| `- error: cannot find type 'DispatchTime' in scope
250 | if self.mode.isRepeating {
251 | timer.schedule(deadline: deadline, repeating: repeatInterval, leeway: tolerance)
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:266:40: error: 'nil' requires a contextual type
264 | /// Destroy current timer
265 | private func destroyTimer() {
266 | self.timer?.setEventHandler(handler: nil)
| `- error: 'nil' requires a contextual type
267 | self.timer?.cancel()
268 |
/host/spi-builder-workspace/Sources/Repeat/Repeater.swift:283:57: error: cannot infer contextual base in reference to member 'once'
281 | @discardableResult
282 | public class func once(after interval: Interval, tolerance: DispatchTimeInterval = .nanoseconds(0), queue: DispatchQueue? = nil, _ observer: @escaping Observer) -> Repeater {
283 | let timer = Repeater(interval: interval, mode: .once, tolerance: tolerance, queue: queue, observer: observer)
| `- error: cannot infer contextual base in reference to member 'once'
284 | timer.start()
285 | return timer
BUILD FAILURE 6.1 wasm