0.0.6 • Published 6 years ago

awaitable-async v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Awaitable Async

Every method in caolan/async wrapped in promises.

const async = require('awaitable-async')

Examples

Get results

const results = await async.map(['file1','file2','file3'], fs.stat)  
console.log(results)

Wait until finished

await async.eachSeries([1,2,3,4,5], num =>{
  console.log(`${num} done`)
})  
console.log('All done!')

Catch errors

try {
  await async.each(list)  
} catch(err){
  console.log('oops!')  
}
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago