-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
Use Case
As a... node driver engineer
I want... all cursor operations to use async syntax
So that...the driver is closer to generating async stack traces
User Impact
This is an internal change
Dependencies
None
Unknowns
Acceptance Criteria
Implementation Requirements
- Cursor operations to change:
- FindOperation, GetMoreOperation, ListIndexesOperation, ListDatabasesOperation, ListCollectionsOperation, CollectionsOperation, KillCursorsOperation
- For each operation:
- Change its superclass from CommandCallbackOperation/AbstractCallbackOperation to CommandOperation/AbstractOperation
- change executeCallback to execute, remove callback argument, and remove all uses of callback in the class
- call server.commandAsync instead of server.command and return it
Testing Requirements
- test to see if a call to an operation invoked server.commandAsync
Documentation Requirements
- None
Follow Up Requirements
- None
- is duplicated by
-
NODE-5436 node-mongodb-native - PR #3767: Node 5392
- Closed