apex / apex/node-apex

Support array of promises

オープン
#5 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
277
フォーク
13
PR マージ指標
30日以内にマージされた PR はありません

説明

If the lambda function returns an array, this module doesn't treat it as a promise and will just do `cb` on the pending promises. I suggest:

```
if (Array.isArray(v)) {
Promise.all(v).then(function (val) /* etc. */
}
```

We can also just wrap `v` in `Promise.all` regardless since it will work even for non-arrays. It would be slightly less efficient to do this. There is also no guarantee that there is a promise in the array.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。