MCPcopy Create free account
hub / github.com/esmBot/esmBot / markFinished

Method markFinished

src/api/index.ts:61–66  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

59 private timeouts: Map<K, ReturnType<typeof setTimeout>> = new Map();
60
61 markFinished(key: K) {
62 const handle = setTimeout(() => {
63 this.delete(key);
64 }, cacheTimeout);
65 this.timeouts.set(key, handle);
66 }
67
68 delete(key: K) {
69 const out = super.delete(key);

Callers 1

finishJobFunction · 0.80

Calls 2

deleteMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected