caolan/async

Documentation needs better examples

开放

#1,609 创建于 2019年1月13日

 (23 条评论) (11 个反应) (0 位负责人)JavaScript (2,398 个派生)batch import
docshelp wanted

仓库指标

星标
 (28,067 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南