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

Method _destroy

src/cursor/abstract_cursor.ts:1121–1126  ·  view source on GitHub ↗
(error: Error | null, callback: (error?: Error | null) => void)

Source from the content-addressed store, hash-verified

1119 }
1120
1121 override _destroy(error: Error | null, callback: (error?: Error | null) => void): void {
1122 this._cursor.close().then(
1123 () => callback(error),
1124 closeError => callback(closeError)
1125 );
1126 }
1127
1128 private _readNext() {
1129 if (this._cursor.id === Long.ZERO) {

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected