Build README

This commit is contained in:
Angelos Chalaris
2017-12-13 12:13:34 +02:00
parent 7843d2552f
commit c0ed8da9fd
2 changed files with 18 additions and 2 deletions

View File

@ -4,11 +4,11 @@ Loop through an array of functions containing asynchronous events, calling `next
```js
const chainAsync = fns => { let curr = 0; const next = () => fns[curr++](next); next(); }
/*
/*
chainAsync([
next => { console.log('0 seconds'); setTimeout(next, 1000); },
next => { console.log('1 second'); setTimeout(next, 1000); },
next => { console.log('2 seconds');}
next => { console.log('2 seconds'); }
])
*/
```