MCPcopy
hub / github.com/mongodb/node-mongodb-native / [Symbol.asyncDispose]

Function [Symbol.asyncDispose]

src/cursor/abstract_cursor.ts:435–437  ·  view source on GitHub ↗

* An alias for {@link AbstractCursor.close|AbstractCursor.close()}.

()

Source from the content-addressed store, hash-verified

433 * An alias for {@link AbstractCursor.close|AbstractCursor.close()}.
434 */
435 async [Symbol.asyncDispose]() {
436 await this.close();
437 }
438
439 /** Adds cursor to client's tracking so it will be closed by MongoClient.close() */
440 private trackCursor() {

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected