Attaches Symbol.asyncDispose methods to the MongoClient, Cursors, sessions and change streams
if Symbol.asyncDispose is defined.
It's usually not necessary to call this method - the driver attempts to attach these methods
itself when its loaded. However, sometimes the driver may be loaded before Symbol.asyncDispose
is defined, in which case it is necessary to call this method directly. This can happen if the
application is polyfilling Symbol.asyncDispose.
Attaches
Symbol.asyncDisposemethods to the MongoClient, Cursors, sessions and change streams if Symbol.asyncDispose is defined.It's usually not necessary to call this method - the driver attempts to attach these methods itself when its loaded. However, sometimes the driver may be loaded before
Symbol.asyncDisposeis defined, in which case it is necessary to call this method directly. This can happen if the application is polyfillingSymbol.asyncDispose.Example: