Skip to content

Instantly share code, notes, and snippets.

@theleancoder
Created November 29, 2015 18:21
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/673b481a2f62e3907418 to your computer and use it in GitHub Desktop.
Save theleancoder/673b481a2f62e3907418 to your computer and use it in GitHub Desktop.
// take order for table 1 and wait...
var order1 = orderBlocking(['Coke', 'Iced Tea']);
// once order is ready, take order back to table.
serveOrder(order1);
// once order is delivered, move on to another table.
// take order for table 2 and wait...
var order2 = orderBlocking(['Coke', 'Water']);
// once order is ready, take order back to table.
serveOrder(order2);
// once order is delivered, move on to another table.
// take order for table 3 and wait...
var order3 = orderBlocking(['Iced Tea', 'Water']);
// once order is ready, take order back to table.
serveOrder(order3);
// once order is delivered, move on to another table.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment