Skip to content

Commit d82d46d

Browse files
committed
Make attempt result discardable
1 parent b5ff96b commit d82d46d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Retry/Retry.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public enum Retry {
2424
(pow(2, max(0, attempt - 1)) * Decimal(baseDelay) as NSDecimalNumber).uint32Value
2525
}
2626

27+
@discardableResult
2728
public static func attempt<T>(_ label: String,
2829
delay: Double = 5,
2930
retries: Int = 5,

0 commit comments

Comments
 (0)