MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / push

Method push

daemon/src/utils/queue.ts:11–17  ·  view source on GitHub ↗
(item: IQueueItem<T>)

Source from the content-addressed store, hash-verified

9 constructor(private readonly maxSize: number) {}
10
11 push(item: IQueueItem<T>) {
12 if (this.items.length >= this.maxSize) {
13 this.items.shift();
14 }
15 this.items.find((v) => v.key === item.key);
16 this.items.push(item);
17 }
18
19 pop() {
20 const v = this.items.shift();

Callers 15

scanDirectoryFunction · 0.45
readFunction · 0.45
dockerPortsParseFunction · 0.45
_addCallbackMethod · 0.45
calculateFunction · 0.45
insertLayoutItemFunction · 0.45
setSettingsConfigFunction · 0.45
stopMethod · 0.45
useMarketTourFunction · 0.45
addDeferredTaskFunction · 0.45
addTagFunction · 0.45
selectTagFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected