Skip to content

Instantly share code, notes, and snippets.

@lloss lloss/l.js
Last active Apr 14, 2017

Embed
What would you like to do?
evil_for
const axios = require("axios");
const urls = ['https://github.com/mzabriskie/axios', 'https://discord.js.org'];
async function asyncLoadAllTheChunks() {
const resps = await Promise.all(urls.map(url=> axios.get(url)))
const [first, second] = resps;
console.log(`
тут первый ${first}
тут второй ${second}
и так далее, ну ты понял
`)
}
asyncLoadAllTheChunks()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.