caolan/async

Documentation needs better examples

Ouverte

#1 609 ouverte le 13 janv. 2019

 (23 commentaires) (11 réactions) (0 personne assignée)JavaScript (2 398 forks)batch import
docshelp wanted

Métriques du dépôt

Stars
 (28 067 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur