@@ -13,7 +13,7 @@ import type { CollationOptions, CommandOperationOptions } from '../operations/co
1313import { DeleteOperation , type DeleteStatement , makeDeleteStatement } from '../operations/delete' ;
1414import { executeOperation } from '../operations/execute_operation' ;
1515import { InsertOperation } from '../operations/insert' ;
16- import { AbstractOperation , type Hint } from '../operations/operation' ;
16+ import { AbstractCallbackOperation , type Hint } from '../operations/operation' ;
1717import { makeUpdateStatement , UpdateOperation , type UpdateStatement } from '../operations/update' ;
1818import type { Server } from '../sdam/server' ;
1919import type { Topology } from '../sdam/topology' ;
@@ -881,14 +881,18 @@ export interface BulkWriteOptions extends CommandOperationOptions {
881881 * We would like this logic to simply live inside the BulkWriteOperation class
882882 * @internal
883883 */
884- class BulkWriteShimOperation extends AbstractOperation {
884+ class BulkWriteShimOperation extends AbstractCallbackOperation {
885885 bulkOperation : BulkOperationBase ;
886886 constructor ( bulkOperation : BulkOperationBase , options : BulkWriteOptions ) {
887887 super ( options ) ;
888888 this . bulkOperation = bulkOperation ;
889889 }
890890
891- execute ( server : Server , session : ClientSession | undefined , callback : Callback < any > ) : void {
891+ executeCallback (
892+ server : Server ,
893+ session : ClientSession | undefined ,
894+ callback : Callback < any >
895+ ) : void {
892896 if ( this . options . session == null ) {
893897 // An implicit session could have been created by 'executeOperation'
894898 // So if we stick it on finalOptions here, each bulk operation
0 commit comments