caolan/async

Documentation needs better examples

オープン

#1,609 opened on 2019/01/13

 (23 件のコメント) (11 件のリアクション) (0 人の担当者)JavaScript (2,398 件のフォーク)batch import
docshelp wanted

Repository metrics

Stars
 (28,067 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド