MCPcopy
hub / github.com/mongodb/node-mongodb-native / isAborted

Function isAborted

src/gridfs/upload.ts:532–538  ·  view source on GitHub ↗
(stream: GridFSBucketWriteStream, callback: Callback<void>)

Source from the content-addressed store, hash-verified

530}
531
532function isAborted(stream: GridFSBucketWriteStream, callback: Callback<void>): boolean {
533 if (stream.state.aborted) {
534 queueMicrotask(() => callback(new MongoAPIError('Stream has been aborted')));
535 return true;
536 }
537 return false;
538}

Callers 3

checkDoneFunction · 0.85
doWriteFunction · 0.85
writeRemnantFunction · 0.85

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected