Examples: Use --unhandled-rejections=strict

Description

For the examples in the repository, when supporting Node.js 12, we can use --unhandled-rejections flag to exit in case of an unhandled promise rejection and simplify the examples code.

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Jorge Bay Gondra

Reviewer

None

Fix versions

None

Labels

None

Components

None

PM Priority

None

Reproduced in

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Size

None

Priority

Major