Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4524

Remove the `maybePromise` wrapper and rewrite the functions that use it to directly return promises instead

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.11.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed

      Acceptance Criteria

      Implementation Requirements

      • Remove the `maybePromise` wrapper and rewrite the functions that use it to directly return promises instead;
      • Be sure that the promise provider is still used to return the final result
      • Node's `util.promisify` can make this transition easier, however, we should prefer converting the consuming functions (in particular, executeOperation) to async/await instead

      Testing Requirements

      • Existing tests should all still pass

      Documentation Requirements

      • N/A

        There are no Sub-Tasks for this issue.

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            daria.pardue@mongodb.com Daria Pardue
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: