Skip to content

Instantly share code, notes, and snippets.

@tnguven
tnguven / rxjs-diagrams.md
Created October 5, 2018 09:34 — forked from PCreations/rxjs-diagrams.md
Super Intuitive Interactive Diagrams to learn combining RxJS sequences by Max NgWizard K
@tnguven
tnguven / 1-sleep-es7.js
Created May 26, 2017 13:00 — forked from danharper/1-sleep-es7.js
ES7's async/await syntax.
// ES7, async/await
function sleep(ms = 0) {
return new Promise(r => setTimeout(r, ms));
}
(async () => {
console.log('a');
await sleep(1000);
console.log('b');
})()