Required Instance Methodswift-nio 2.81.0NIOCore

close0(error:mode:promise:)

Close the Channel.

Channel.swift:73
func close0(error: Error, mode: CloseMode, promise: EventLoopPromise<Void>?)

Parameters

error

The Error which will be used to fail any pending writes.

mode

The CloseMode to apply.

promise

The EventLoopPromise which should be notified once the operation completes, or nil if no notification should take place.