abstract-syntax-tree icon indicating copy to clipboard operation
abstract-syntax-tree copied to clipboard

Async methods

Open emilos opened this issue 5 years ago • 2 comments

Story

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

Acceptance criteria

  • [ ] replaceAsync
  • [ ] findAsync
  • [ ] ...

emilos avatar Oct 06 '20 06:10 emilos

just wrap functions in promises?) f.e.

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

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

inikonorov avatar Nov 16 '20 20:11 inikonorov

@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

emilos avatar Nov 16 '20 21:11 emilos