Skip to content

API Collection

PooledConnection Implementations

Topics

Instance Methods

  • close()
    Close the running connection. Once the close has completed closures that were registered in onClose must be invoked.
  • close()
    Close the running connection. Once the close has completed closures that were registered in onClose must 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 the channel.closeFuture: