Skip to content

Instantly share code, notes, and snippets.

@jackpordi
Created September 3, 2019 22:34
Show Gist options
  • Save jackpordi/faf15c2092522e3a6d68feb8715efc32 to your computer and use it in GitHub Desktop.
Save jackpordi/faf15c2092522e3a6d68feb8715efc32 to your computer and use it in GitHub Desktop.
Asynchronous medium article
function chopCarrots() {
/**
* Some long computational task here...
*/
console.log("Done chopping carrots!");
}
function chopOnions() {
/**
* Some long computational task here...
*/
console.log("Done chopping onions!");
}
function addOnions() {
console.log('Add Onions to pot!');
}
function addCarrots() {
console.log('Add Carrots to pot!');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment