Refactor async executor function inside stateMachine of FLE lib

XMLWordPrintableJSON

    • Not Needed
    • None
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Neal Beeken
              Neal Beeken
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: