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

Method _final

src/gridfs/upload.ts:189–195  ·  view source on GitHub ↗

@internal

(callback: (error?: Error | null) => void)

Source from the content-addressed store, hash-verified

187
188 /** @internal */
189 override _final(callback: (error?: Error | null) => void): void {
190 if (this.state.streamEnd) {
191 return queueMicrotask(callback);
192 }
193 this.state.streamEnd = true;
194 writeRemnant(this, callback);
195 }
196
197 /**
198 * Places this write stream into an aborted state (all future writes fail)

Callers

nothing calls this directly

Calls 1

writeRemnantFunction · 0.85

Tested by

no test coverage detected