buxlabs / abstract-syntax-tree

A library for working with abstract syntax trees.
MIT License
110 stars 13 forks source link

Async methods #89

Closed emilos closed 7 months ago

emilos commented 4 years ago

Story

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

Acceptance criteria

inikonorov commented 4 years ago

just wrap functions in promises?) f.e.

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

    // or if occured any mistake
    reject()
})
emilos commented 4 years ago

@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