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

Method loadRest

client/js/src/internal/batchLoading.ts:72–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 }
71
72 async *loadRest() {
73 if (this.itemsToFetch.length > 0) {
74 yield* this.iterateItemsWithErrorHandling(this.itemsToFetch);
75 this.itemsToFetch = [];
76 }
77
78 if (this.errors.length > 0) {
79 throw new ProtonDriveError(c('Error').t`Some items could not be loaded`, { cause: this.errors });
80 }
81 }
82
83 private async *iterateItemsWithErrorHandling(items: ID[]) {
84 try {

Callers 7

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

Calls 1

Tested by

no test coverage detected