Last active
July 11, 2017 20:51
-
-
Save gskachkov/5ba8ebeb52977d773ee7e20b1570295e 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
async function foo (value) { | |
return Promise.resolve(value + 1); | |
} | |
async function bar (value) { | |
return Promise.resolve(value + 2); | |
} | |
async function foobar() { | |
const value = await foo(1); | |
const result = await bar(value); | |
// Do what you need with result | |
// Save to local storage; | |
} | |
foobar(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment