mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
# Motivation The name `waitForFinalResult()` is bad in a couple of ways. First, we normally use `wait` for blocking operations. Secondly, `finalResult` is also just strange because the user only wants to know the _result_ and doesn't even know that there might be intermediates. # Modification This PR renames the `waitForFinalResult()` method to be a property on `NIOProtocolNegotiationResult`. Additionally, it provides a conditional extension on `ELF` to avoid a `get()`. # Result Better naming for our async interfaces