MCPcopy Index your code
hub / github.com/Xyntopia/taskyon / pop

Method pop

src/modules/taskManager.ts:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 async pop(): Promise<T> {
36 const shiftedItem = this.queue.shift();
37 if (shiftedItem !== undefined) {
38 return shiftedItem;
39 } else {
40 return new Promise<T>((resolve) => {
41 this.resolveWaitingPop = resolve;
42 });
43 }
44 }
45
46 clear() {
47 const oldQueue = this.queue;

Callers 2

prepareTasksForInferenceFunction · 0.80
taskWorkerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected