close(mode:file:line:)

Close the Channel and so the connection if one exists.

ChannelInvoker.swift:195
func close(mode: CloseMode = .all, file: StaticString = #fileID, line: UInt = #line) -> EventLoopFuture<Void>

Parameters

mode

the CloseMode that is used

file

The file this function was called in, for debugging purposes.

line

The line this function was called on, for debugging purposes.

Returns

the future which will be notified once the operation completes.