MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / close

Method close

out/cli.cjs:13218–13226  ·  view source on GitHub ↗

* Closes the controlled readable stream. Consumers will still be able to read any previously-enqueued chunks from * the stream, but once those are read, the stream will become closed.

()

Source from the content-addressed store, hash-verified

13216 * the stream, but once those are read, the stream will become closed.
13217 */
13218 close() {
13219 if (!IsReadableStreamDefaultController(this)) {
13220 throw defaultControllerBrandCheckException$1("close");
13221 }
13222 if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(this)) {
13223 throw new TypeError("The stream is not in a state that permits close");
13224 }
13225 ReadableStreamDefaultControllerClose(this);
13226 }
13227 enqueue(chunk = void 0) {
13228 if (!IsReadableStreamDefaultController(this)) {
13229 throw defaultControllerBrandCheckException$1("enqueue");

Callers

nothing calls this directly

Tested by

no test coverage detected