-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
Use Case
As a node driver user
I want the findOperation 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
- Add a server.commandAsync wrapper to the Server class
- Use Connection.commandAsync as a model, i.e. do not refactor command, add a wrapper
- Add a new AbstractCallbackOperation subclass of AbstractOperation
- remove executeAsync from AbstractOperation
- add a new abstract method executeCallback to AbstractCallbackOperation
- change abstract execute on AbstractOperation to return a promise and no longer take a callback
- add an implementation of async execute to AbstractCallbackOperation that wraps executeCallback
- Modify all operations to subclass AbstractCallbackOperation, and rename execute to executeCallback
- Modify usages of super.execute to super.executeCallback
Testing Requirements
- Add a test the server.commandAsync invokes server.command
Documentation Requirements
- None
Follow Up Requirements
- None