Skip to content

Instantly share code, notes, and snippets.

@gskachkov
Created July 11, 2017 21:04
Show Gist options
  • Save gskachkov/9d4f793faab9b30d78e0e9fe04aef189 to your computer and use it in GitHub Desktop.
Save gskachkov/9d4f793faab9b30d78e0e9fe04aef189 to your computer and use it in GitHub Desktop.
async function getOrder1(id) {
return _http.get('some/path'+1);
}
async function getOrder2(id) {
return _http.get('some/path'+1);
}
async function flow(id) {
const someValue = await getOrder1(id);
const result = await getOrder2(someValue);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment