Promise-all will do this for you.