MCPcopy Create free account
hub / github.com/denoland/std / cancel

Method cancel

http/unstable_formdata_decoder_stream.ts:236–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234 }
235 },
236 async cancel() {
237 do {
238 buffer = (await reader.read()).value?.value;
239 if (buffer == undefined) {
240 return error(new SyntaxError("Unexpected EOF"));
241 }
242 } while (!boundary.every((x, i) => x === buffer![i]));
243 releaseLock();
244 },
245 }),
246 };
247 if (entry.name === "_charset_") {

Calls 2

errorFunction · 0.85
readMethod · 0.65

Tested by

no test coverage detected