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

Refactor async executor function inside stateMachine of FLE lib

    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      In stateMachine.js we have an async executor function passed to a Promise constructor. We should improve the code here to await an async iterable of on('data') events in order to avoid this usage. If async executor functions are run synchronously, so if they throw it will not be catchable by a .catch(). 

       

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: