Skip to content

Decide whether to use Promise/then() or async/await in example code #201

Open
@peterflynn

Description

@peterflynn

Topic

This is an issue regarding:

  • The tutorials contained within this repo.
  • The samples contained within this repo.

Description of the issue

We're currently not very consistent about whether sample code uses Promises directly with then() vs. the new async/await syntax. In some cases, like the "How to make network requests" tutorial, we mix & match both together in a single document.

Should we standardize on one syntax and try to use it everywhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions