We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e01a5c + 77f02fc commit 3bf05adCopy full SHA for 3bf05ad
Sources/SKTestSupport/RepeatUntilExpectedResult.swift
@@ -26,7 +26,6 @@ package func repeatUntilExpectedResult(
26
file: StaticString = #filePath,
27
line: UInt = #line
28
) async throws {
29
- logger.info("x: \(Int(timeout.seconds / sleepInterval.seconds))")
30
for _ in 0..<Int(timeout.seconds / sleepInterval.seconds) {
31
if try await body() {
32
return
Sources/SwiftExtensions/AsyncUtils.swift
@@ -189,8 +189,8 @@ package func withTimeout<T: Sendable>(
189
190
let timeoutTask = Task {
191
try await Task.sleep(for: duration)
192
- bodyTask.cancel()
193
continuation.yield(with: .failure(TimeoutError()))
+ bodyTask.cancel()
194
}
195
mutableTasks = [bodyTask, timeoutTask]
196
0 commit comments