method Channel.close
Channel.close(): void

Ends the stream once the buffer drains. Idempotent.

Return Type

void

Usage

import { type Channel } from "lib/stream/stream.ts";