Skip to content

Make async/await the primary examples in the docs #2855

Closed
@rijkvanzanten

Description

@rijkvanzanten

Heya! Big fan of all your work ❤️

With async/await getting so ubiquitous nowadays, would it be worth updating the examples in the docs to rely on that primarily, with the "old school" callbacks becoming the footnote "oh if you like callbacks still that'll also work"? Async/await usage together with node-pg is just so nice as compared to callback hell/chained promises, especially with top-level await, for example:

Happy to submit a PR if that's a direction you feel like exploring, no hard feelings if you'd rather close this with a "Take your async/await nonsense elsewhere!" 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions