We can mark DispatchTimeInterval as equatable because it already implements the equality check operator ==.
This resolves an API disparity - on Darwin DispatchTimeInterval is already Equatable.
Doing this will allow DispatchTimeInterval to be used with a wide range of library functions which are defined to operate on Equatable objects. For example this is useful in tests when you might wish to use XCTAssertEqual.
We can mark
DispatchTimeInterval
as equatable because it already implements the equality check operator==
.This resolves an API disparity - on Darwin
DispatchTimeInterval
is alreadyEquatable
.Doing this will allow
DispatchTimeInterval
to be used with a wide range of library functions which are defined to operate onEquatable
objects. For example this is useful in tests when you might wish to useXCTAssertEqual
.Resolves https://github.com/apple/swift-corelibs-libdispatch/issues/669