Add missing configurator method to the NIOTSListenerBootstrap

This commit is contained in:
Gus Cairo 2025-04-09 14:42:57 +01:00
parent a5f1273fea
commit 73c30da46e
1 changed files with 8 additions and 0 deletions

View File

@ -240,6 +240,14 @@ public final class NIOTSListenerBootstrap {
return self
}
/// Customise the `NWParameters` to be used when creating the connection.
public func configureNWParameters(
_ configurator: @Sendable @escaping (NWParameters) -> Void
) -> Self {
self.nwParametersConfigurator = configurator
return self
}
/// Specifies a type of Multipath service to use for this listener, instead of the default
/// service type for the event loop.
///