Skip to content

Commit 9a24757

Browse files
committed
Fix build warnings in BuildOperationTester.swift about the return value of withTimeout(timeout:description:) being unused by marking the method with @discardableResult.
rdar://122969153
1 parent 8e8a7e8 commit 9a24757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SWBTestSupport/Timeout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ package struct TimeoutError: Error {
1414
package var description: String?
1515
}
1616

17-
package func withTimeout<T: Sendable>(
17+
@discardableResult package func withTimeout<T: Sendable>(
1818
timeout: Duration,
1919
description: String? = nil,
2020
block: sending () async throws -> T

0 commit comments

Comments
 (0)