Skip to content

Commit 9fe0729

Browse files
committed
Release 0.0.6
1 parent 6407923 commit 9fe0729

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Sources/AsyncTimer/AsyncTimer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Foundation
1414

1515
public enum AsyncTimerInfo: Sendable {
1616
/// Current AsyncTimer version.
17-
public static let version = "0.0.5"
17+
public static let version = "0.0.6"
1818
}
1919

2020
/// A simple repeating timer that runs a task at a specified interval.

Sources/AsyncTimer/Interval.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ public enum Interval: Sendable {
4444
}
4545
}
4646

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+
4753
/// Whether the interval is zero.
4854
public var isZero: Bool { nanoseconds == 0 }
4955

0 commit comments

Comments
 (0)