Uploaded image for project: 'BookBrainz'
  1. BookBrainz
  2. BB-670

Rewrite promises to async/await syntax

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None

      Across the codebase we have asynchronous code written using promises, which is hard to read and to maintain and error-prone.

      All this code needs to be rewritten using the async/await syntax.

      If you want to work on this, please create a sub-ticket for the file or section of the code you want to convert, and assign that sub-ticket to you (or ask me [monkey] to do it for you )

      One golden rule for async/await: be sure to catch potential errors thrown by the code, otherwise an uncaught error could crash the server.
      Some reading material:
      https://catchjs.com/Docs/AsyncAwait
      http://thecodebarbarian.com/async-await-error-handling-in-javascript.html

       

            Unassigned Unassigned
            mr_monkey Monkey
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                Version Package