Skip to content

Instantly share code, notes, and snippets.

@alexnm
Last active January 10, 2016 18:51
Show Gist options
  • Save alexnm/f52d3f7c05afbfd49a60 to your computer and use it in GitHub Desktop.
Save alexnm/f52d3f7c05afbfd49a60 to your computer and use it in GitHub Desktop.
function* ( ) {
const user = yield getUser( ); // async api call
const cart = yield getShoppingCart( user ); // async api call
const items = yield getItems( user, cart ); // aync api call
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment