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

Method close

modules/io/dnssd/dnssd.js:768–773  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

766 list.push(this);
767 }
768 close() {
769 if (!this.#claim) return;
770 dnssd.unclaim(this.#claim);
771 this.#list.splice(this.#list.indexOf(this), 1);
772 this.#claim = undefined;
773 }
774
775 static {
776 this.prototype[Symbol.dispose] = this.prototype.close;

Callers

nothing calls this directly

Calls 1

unclaimMethod · 0.80

Tested by

no test coverage detected