2.4.3
Source break fix
This release fixes a minor source break caused between 2.4.1 and 2.4.2:
The PR #133 introduced the following method:
public func record(_ duration: Duration)
There was already a similar function
public func record(_ duration: DispatchTimeInterval)
This can cause ambiguity for the compiler when using . shortcuts because of an overlap in case names, e.g.
timer.record(.nanoseconds(123)) // <-- ambiguous, is this DispatchTimeInterval or Duration?
This release fixes this by having the new method be called record(duration:)
.
Fixed by #144 in 2.4.3, please use 2.4.3 instead. Thank you @hamzahrmalik for the diagnosis and fix.
What changed
- Change Timer.record(duration: Duration) signature to avoid source breakage by @hamzahrmalik in #144
Full Changelog: 2.4.2...2.4.3