method Channel.close Channel.close(): void Ends the stream once the buffer drains. Idempotent. Return Type void