We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6407923 commit 9fe0729Copy full SHA for 9fe0729
2 files changed
Sources/AsyncTimer/AsyncTimer.swift
@@ -14,7 +14,7 @@ import Foundation
14
15
public enum AsyncTimerInfo: Sendable {
16
/// Current AsyncTimer version.
17
- public static let version = "0.0.5"
+ public static let version = "0.0.6"
18
}
19
20
/// A simple repeating timer that runs a task at a specified interval.
Sources/AsyncTimer/Interval.swift
@@ -44,6 +44,12 @@ public enum Interval: Sendable {
44
45
46
47
+ /// Zero interval.
48
+ public static let zero: Interval = .nanoseconds(0)
49
+
50
+ /// Infinite interval.
51
+ public static let infinite: Interval = .nanoseconds(UInt64.max)
52
53
/// Whether the interval is zero.
54
public var isZero: Bool { nanoseconds == 0 }
55
0 commit comments