Given this code :
function asyncFoo() { return new Promise(function (fulfill, reject) { doAsyncStuff(function(err, data) { if(err) reject(new Er
I like to specify that it's an async function with @async and specify the fulfilled return with @returns and error with @throws
@async
@returns
@throws
/** * @async * @returns {Bar} * @throws {Error} */ function asyncFoo() { ... }