apple / swift-nio

Event-driven network application framework for high performance protocol servers & clients, non-blocking.
https://swiftpackageindex.com/apple/swift-nio/documentation
Apache License 2.0
7.85k stars 633 forks source link

Make EventLoopPromise conform to Equatable #2714

Open gjcairo opened 2 months ago

gjcairo commented 2 months ago

This PR conforms EventLoopPromise to the Equatable protocol.

Motivation:

EventLoopPromise is not currently Equatable, whereas the underlying EventLoopFuture is. For consistency, it makes sense for EventLoopPromise to conform to Equatable too.

Modifications:

Conform EventLoopPromise to Equatable. This is trivial, as the only property is the underlying EventLoopFuture, which is already Equatable.

Result:

EventLoopPromise is now Equatable.