Skip to content

Use promises instead of callbacks (async) #6

@betamos

Description

@betamos

Anecdote: I successfully used es6-promisify with this module:

const client = new NatAPI()
const asyncMap = promisify(client.map.bind(client))
// ...
await asyncMap({..})

Would you consider a PR to make the API use promises entirely? I'm unsure of how legacy interoperability in node-land is handled so maybe it's not desirable, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions