MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / pop

Method pop

src/pkg/utils/queue.ts:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 }
15
16 pop(): Promise<T | undefined> {
17 return new Promise((resolve) => {
18 if (this.list.length > 0) {
19 resolve(this.list.shift());
20 } else {
21 this.resolve = resolve;
22 }
23 });
24 }
25}

Callers 10

inferFilenameMethod · 0.80
renderFunction · 0.80
UserMessageItemFunction · 0.80
ChatInputFunction · 0.80
parseSkillZipFunction · 0.80
dealConfirmQueueMethod · 0.80
parseMethod · 0.80
guessMimeTypeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected