Skip to content

Instantly share code, notes, and snippets.

@theleancoder
Created November 29, 2015 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theleancoder/acdbf8ec2cd513f8efff to your computer and use it in GitHub Desktop.
Save theleancoder/acdbf8ec2cd513f8efff to your computer and use it in GitHub Desktop.
// take order for table 1 and move on...
orderNonBlocking(['Coke', 'Iced Tea'], function(drinks){
return serveOrder(drinks);
});
// take order for table 2 and move on...
orderNonBlocking(['Beer', 'Whiskey'], function(drinks){
return serveOrder(drinks);
});
// take order for table 3 and move on...
orderNonBlocking(['Hamburger', 'Pizza'], function(food){
return serveOrder(food);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment