Skip to content

2.4.2 (accidental source break, use 2.4.3)

Compare
Choose a tag to compare
@ktoso ktoso released this 14 May 04:23
· 13 commits to main since this release
2.4.2
eb18581

Warning: source break

This release has an accidental minor source break:

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?

Fixed by #144 in 2.4.3, please use 2.4.3 instead. Thank you @hamzahrmalik for the diagnosis and fix.

What's Changed

New Contributors

Full Changelog: 2.4.1...2.4.2