Explain how Promise.all() works.