mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
# Motivation While adopting the new `NIOAsyncChannel` type we saw an exploding number of parameters passed to the various connect/bind/configure methods. All these methods had in common that we had to pass configuration for the `NIOAsyncChannel`. # Modification This PR introduces a new type `NIOAsyncChannel.Configuration` which groups all four configuration parameters into a struct. # Result We can now write more concise methods that use a single configuration object.