MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / #done

Method #done

examples/io/tcp/httpclient/httpclient.js:447–456  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

445 this.close();
446 }
447 #done() {
448 this.#timer = undefined;
449
450 this.#state = "completing";
451 this.#current.onDone?.call(this.#current.request, null);
452 this.#state = "connected";
453 this.#next();
454 if (this.#current)
455 this.#onWritable(this.#writable);
456 }
457 #next() {
458 this.#current = this.#requests.shift();
459 if (!this.#current)

Callers 3

#onReadableMethod · 0.95
#errorMethod · 0.95
readMethod · 0.45

Calls 2

#nextMethod · 0.95
#onWritableMethod · 0.95

Tested by

no test coverage detected