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

Method _endStream

src/change_stream.ts:975–981  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

973
974 /** @internal */
975 private _endStream(): void {
976 this.cursorStream?.removeAllListeners('data');
977 this.cursorStream?.removeAllListeners('close');
978 this.cursorStream?.removeAllListeners('end');
979 this.cursorStream?.destroy();
980 this.cursorStream = undefined;
981 }
982
983 /** @internal */
984 private _processChange(change: TChange | null): TChange {

Callers 2

closeMethod · 0.95

Calls 2

removeAllListenersMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected