Skip to content

Commit

Permalink
1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Apr 11, 2024
1 parent 1241228 commit 3c7c5fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.7.1")
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.7.2")
],
targets: [
.target(
Expand Down
3 changes: 3 additions & 0 deletions Sources/SwiftAPIClient/Types/TimeoutError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Foundation
/// - operation: The operation to perform.
/// - Returns: The result of the operation.
/// - Throws: An `TimeoutError` if the operation fails or times out or any error thrown by the operation.
/// - Warning: This function does not guarantee that the operation will be cancelled when the timeout is reached. It depends on the operation to check for cancellation.
public func withTimeout<T>(
_ timeout: TimeInterval?,
fileID: String = #fileID,
Expand All @@ -32,6 +33,7 @@ public func withTimeout<T>(
/// - operation: The operation to perform.
/// - Returns: The result of the operation.
/// - Throws: An `TimeoutError` if the operation fails or times out or any error thrown by the operation.
/// - Warning: This function does not guarantee that the operation will be cancelled when the timeout is reached. It depends on the operation to check for cancellation.
@available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
public func withTimeout<T, C: Clock>(
_ timeout: C.Instant.Duration?,
Expand Down Expand Up @@ -59,6 +61,7 @@ public func withTimeout<T, C: Clock>(
/// - operation: The operation to perform.
/// - Returns: The result of the operation.
/// - Throws: An `TimeoutError` if the operation fails or times out or any error thrown by the operation.
/// - Warning: This function does not guarantee that the operation will be cancelled when the timeout is reached. It depends on the operation to check for cancellation.
@available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
public func withTimeout<T>(
_ timeout: ContinuousClock.Instant.Duration?,
Expand Down

0 comments on commit 3c7c5fa

Please sign in to comment.