methodReadableStreamDirectController.closeclose(error?: Error): void;Finish the stream. With no argument this flushes buffered bytes and ends, like end. With an error, the stream fails: buffered bytes are dropped and the consumer rejects with error.Referenced typesinterface Errorcause?: unknownThe cause of the error.message: stringname: stringstack?: string
Finish the stream. With no argument this flushes buffered bytes and ends, like end. With an error, the stream fails: buffered bytes are dropped and the consumer rejects with error.