Build README

This commit is contained in:
Angelos Chalaris
2017-12-14 10:35:58 +02:00
parent 7d12b7abbb
commit 27c02041fd
2 changed files with 23 additions and 5 deletions

View File

@ -4,9 +4,11 @@ Delay executing part of an `async` function, by putting it to sleep, returning a
```js
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
// async function sleepyWork() {
// console.log('I\'m going to sleep for 1 second.');
// await sleep(1000);
// console.log('I woke up after 1 second.');
// }
/*
async function sleepyWork() {
console.log('I\'m going to sleep for 1 second.');
await sleep(1000);
console.log('I woke up after 1 second.');
}
*/
```