Skip to content

Commit

Permalink
Make attempt result discardable
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Jul 19, 2023
1 parent b5ff96b commit d82d46d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Retry/Retry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public enum Retry {
(pow(2, max(0, attempt - 1)) * Decimal(baseDelay) as NSDecimalNumber).uint32Value
}

@discardableResult
public static func attempt<T>(_ label: String,
delay: Double = 5,
retries: Int = 5,
Expand Down

0 comments on commit d82d46d

Please sign in to comment.