Jul 20, 2017 · 1 min read
Hi, very useful article, but I’ve ran into one problem. This example:
let [foo, bar] = await Promise.all([getFoo(), getBar()]);is half working for me. When I try something similar, foo returns a list of things from the file system while bar returns something from the database, and then I’m trying to match the two.
When I do the console.log on bar, works fine. But foo returns undefined. But if I output the console.log inside the Bar function, it outputs there. So why is half of if failing?
