API Collection
PooledConnection Implementations
Topics
Instance Methods
close()Close the running connection. Once the close has completed closures that were registered inonClosemust be invoked.close()Close the running connection. Once the close has completed closures that were registered inonClosemust be invoked.onClose(_:)A method to register closures that are invoked when the connection is closed. If the connection closed unexpectedly the closure shall be called with the underlying error. In most NIO clients this can be easily implemented by attaching to thechannel.closeFuture: