MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / load

Method load

client/js/src/internal/batchLoading.ts:63–70  ·  view source on GitHub ↗
(nodeUid: ID)

Source from the content-addressed store, hash-verified

61 }
62
63 async *load(nodeUid: ID) {
64 this.itemsToFetch.push(nodeUid);
65
66 if (this.itemsToFetch.length >= this.batchSize) {
67 yield* this.iterateItemsWithErrorHandling(this.itemsToFetch);
68 this.itemsToFetch = [];
69 }
70 }
71
72 async *loadRest() {
73 if (this.itemsToFetch.length > 0) {

Callers 6

iterateAlbumsMethod · 0.95
iterateFolderChildrenFunction · 0.95
iterateTrashedNodesFunction · 0.95
iterateNodesFunction · 0.95

Calls 1

Tested by

no test coverage detected