buxlabs/abstract-syntax-tree

Async methods

emilos opened this issue · 2 comments

Story

As a developer, I want to have async methods, like replaceAsync

Acceptance criteria

  • replaceAsync
  • findAsync
  • ...

just wrap functions in promises?) f.e.

return new Promise((resolve, reject) => {
    // ..function code
    resolve()

    // or if occured any mistake
    reject()
})

@inikonorov that would be a good start :) long term, I'd like to make async functions a bit more flexible, but it's not necessary for this issue