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

Method unclaim

modules/io/dnssd/dnssd.js:98–110  ·  view source on GitHub ↗
(claim)

Source from the content-addressed store, hash-verified

96 return claim;
97 }
98 unclaim(claim) {
99 const i = this.claims.indexOf(claim);
100 if (i < 0)
101 return;
102
103 this.claims.splice(i, 1);
104
105 Timer.clear(claim.timer);
106 delete claim.timer;
107
108 Timer.clear(claim.initial);
109 delete claim.initial;
110 }
111 add(service) {
112 this.services.push(service);
113

Callers 2

probeMethod · 0.95
closeMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected