MCPcopy Index your code
hub / github.com/MALSync/MALSync / getCompleteList

Function getCompleteList

src/_provider/listAbstract.ts:112–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 }
111
112 async getCompleteList(): Promise<listElement[]> {
113 do {
114 // eslint-disable-next-line no-await-in-loop
115 await this.getNext();
116 } while (!this.done);
117
118 if (this.modes.sortAiring) await this.sortAiringList();
119
120 if (this.modes.cached) this.getCache().setValue(this.templist.slice(0, 18));
121
122 this.firstLoaded = true;
123
124 return this.templist;
125 }
126
127 async getNextPage(): Promise<listElement[]> {
128 if (this.done) return this.templist;

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.80
getCacheMethod · 0.45

Tested by

no test coverage detected