Last active
July 3, 2017 23:49
-
-
Save paulbreslin/286ad52f154cfe1a27fdf54a4d60c08d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const example = require('example-library'); | |
| const runDemo = async () => { | |
| try { | |
| const fistResponse = await example.firstAsyncRequest(); | |
| const secondResponse = await example.secondAsyncRequest(fistResponse); | |
| const thirdAsyncRequest = await example.thirdAsyncRequest(secondResponse); | |
| } | |
| catch (error) { | |
| // Handle error | |
| } | |
| }; | |
| runDemo(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment