caolan/async

Documentation needs better examples

Open

#1,609 建立於 2019年1月13日

在 GitHub 查看
 (23 留言) (11 反應) (0 負責人)JavaScript (28,067 star) (2,398 fork)batch import
docshelp wanted

描述

Consider this example for map

async.map(['file1','file2','file3'], fs.stat, function(err, results) {
    // results is now an array of stats for each file
});

This basically tells me nothing except syntax. In most cases people aren't going to pass fs.stat. The examples should include use of all possible options. All examples for all functions and methods need to be updated. They are too simplistic

貢獻者指南