MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / nextTask

Method nextTask

frontend/src/services/uploadService.ts:130–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 }
129
130 nextTask(): UploadTask | undefined {
131 const rangeStart = this.offset;
132 const rangeEnd = Math.min(this.offset + PIECE_SIZE, this.file.size);
133 this.offset = rangeEnd;
134
135 if (rangeStart >= this.file.size) return;
136
137 return new UploadTask({
138 file: this,
139 range: [rangeStart, rangeEnd]
140 });
141 }
142
143 async stop() {
144 if (!this.prepared) {

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected